Skip to main content
fangdu
Associate
February 16, 2016
Question

STM32F4 Discovery board Audio Card

  • February 16, 2016
  • 2 replies
  • 822 views
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
This topic has been closed for replies.

2 replies

Nesrine M_O
Associate
February 16, 2016
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
fangduAuthor
Associate
February 16, 2016
Posted on February 16, 2016 at 20:49

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