2022-06-28 07:13 AM
Hi,
I took an example code that implements USBD AUDIO device and ported it to the STM32F411E-Discovery board. Now I can play music from my computer using this board connected to the audio jack.
This example works when I set the sample frequency to 48000, but when I modify it to another frequency like 44100 or 16000, I get an error on my PC for sample rate setting failure.
The change I made takes place in the file usbd_conf.h
#define USBD_AUDIO_FREQ 16000U //48000U
Any idea?
Thanks,
David