Additional firmware for AudioMoth devices to implement a streaming USB microphone.
For more details, visit AudioMoth USB Microphone.
Compatible with the AudioMoth USB Microphone App.
Clone the contents of AudioMoth-Project.
Replace the src/main.c
from AudioMoth-Project with the src/main.c
from this repository. Put all the remaining src/*.c
files and all the src/*.h
files from this repository into the /src/
and /inc/
folders of the AudioMoth-Project repository.
The firmware implements two different USB configurations with a different number of end-points in each. This is not supported within the standard Silicon Labs USB library, so open em_usbd.c
inside emnusb/src/
and comment out lines 433 to 437. This removes an internal validation of the number of end-points described in the USB configuration.
If building from the command line tools no further changes are necessary. However, if building using Simplicity Studio, open the project 'Properties' under the 'File' menu, navigate to the 'Linker' and 'Ordering' and make sure that the standard math library '-lm' is at the bottom of the list.
See the Wiki for detailed description of the example code.
Copyright 2021 Open Acoustic Devices.