Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Putting Code Into RAM

Hello,

I am running ble_app_beacon demo from nRF5 SDK 17.0.2 on nRF52 DK and would like to decrease power consumption as much as possible. From this post, I have seen that it is possible for nRF51 but could not replicate for my case. Could you help me achieve this? Also I manually calculated the space given to application files in total by summing all application blocks visible in the nRF Connect Programmer app and yielded 0x755c. Besides that SoftDevice 132 covers 0x1596b in total and MBR sits on 0xaff.

Any help is much appreciated, thank you.

Burnie Barren

Parents Reply Children
  • I had checked that link but could not be sure, is it enough that I make RAM start address and the flash start address the same to run the code in RAM?

  • If your Application uses a SoftDevice the start address for the FLASH memory must be set to the correct value for the corresponding SoftDevice, otherwise, the Application will not run. This is because the SoftDevice expects the Application to start at one specific address. The RAM start address on the other hand can vary depending on the number of features used in the SoftDevice, but it has always the lowest possible starting address. 

    -Amanda

  • So just asking to verify, I cannot give them the same address if I am using a SoftDevice, right? In my case, minimum RAM is 0x20001628 and flash start is 0x26000.

  • Burnie Barren said:
    I cannot give them the same address if I am using a SoftDevice, right?

     Correct.

     

    Burnie Barren said:
    In my case, minimum RAM is 0x20001628 and flash start is 0x26000.

     If you are using s132_nrf52_7.2.0, the minimum required memory is 5.6 kB (0x1668 bytes). So, the RAM start is 0x20001668. See release-note under nRF5_SDK_17.0.2\components\softdevice\s132\doc

    -Amanda

Related