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

Updating start address to nrf52840 dk via code

Hello to everyone, I have a nrf52840 dk device running Zephyr RTOS. I have flash an app to the start address 0x00 and a second app to 0x2000 address. While I am pressing a button from the first app I can jump to second app which runs ok. My question is how to update the start address to the address of the second firmware (0x2000)? Thus the second app will start on the reset. At this time the on reset the first app is booting.

Parents Reply
  • My project is nothing special. I am using zephyr and change CONFIG_FLASH_LOAD_OFFSET to the hello world (second app). The custom bootloader is flash with CONFIG_FLASH_LOAD_OFFSET=0x0 and after booting tries to jump to the second app.  If I use for the second app the CONFIG_FLASH_LOAD_OFFSET=0x20000 or CONFIG_FLASH_LOAD_OFFSET=0x0000C000 (address of slot1 partition of MCUboot) works fine. If I use something like 0x4e20 which is some bytes after the end of my custom bootloader the jump is not working. I don't know. I am looking to .dts file. Can this be a zephyr issue? I just want to make sure that the device allow the implementation of this idea

Children
Related