This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Is't possible to change app start address from prebuild binary file?

Hi,
Usually we set FLASH_START macro to indicate application start address,
I do like to consult is't possible to change the FLASH_START from prebuild binary file without rebuild?

I'm trying to implement dual boot, that is, 2 different application are programed to 2 address of flash,
then boot to one of them depending on bootloader choice,

For example, app1 start from 0x27000, app2 start from 0x8d000,
I set FLASH_START=0x27000 for app1,
FLASH_START=0x8d000 for app2,
then build hex files and program them to flash.

That works but I need to decide application start address before compiling,
I hope the start address can be set by bootloader dynamically,
if application is programed to address of app1, set it to 0x27000, otherwise 0x8d000,
is't possible?

Thanks~

Parents Reply Children
No Data
Related