cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G431KB had faulty values when ADC-DMA output set directly to FMAC WDATA register

mxo
Associate III

Hello,

now I try some equipment control which has function that watching some fault vibration, with using displacement sensor & ADC.

while I want to reduce ADC output noise and found that FMAC works pretty good.

but now the problem is, when ADC-DMA output set directly to FMAC WDATA register to off-load from Task-Main, FMAC gave some faulty value.

normally the value is between 0x0200~0x0d00 12bit value, but FMAC RDATA register sometimes shows 0x00c2 or 0xe304 or like that even in the 'silent' environment (expected value is about 0x0720 and stable, and almost as is if ramdomly software-break made with debugger).

 

the code is like following..

mxo_0-1698748184168.png

I wonder where am I wrong?

 

0 REPLIES 0