STM32CubeIDE debugging issues of code placed in SRAM (STM32H7 MCU).
Hello,
I'm using latest STM32CubeIDE (1.12.0) on Linux Ubuntu 20.04 and on Apple Ventura macOS on M1 mini. I'm using also stm32h757i-eval board for this testing. I'm using RTOS (RTEMS) code for testing, but IMHO it's not a problem of RTOS/RTEMS here.
What I see is:
- code linked to FLASH: I'm able to step as I'd like to and I'm able to resume execution as I like to. For test I'm using 3 breakpoints
- code linked into SRAM (AXI SRAM): I'm not able to step as I'd like to. Some functions blocks debugging forever. Debugger shows it's running a Step, but nothing happen after that. Also when testing my 3 breakpoints setup, I'm able to resume only exactly once. On second resume the code stop always on the second breakpoint in the row and can't move forward from execution point of view. When I switch to instruction stepping and follows PC reg, on step it does not move forward.
Remark: I'm testing here the *same* code with the same breakpoints set into it. The only difference is linkage either into flash (working as expected) or to axi sram (buggy).
Let me ask, has anybody reported this behavior already? Is there anything I shall do to fix that on my side? Am I doing any mistake which prevents IDE/debugger to work as expected?
Thanks!
Karel
