Skip to main content
Zt Liu
Senior III
July 28, 2019
Solved

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

  • July 28, 2019
  • 1 reply
  • 1213 views

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.

This topic has been closed for replies.
Best answer by Zt Liu

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

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.

1 reply

Zt Liu
Zt LiuAuthorAnswer
Senior III
July 28, 2019

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

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.