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

How to start an application from bootloader at specified address?

Hello.

I use s130 2.0.0-7.alpha stack and thus app starts at 0x1B000

Questions:

  1. How to change default app start address, for example to 0x25000 ?

  2. How to programmatically switch between 2 apps from bootloader, one app at 0x1B000 and another at 0x25000 (~40 Kb each) ?

  3. I see the following lines in bootloader example:

    if (bootloader_app_is_valid(DFU_BANK_0_REGION_START) && !bootloader_dfu_sd_in_progress()) { // Select a bank region to use as application region. // @note: Only applications running from DFU_BANK_0_REGION_START is supported. bootloader_app_start(DFU_BANK_0_REGION_START); }

does it mean that bootloader can start only app at 0x1B000 address?

does it mean that after download update to 0x25000 it's only possible to copy it to 0x1B000 and then start?

Thanks!

Related