Skip to main content
Msolinas
Senior
September 13, 2023
Solved

ADC work only in debug

  • September 13, 2023
  • 5 replies
  • 1750 views

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.

This topic has been closed for replies.
Best answer by Msolinas

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.

5 replies

Issamos
Super User
September 13, 2023

Hello @Msolinas 

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

Best regards.

II

Msolinas
MsolinasAuthor
Senior
September 13, 2023

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
September 13, 2023

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""."
Msolinas
MsolinasAuthorBest answer
Senior
September 13, 2023

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
October 13, 2023

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""."