cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot step by step debug on STM32H7 with STM32CubeIDE and code in AXI-SRAM

Gpeti
Senior II

My setup is:

  • STM32H753 eval board
  • STM32CubeIDE 1.10.1
  • code generated with arm-none-eabi-gcc (no stdlib, no semiihosting, no ITM)

The code is located in AXI-SRAM memory.

I can execute the code and break wherever I want. However when I break I cannot step into the code (or continue execution). When i do so (whether it is Step into or step over, assembly mode or normal mode) the code remains at the same instruction (everything happens as if the instruction is not executed). The disassembly is correct. There is no "bkpt" or other particular instruction.

I obviously tried to set the bkpt at different locations.

i also tried to set it up after the code is loaded to RAM. I also set the bkpt as "hardware" instead of "regular"

When the code is executed from somewhere else (like ITCM) it works just fine.

Any idea ?

1 ACCEPTED SOLUTION

Accepted Solutions
Gpeti
Senior II

After further investgation it looks like the problem comes from the instruction cache activation. if I keep the cache disabled, the stepping works

View solution in original post

4 REPLIES 4
FBL
ST Employee

Hello @Gpeti​,

Could you please try update the latest version of STM32CubeIDE. Are you enabling the memory protection unit? Could you check access permission in MPU_RASR.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.


I'm out of offce with limited access to my emails.
Happy New Year!
Gpeti
Senior II

After further investgation it looks like the problem comes from the instruction cache activation. if I keep the cache disabled, the stepping works

FBL
ST Employee

@Gpeti​ Thank you for your feedback.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.


I'm out of offce with limited access to my emails.
Happy New Year!
Gpeti
Senior II

To answer your other questions, I will update STM32CubeIDE but it will take some time (offline workstation).

I'm enabling the MPU but later in the code, the problem happens before.