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

change the default app start addr

Hi,

Currently, I use the sdk 12.3.0 on a PCA10028 EVK with the s130 softdevice.

For some reason, I want to change the default location of my application. By default, the start address of the application is 0x1B000 and I want to move it to 0x2D000. I change the origin address in the .ld file but I didn't found how to configure the softdevice to jump at the address 0x2D000 instead 0x1B000.

There is a way to change it ? and there is a way to configure it dynamically ?

Parents
  • Sorry for the delayed answer

    If you have a bootloader, then you can call sd_softdevice_vector_table_base_set in the bootloader to tell the softdevice that the application is residing at some other place than the default place where it expects it (which is end of softdevice space).

    If you do not have a bootloader, then you should still have a very thin application at 0X1B000 which can either

    1. jump to another app that starts at 0x2D000 or 
    2. call sd_softdevice_vector_table_base_set from the application that starts at 0x1B000 and reset the device.After which all exceptions are forwarded to application at 0X2D000 in your case
Reply
  • Sorry for the delayed answer

    If you have a bootloader, then you can call sd_softdevice_vector_table_base_set in the bootloader to tell the softdevice that the application is residing at some other place than the default place where it expects it (which is end of softdevice space).

    If you do not have a bootloader, then you should still have a very thin application at 0X1B000 which can either

    1. jump to another app that starts at 0x2D000 or 
    2. call sd_softdevice_vector_table_base_set from the application that starts at 0x1B000 and reset the device.After which all exceptions are forwarded to application at 0X2D000 in your case
Children
No Data
Related