On STM32H7B0, how do I configure to have code(text) in SRAM, vector table in Flash, not relocate code to debug code larger than internal Flash. #55715
Replies: 1 comment
-
I was able to get this working by assigning values for the FLASH even if it wasn't being used. I am able to debug by doing manual init of the *SP to the ram location of the vector table. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The 7B0 only has 128K of flash and I am trying to debug a larger program. Eventually, the code will be encrypted and loaded at runtime from external flash by a secure bootloader. However, I would like to use gdb to debug the code and build it to link in RAM. I have succeeded in getting the code all built into RAM (XIP=n and some extra defines), but the vector table is also in RAM and I would rather not change the init code, etc to remap VTOR and setup the stack. Seems like it should be easy to keep the vector table at 0 in the flash, so the addresses are all correct out of a RESET.
I am assuming I only need to change the linker file, but I'm a novice at that... Any help is welcome.
Obviously, I cannot just do runtime relocation as the code does not fit inside the on chip flash...
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions