Skip to main content
Yood
Associate II
August 26, 2018
Question

Corrupted RAM after enabled D-Cache

  • August 26, 2018
  • 2 replies
  • 655 views

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.

    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    August 26, 2018

    >>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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Yood
    YoodAuthor
    Associate II
    August 28, 2018

    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.