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

How to change the top address of the app

SDK: 15.3.0
Example: ble_app_multirole_lesc
Device: EYSHJNZWZ (nRF52832)

I recognize by default that the top address of the app is 0x26000.
I want to change the top address of the app to 0x30000.
Therefore, I changed to the following setting (only "FLASH_START" was changed).

FLASH_PH_START = 0x0
FLASH_PH_SIZE = 0x80000
RAM_PH_START = 0x20000000
RAM_PH_SIZE = 0x10000
FLASH_START = 0x30000
FLASH_SIZE = 0xA0000
RAM_START = 0x20005000
RAM_SIZE = 0x20000

With this setting, I confirmed that the start address of the application was changed to 0x30000.
I also confirmed that the program counter would be 0x30000.
However, the app stops on the way.

Please tell us about the cause of this.

Parents
  • Hi, 

    I want to change the top address of the app to 0x30000.

    Why do you want to change to 0x30000?

    The application should start at the top of the SoftDevice. There cannot be a gap between them. 

    -Amanda H. 

  • Sorry, there was not enough explanation.
    I want to split it into two applications.
    Therefore, I have created two projects (Application-A and Application-B) and created the application separately.
    I want to load Application-A and Application-B into their respective areas and run them as a single application.
    Application-A uses the area from 0x26000 to 0x2FFFF.
    Application-B uses the area from 0x30000 to 0x7FFFF.
    * This thread is talking about Application-B.

    SoftDevice first runs Application-A.
    Application-A jumps to Application-B when certain conditions are met.
    * Confirmed to jump to Application-B.
    In that case, the above error occurred in Application-B.

Reply
  • Sorry, there was not enough explanation.
    I want to split it into two applications.
    Therefore, I have created two projects (Application-A and Application-B) and created the application separately.
    I want to load Application-A and Application-B into their respective areas and run them as a single application.
    Application-A uses the area from 0x26000 to 0x2FFFF.
    Application-B uses the area from 0x30000 to 0x7FFFF.
    * This thread is talking about Application-B.

    SoftDevice first runs Application-A.
    Application-A jumps to Application-B when certain conditions are met.
    * Confirmed to jump to Application-B.
    In that case, the above error occurred in Application-B.

Children
Related