cancel
Showing results for 
Search instead for 
Did you mean: 

USB Audio seems stuck

uveuvenouve
Associate III

I am trying to use the usb audio to obtain computer sound data

 

and i have blue pill and STM32F746G-DISCO on my hand

For blue pill,

i add some prints in this function
static uint8_t USBD_AUDIO_DataOut(USBD_HandleTypeDef *pdev, uint8_t epnum);


but it only print out 3 times at 48000Hz and 6 times for 22100Hz(default)
i have tested on windows and ubuntu as well

windows device manager shows it is  stm32 audio class   , ubuntu shows it is stm32F407 audio
they are both stuck when test output

 

For STM32F746G-DISCO,

i tried the usb fs and hs. set them as device only
and the middleware setting is the same as blue pill

but it can't even be recognized by my pc

 

anyone know how to solve?

 

2 REPLIES 2
uveuvenouve
Associate III

Update:
my 746G_disco work now
by using stm32cubeide as the ide
initially, i am using keil ide
but stm32f103 usb audio still not work with stm32cubeide

Peter BENSCH
ST Employee

It's great that it works with the STM32F746G-DISCO, i.e. a genuine STM32.

However, I'm not at all surprised that you're having problems with a Blue Pill - they haven't contained original STM32F103s for many years, only fakes, for which you unfortunately can't expect any support.

Good luck!
/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.