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

iROM and iRAM Settings

What are the S130 SoftDevice v2.0.0-7 alpha iROM and iRAM settings for the nRF51822 and the ble_app_hids_keyboard example?

Someone at Nordic Support suggested the following which allows the app to load and run but it does not appear to be running properly. Also, with these settings the code will not stop at breakpoints in Debug.

iROM1 = 0x1B000 0x25000 iRAM1 = 0x20002F80 0x5080 RAM for Algorithm = 0x20000000 0x1000

I tried values that were previously used for S110 which allows the app to load and run but again it does not appear to be running properly. These settings do, however, allow the code to break in Debug.

iROM1 = 0x14000 0x2B000 iRAM1 = 0x20002000 0x2000 RAM for Algorithm = 0x20000000 0x1000

FOLLOWUP nRF51822QFAA ROM Top = 0x0003 FFFF (256KB) RAM Top = 0x2000 3FFF (16KB)

HID Keyboard example map file indicates: Total ROM Size (Code + RO Data + RW Data) = 32208 = 0x7DD0 Total RW Size (RW Data + ZI Date) = 6808 = 0x1A98 Do these include the SoftDevice?

Therefore CODE must start at 0x0003 822F or less RAM must start at 0x2000 2567 or less

For testing allow spare space ROM1 Length = 0x8000 RAM1 Length = 0x2000

Therefore ROM1 start 0x0003 FFFF – 0x8000 = 0003 7FFF (use 0x0003 8000) RAM1 start 0x2000 3FFF – 0x2000 = 2000 1FFF (use 0x2000 2000)

     Start Address     Length

ROM1 0x0003 8000 0x8000 RAM1 0x2000 2000 0x2000

I do not know the ROM and RAM required for the SoftDevice so these start addresses may not be acceptable. Where are CODE_R1_BASE and RAM_R1_BASE?

When either of the values that you sent or the values computed above are used the code still will not break in Debug and the operation is questionable.

Related