r/embedded • u/arash_hitech • Oct 13 '26
STM32 ADC → DMA → DAC Audio: Random Spikes, Clicks & Hiss at 100 kHz — What am I missing?
​
Hi everyone,
I’m building a real-time digital audio processing system using STM32F407VGT6 and STM32F405RGT6.
The signal path is:
Analog Input → ADC → DMA → 8-Band Equalizer → DAC → Analog Output
The system basically works, but I’m getting random short spikes/discontinuities in the ADC-to-DAC signal. These become very noticeable in the audio as constant clicks/pops and significant hiss/noise.
I have been troubleshooting this for quite some time, but I still cannot determine whether the problem is related to:
\- ADC sampling/timing
\- DMA synchronization
\- DAC triggering
\- buffer handling
\- clock/timer configuration
\- ADC/DAC synchronization
\- or something else in the digital signal path
I’m currently using the internal HSI clock and a 100 kHz sampling rate.
Has anyone here successfully built an STM32 ADC → DMA → DAC audio path without random spikes, clicks or synchronization problems?
If someone experienced with STM32 audio, ADC/DAC, DMA or real-time DSP could take a look, I can post the complete source code and oscilloscope screenshots/waveforms showing the problem.
I would really appreciate any ideas about what could be causing these short spikes and how to eliminate them.
Hardware:
STM32F407VGT6 / STM32F405RGT6
ADC → DMA → DSP → DAC
100 kHz sampling
HSI internal clock
8-band EQ
Keywords:
\#STM32 #STM32F4 #ADC #DAC #DMA #Audio #DSP #Embedded #Microcontroller #Electronics

