2023-09-13 04:02 AM
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.
Solved! Go to Solution.
2023-09-13 07:03 AM
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.
2023-09-13 04:14 AM
Hello @Msolinas
I suggest you to reset your board. Else clear all and reinstall the code.
Best regards.
II
2023-09-13 05:01 AM
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.
2023-09-13 06:32 AM
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.
2023-09-13 07:03 AM
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.
2023-10-13 01:05 PM
How would the DMA be able to access RAMD2 in debug, but not in release? Not sure that check out.