Skip to main content
Associate II
March 31, 2024
Question

Change flash memory in linker

  • March 31, 2024
  • 2 replies
  • 1265 views

I change the flash memory in the linker file from 0x8000000 to 0x8006000 and size from 512k to 484k.

My program crash on HAL_Delay i think the issue is from the address that i change it from the linker so what else i have to change to my programme will run normaly.

I am working with stm32F103ZET6.

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
March 31, 2024

You'd  need to change SCB->VTOR to reflect the new base address of the vector table. This is normally done in SystemInit() and could use a Linker symbol rather than a define.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
HelmishAuthor
Associate II
March 31, 2024

Can you tell me where exactly make these changes