Skip to main content
Ekim.1
Associate III
April 17, 2020
Solved

How to download code to FLASH Memory Bank 2 using STM32CubeIDE

  • April 17, 2020
  • 1 reply
  • 1803 views

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?

This topic has been closed for replies.
Best answer by berendi

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.

1 reply

berendi
berendiAnswer
Principal
April 17, 2020

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.