2024-01-23 06:15 AM
Hi, i'm moving from IAR to STM32CubeIDE all my projects based on STM32 microcontrollers. On IAR i modified the entry point of the project from 0x8000000 to 0x8008000. How may do same modify on CubeIDE? Thanks.
Massimo Liggio
Solved! Go to Solution.
2024-01-23 06:51 AM
Check also how SCB->VTOR is set in SystemInit(), really needs to point to symbol gfnVectors, or whatever symbol you have for the vector table in startup.s so it follows the settings/placements determined by the linker and its script.
You can also copy the vectors into RAM, and point at that, if you want to change or "relocate" them. The table for most STM32 needs to be on a 512-byte boundary, depending on size of table the MCU uses.
2024-01-23 06:43 AM
Go into the linker script (*.ld file) and there will be a line like this:
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K
Change it to what you want.
2024-01-23 06:51 AM
Check also how SCB->VTOR is set in SystemInit(), really needs to point to symbol gfnVectors, or whatever symbol you have for the vector table in startup.s so it follows the settings/placements determined by the linker and its script.
You can also copy the vectors into RAM, and point at that, if you want to change or "relocate" them. The table for most STM32 needs to be on a 512-byte boundary, depending on size of table the MCU uses.
2024-01-24 12:56 AM
thanks for your hints, but it doesn't work yet. I will check step by step what happens...
Massimo
2024-02-01 07:50 AM
The suggested procedure works well. Thanks.