Replies: 5 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
-
What is your usecase @xhpohanka ?
This is with SRAM0 defined as follows in the stm32h750.dtsi
|
Beta Was this translation helpful? Give feedback.
-
Hello, This is how I do the relocation in
|
Beta Was this translation helpful? Give feedback.
-
ok, (plus CONFIG_CODE_DATA_RELOCATION=y)
|
Beta Was this translation helpful? Give feedback.
-
Ah, sorry Later edit:
It indeed seems to help at least somehow. Now I'm able to do stepping in GDB in relocated code :). Breakpoints set before the cpu was started are not hit, I need to set them later, strange but maybe can be caused by some init of relocation or the MPU?? I also met some behavior where the gdb shown wrong memory content, but it could be caused by some other staff, it is not reproducible in repeatable way... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I don't know if this is a bug or my misuse.
I have a project based on zephyr 3.1 (we will upgrade in future, but now it's not an option). The STM32H750 has quadspi flash for storing and running the firmware and for speedup parts of the code are relocated to RAM using zephyr's cmake support. Unfortunately the relocated parts cannot be easily debugged with openocd/GDB. Breakpoints are hit, but then the code cannot be resumed again.
I suspect MPU can be causing this. Can anyone give some advice?
thanks
Jan
Beta Was this translation helpful? Give feedback.
All reactions