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

Is it possible to change that APP start address ?

How the start address of my FW is set ?

I would like to add a "library" right after the Soft Device. And the move the APP after this library. I can make it work when I have a Custom Bootloader that jump to this new address. But not on testing my Firmware without BSL. Where is this address set ?

And if it's not possible, where to define a good fixed location for a Custom Library ? Since the end of the Flash is used by BSL and FDS ?

Any idea is welcome !

Parents
  • In your linker script (e.g. *.ld in your project), there is a section:

    MEMORY

    {

      FLASH (rx) : ORIGIN = 0x23000, LENGTH = 0x5d000

      RAM (rwx) :  ORIGIN = 0x20002310, LENGTH = 0xDCF0

    }

    that defines where the application starts. In my case I use SoftDevice with some custom attributes and therefore my app starts at 0x20002310. A 'clean' app (no SoftDevice) would start at 0x20000000 and can have length 0x10000 (or 64KB).

Reply
  • In your linker script (e.g. *.ld in your project), there is a section:

    MEMORY

    {

      FLASH (rx) : ORIGIN = 0x23000, LENGTH = 0x5d000

      RAM (rwx) :  ORIGIN = 0x20002310, LENGTH = 0xDCF0

    }

    that defines where the application starts. In my case I use SoftDevice with some custom attributes and therefore my app starts at 0x20002310. A 'clean' app (no SoftDevice) would start at 0x20000000 and can have length 0x10000 (or 64KB).

Children
No Data
Related