cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 Discovery board Audio Card

fangdu
Associate II
Posted on February 16, 2016 at 06:05

Hi 

I would like to use the discovery board as a USB audio card which can use usb play music from PC and record sound to PC. When I initialize the USB, I think I need to configure both EP_out and EP_in. SO in usbd_audio_Init() function, I need to use DCD_EP_OPEN function twice? One is for out and the other is for in.

Thanks.

#stm32f4 #usb-audio
2 REPLIES 2
Nesrine M_O
Lead II
Posted on February 16, 2016 at 10:27

Hi Heavenfang,

I'd highly recommend you to have a look to Audio_playback_and_record application under the STM32F4 cube firmware package: STM32Cube_FW_F4_V1.11.0\Projects\STM32F4Discovery\Applications\Audio\Audio_playback_and_record

This application provides a description of an audio play and record with different

MEMS used on STM32F4-Discovery so It will be very useful as starting project to develop your own.

-Syrine-

fangdu
Associate II
Posted on February 16, 2016 at 20:49

Thanks, Syrine. I read that code before. But my main problem is about USB data transfer....