cancel
Showing results for 
Search instead for 
Did you mean: 

Heavy Noise and Distorted Audio Output on STM32F407 Discovery with USB Audio Class

gokce
Associate

Hello,
I am working on a USB Audio streaming project using an STM32F407 Discovery board. I am using the USB Device (Audio Class) and I2S3 to output audio to the onboard CS43L22 DAC (I plan to move to MAX98357 later).
Problem:
The PC recognizes the board as an "STM32 Audio Class" device. However, when I play audio, there is a very high level of noise/distortion. While I can faintly hear the music behind the noise, the output is dominated by a harsh "buzzing" or "crackling" sound. 

Any guidance or suggestions would be greatly appreciated!

I2S Parameter SettingsI2S Parameter SettingsClock configurationClock configuration

 

1 REPLY 1
Ozone
Principal III

I'm not at all an expert with USB and audio class devices.

However, have you considered this is a data format issue ?
I would record a short sample with a PC audio editor (my favorite is Audacity), and review the audio data.
Perhaps you can easily modify your F407 application to transmit a sine wave, and check this audio data on PC side.