cancel
Showing results for 
Search instead for 
Did you mean: 

Corrupted RAM after enabled D-Cache

Yood
Associate II

I'm working on the NUCLEO-H743ZI (STM32 H7 processor).

In main after enabeling the MPU I enabled the D-Cache by calling SCB_EnableDCache()​.

I noticed that my RAM starting at 0x30000000 is getting corrupted after calling SCB_EnableDCache() .

Any Ideas what am I missing here?

Thanks,

Yehuda.

2 REPLIES 2

>>Any Ideas what am I missing here?

The picture lacks much clarity.

Corrupt how, from what point-of-view (debugger)?

Can you provide code that minimally demonstrates the situation?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Yood
Associate II

Corrupt from DEBUGGER poiny-of-view (IAR).

In main my first line is: SCB_EnableDCache() stepping into the function I noticed that after running to _DSB() (line 2268) after the two do-while loops​ my memory, that was initialized to zero before main, is getting corrupted for example at address 0x30007920 to 0x3000795F.