cancel
Showing results for 
Search instead for 
Did you mean: 

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

DGany.2
Associate II

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

0 REPLIES 0