cancel
Showing results for 
Search instead for 
Did you mean: 

USB Audio Device with I2S microphone

island1985
Associate II
Posted on February 27, 2013 at 12:03

Hi

Is there a example project or somethin similar I can use as a foundation to use the stm32f4 discovery as a usb audio device? I want to stream the data of the on-board or an external mems microphone using the i2s (with dma) interface via usb to a host pc. I'm new to STM32 devices and all the specifics, although I already have good experiences with TI devices.

#i2s #usb
17 REPLIES 17
luiz
Associate II
Posted on September 10, 2013 at 01:44

Hello. Any lucky with USB Microphone for the STM32-Discovery? The USB Speaker on this board is working fine, but can't get it to work as a mike.

The descriptors are OK, but the Isochronous IN transfers just don't work. Anybody has done that?

Thanks.
luiz
Associate II
Posted on September 18, 2013 at 02:19

Hi. I managed to get the Isochronous IN endpoint to work.

I have now USB speaker and microphone working simultaneously on the STM32F4-Discovery.

Alexander Kolpakov
Associate
Posted on September 20, 2013 at 07:46

Rodrigues, about usb-microphone - i also did descriptors,which recognized by Win as a mic. and i don't know how to move into 'isochronous IN-endpoint', can you give us a hint?sources?

tanfed80
Associate
Posted on October 04, 2013 at 12:09

I'm also working on a similar project.

Can you share your code with us?

Working together we can accelerate the solution.

Posted on March 05, 2014 at 09:36

I have my STMF4 Discovery board working as USB Sound Card.

PC will recognize as USB audio device and I can listen to sound.

Also the UART emulation (VCD) works (Pico-C shell).

The project can be found here:

http://www.tjaekel.com

maggie
Associate III
Posted on October 09, 2014 at 08:45

Hi rodrigues.luiz, it seems like you're the only one who were able to make this simultaneous USB speaker and microphone work in STM32.

Cheers to that.

But can you share a bit, if not all?

Any reference would do...

It's quite rude to just say 'it works' then leave the forum.

Can we help out each other?

Even just tips to work out the isochronous IN to make at least the microphone work will do.

Been browsing the forums here and there to no avail, so we would appreciate your help - being the only one who successfully did it.

Thanks. :)

maggie
Associate III
Posted on October 09, 2014 at 08:50

Hi AM85 - how about you? Any luck with making USB microphone work? 

calvin2
Associate
Posted on November 14, 2015 at 06:50

In case anyone is still looking for a STM32F4 USB microphone example, I stumbled upon

http://we.easyelectronics.ru/STM32/usb-mikrofon-na-baze-stm32f4-discovery.html

 while debugging my implementation.

The author has also kindly attached a working example and source code.