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

check nRF51DK memory usage

I've got a few questions regarding memory of nRF51DK.

  1. I would like to know what is the total memory size of the nRF51DK board?

  2. What is the memory size allocated for user's application? (From my understanding, there is a region for SoftDevice and another for User's Application?)

  3. Is it possible to check how much of the memory I have used for my program that I load into the nRF51DK? And to check how much of the memory is there left in the application portion?

Thank you!

Parents
    1. By memory size you mean flash size on nRF5x target on the DK board? That depends on DK type and version and in the end it's only about chip family and flavor and revision... In nRF51 case it's 256kB of flash (and 16 or 32kB of RAM).
    2. When it comes to "available flash for your app" it indeed depends on what Soft Device type and version you use. Simply look into release documentation attached in the ZIP file of SD you use.
    3. Sure, you either see it in compiler output or you look into the HEX file (or BIN size) generated. Note that flash contains both code and data so if you use flash internally in the app to store some data you need to place it somewhere wisely (e.g. to the end of flash area) and then have in mind how much the available space shrinks.
Reply
    1. By memory size you mean flash size on nRF5x target on the DK board? That depends on DK type and version and in the end it's only about chip family and flavor and revision... In nRF51 case it's 256kB of flash (and 16 or 32kB of RAM).
    2. When it comes to "available flash for your app" it indeed depends on what Soft Device type and version you use. Simply look into release documentation attached in the ZIP file of SD you use.
    3. Sure, you either see it in compiler output or you look into the HEX file (or BIN size) generated. Note that flash contains both code and data so if you use flash internally in the app to store some data you need to place it somewhere wisely (e.g. to the end of flash area) and then have in mind how much the available space shrinks.
Children
Related