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

nRF51822 iRAM and iROM settings for v0.5 S130 SD?

What are the iROM and iRAM settings for the v0.5 S130 softdevice for the nRF51822?

The S130 softdevice spec sheet provides some clues, but no specific settings.

I've tried: iROM1: 0x20000 0x1F000 iRAM1: 0x20002800 0x1800 which allows me to load an app, but it doesn't run.

RAM for Algorithm is set to: 0x2000000 0x1000.

(incidentally, why do I even have to set iROM and iRAM? Shouldn't they be part of the device pack?)

Edit: format

Parents
  • Are you working with the s130_demo that is included in the S130 SoftDevice download?

    My settings in it are:

    IROM1: 0x1C000 0x40000 IRAM1: 0x20002800 0x1800

    Edit: 0x40000 is an error, and is actually way outside the memory range, but it is not critical for the example as is.

    Anyway, if you want to develop something with this example as a starting point the correct ROM size is 0x40000-0x1C000 = 0x24000, this is without bootloader and device manager.

    So the correct settings are:

    IROM1: 0x1C000 0x24000

    IRAM1: 0x20002800 0x1800

    The flash resource requirements in the S130 Specification are incorrect, this will be fixed.

    The correct flash values are:

    Flash          |   S130 Enabled   |   S130 Disabled
    Amount         |   112KB          |   112KB
    CODE_R1_BASE   |   0x0001C000     |   0x0001C000
    

    Sorry about any inconvenience this may have caused.

  • What I wrote here first is wrong. The table 11 "S130 Memory resource requirements" in the device spec doc is correct with respect to RAM. The SoftDevice requires 10kB. However, this means that only 6kB (0x1800) is left for the application as Petter describes above (so do not mistake the 10kB for the allowed size of the application). For future reference, you can cat the s130_demo.uvproj file, and you will see OCR_RVCT9 with 0x20002800 and 0x1800 for RAM, as well as OCR_RVCT4 with 0x1c000 and 0x40000 for ROM (last number is total ROM and should be 0x24000 as Petter explains too). I don't know if this will still be OCR_RVCT4 and OCR_RVCT9 in the future, but probably you will be able to derive it from the values you probably approximately know.

Reply
  • What I wrote here first is wrong. The table 11 "S130 Memory resource requirements" in the device spec doc is correct with respect to RAM. The SoftDevice requires 10kB. However, this means that only 6kB (0x1800) is left for the application as Petter describes above (so do not mistake the 10kB for the allowed size of the application). For future reference, you can cat the s130_demo.uvproj file, and you will see OCR_RVCT9 with 0x20002800 and 0x1800 for RAM, as well as OCR_RVCT4 with 0x1c000 and 0x40000 for ROM (last number is total ROM and should be 0x24000 as Petter explains too). I don't know if this will still be OCR_RVCT4 and OCR_RVCT9 in the future, but probably you will be able to derive it from the values you probably approximately know.

Children
No Data
Related