ADC work only in debug
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-13 4: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.
- Labels:
-
STM32Cube MCU Packages
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-13 7: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-13 4:14 AM
Hello @Msolinas
I suggest you to reset your board. Else clear all and reinstall the code.
Best regards.
II
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-13 5: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-13 6: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-13 7: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-10-13 1:05 PM
How would the DMA be able to access RAMD2 in debug, but not in release? Not sure that check out.
