Cannot step by step debug on STM32H7 with STM32CubeIDE and code in AXI-SRAM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-04-18 5:27 AM
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 ?
Solved! Go to Solution.
- Labels:
-
RAM
-
STM32CubeIDE
-
STM32H7 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-04-20 7:16 AM
After further investgation it looks like the problem comes from the instruction cache activation. if I keep the cache disabled, the stepping works
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-04-20 5:46 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-04-20 7:16 AM
After further investgation it looks like the problem comes from the instruction cache activation. if I keep the cache disabled, the stepping works
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-04-20 7:18 AM
@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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-04-20 7:20 AM
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.
