2024-09-04 07:45 PM
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?
2024-09-04 10:26 PM
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
2024-09-05 08:15 AM
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