cancel
Showing results for 
Search instead for 
Did you mean: 

Strange problem when using Keil and debugging STM32H747 Discovery. Concerning RAM address

Zt Liu
Senior III

Hi, there, I am not sure this is the right place to ask if it's concerning IDE.

Just got my new STM32H747 Discovery kit, running CubeMX examples,

All running well, except for debugging:

(I am using MDK Keil (V5.27 / V5.28) and on-board STLink V3)

I found that while debugging, if the data memory is outside DTCM (0x20000000~0x2001FFFF), Keil's watch window and memory window

just don't update as program executes.

That is, I can still see the data variable address in the watch window

but the data just don't update as the code execues.

So far I've seen that if data are in AXI SRAM or SRAM4, the data just don't update.

I am not sure if this is ST-Link setting problems or Keil IDE problem.

I would like to know if anyone faces the same issues,

if so , is there any solution?!

Thanks for reading this post, 🙂

Zt.

1 ACCEPTED SOLUTION

Accepted Solutions
Zt Liu
Senior III

Okay, I am so silly, I need to turn off the cache. 😅

The default cache policy for SRAM is write-back, so the up-to-date data is still in cache not in the SRAM. Same for other cached data.

View solution in original post

1 REPLY 1
Zt Liu
Senior III

Okay, I am so silly, I need to turn off the cache. 😅

The default cache policy for SRAM is write-back, so the up-to-date data is still in cache not in the SRAM. Same for other cached data.