Showing results for 
Search instead for 
Did you mean: 

USB I/O devices with STM32F4 MCU / STM324xG-EVAL Boards

Associate II

I was wondering if it is possible to connect a USB microphone using USB-OTG to an STM324xG-EVAL board and then read the data coming in from that microphone? I looked through the examples that STM has for the USB-HOST class and it seems like most of the projects/examples done in the past are catered towards output devices so I was wondering if it is possible to read data from an input device and if so how that is possible?


Appreciate the help!

Pavel A.
Evangelist III

Yes, as you've seen, it can act as host and you can connect a device to it and read data. The examples demonstrate how this is possible. There is also some documentation on the USBH library, not much though.

I did see the examples in the STM firmware that shows how to use the board with audio host as an audio standalone. But that has to do with outputting data to the speakers from the board. I did not see any examples on using a microphone or something else to read data into the board. If you know where these examples you mention are could you please link it. It would be very helpful! Thank you!

Pavel A.
Evangelist III

Would you like to use MEMS microphones instead of USB? ST makes them and has eval. boards and examples.


Unfortunately I am required to use a USB microphone for the application that I am trying to build 

So you picked the most difficult USB host - audio host - with only one example by STM , that only can enumerate a headphone set. (almost useless...)

The only audio host, i found and could get running (on H743 and H563-nucleo) is with Azure rtos , see :

I needed about 2 weeks, to get it running . So - good luck !

If you feel a post has answered your question, please click "Accept as Solution".

Or you can place between some IC that support USB Audio for example XMOS or TI