Skip to main content
Graduate
September 5, 2024
Question

USB Audio seems stuck

  • September 5, 2024
  • 2 replies
  • 842 views

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?

 

    This topic has been closed for replies.

    2 replies

    Graduate
    September 5, 2024

    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

    Technical Moderator
    September 5, 2024

    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