cancel
Showing results for 
Search instead for 
Did you mean: 

How to download code to FLASH Memory Bank 2 using STM32CubeIDE

Ekim.1
Associate II

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?

1 ACCEPTED SOLUTION

Accepted Solutions
berendi
Principal

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.

View solution in original post

1 REPLY 1
berendi
Principal

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.