cancel
Showing results for 
Search instead for 
Did you mean: 

How to change flash start address without linker file

DCtech
Associate II

I need to change my flash jump address when I update firmware. I am using sm32h750 microcontroller, I can change the application code start address with flash .ld (linker) file with this

  MEMORY

  {

  RAM (xrw)   : ORIGIN = 0x20000000, LENGTH = 192K

  CCMRAM (rw)   : ORIGIN = 0x10000000, LENGTH = 64K

  FLASH (rx)   : ORIGIN = 0x8100000, LENGTH = 64K

  }

But I dont want to change anything on this file, I want to change only `FLASH register boot address FLASH_BOOT_CURR)` If I dont change .Ld file and configure these registers to what I want to start. Is program starts this address or not ?

I need this way because of the keep the last code on flash. If I change the flash start address so I can control the where can I copy.

If I change the flash registers at the time of init, will it be enough on its own to start from that address? 

1 REPLY 1
Pavel A.
Evangelist III

STM32H750 has 128KB of flash at 0x08000000 to 0x0801FFFF in one bank.

Only Chuck Norris could change the boot address of STM32H750 to 0x8100000 but he is retired long ago.