Skip to main content
Visitor II
June 28, 2022
Question

Can I modify the STM32F4 USBD Example to have the device work in 16000 Sample rate instead of 48000?

  • June 28, 2022
  • 0 replies
  • 742 views

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

    This topic has been closed for replies.