cancel
Showing results for 
Search instead for 
Did you mean: 

ADC work only in debug

Msolinas
Senior

Hi, I have set ADC + DMA in H743, I reuse code that work in products every days but today a strange beauvoir happened, ADC work only in debug mode, somebody know this issue?

thanks friends.

1 ACCEPTED SOLUTION

Accepted Solutions

Hi TDK, thanks for the advice on the "variables", I found the problem, you certainly know that the H743 has DMA access in a differentiated way to the RAM banks, I had the wrong bank in RAMD2, strangely in debug it was fine. So solved!

thank you all for your contributions.

View solution in original post

5 REPLIES 5
Issamos
Lead II

Hello @Msolinas 

I suggest you to reset your board. Else clear all and reinstall the code.

Best regards.

II

Hi Issamos... thanks for answer... nothing to do... I tried and no work. In first moment I thinked at optimization

but is not the problem.

 

TDK
Guru

Typically when a program works in Debug but not in Release, it is due to a bug in the program. A race condition could change, or a variable could be optimized out in a way that breaks the program.

More information on "does not work" would be needed to diagnose the issue. Step through the code, debug, find out what isn't working, why it isn't working, and go from there.

If you feel a post has answered your question, please click "Accept as Solution".

Hi TDK, thanks for the advice on the "variables", I found the problem, you certainly know that the H743 has DMA access in a differentiated way to the RAM banks, I had the wrong bank in RAMD2, strangely in debug it was fine. So solved!

thank you all for your contributions.

TDK
Guru

How would the DMA be able to access RAMD2 in debug, but not in release? Not sure that check out.

If you feel a post has answered your question, please click "Accept as Solution".