Hello,
I’m starting this post because the original was under a different topic title.
here is the link to it:
Topic: Projects with STM32H7S3x8 / STM32H7S7x8 | Sysprogs
I have a project with an STM32H7R3L8H6H MCU and encountered the problem that I can see the variable values during debugging. I followed the recommendations from Sysprogs support and patched the gcc_compat.h file. This change made it work, but after some modifications in my project files, the problem with the missing values in the variables returned. I started a new project from scratch and followed the tutorials. At first, it worked just fine, but as soon as I enabled the DCache, the problem returned.
The variables show only initial values and no changes if I do this:
// Enable D-Cache---------------------------------------------------------
SCB_EnableDCache();
The variables showing changing values if I do this:
// Enable D-Cache---------------------------------------------------------
// SCB_EnableDCache();
The MPU_Config();
and the SCB_EnableICache();
don’t matter, only the SCB_EnableDCache();
I want to use the DCache; how can I enable it without losing the ability to debug?
Thank you
Kai