2020-04-16 09:11 PM
Hello, everyone.
When downloading the code using STM32CubeProgrammer, I was able to download the code to the location I wanted by specifying the start address.
What I'm curious about is how to set up to download to where I want to be when I debug and download using STM32CubeIDE. (For example, download code to flash memory bank 2 sector 0)
Is there any way like this?
Solved! Go to Solution.
2020-04-16 09:45 PM
Set FLASH ORIGIN= in your linker script (*.ld file) to the address where you want your program to be loaded. Ensure that SCB->VTOR is set to the proper address in the startup code.
2020-04-16 09:45 PM
Set FLASH ORIGIN= in your linker script (*.ld file) to the address where you want your program to be loaded. Ensure that SCB->VTOR is set to the proper address in the startup code.