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_xxAC RAM/ROM layout

Hello - I'd like to make sure my RAM/ROM layout for the nRF51822_XXACis OK - if someone has a minute to double-check it that'd be great.

I started with the "nRF51822 Beacon v1.1.0" example source code and loaded it up into Keil 5.12. I notice that by default the IROM1 section starts at 0x00016000 and is 0x00029000 in length (so 0x00016000 to 0x0003F000). This seems compatible with soft device S110 (0x00000000 - 0x00016000), but I notice that the bootloader in the "Precompiled Hex" folder starts at 0x0003C000, so I think as it stands now the application could run into the bootloader area (though currently it's small enough that it doesn't). So I think the IROM1 section should be 0x00026000 in length (0x00016000 to 0x0003C000)?

Also for the RAM layout, there is 32K (0x8000) available, and the soft device takes the first 8K (0x20000000 to 0x20002000), so 24K remaining - if I don't use the heap I can set that to 0, and leaving the stack at 2K, I should have 22K (0x5800) remaining for the application - so 0x20002000 to 0x20007800?

I've attached a screenshot of my Keil startup code and options for verification.

nRF58122-XXAC-Memory.png

Thanks, CR

Related