2026-02-12 10:04 PM
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 Settings
Clock configuration
2026-02-12 11:09 PM
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.