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

How to programmatically determine available FLASH space?

Hello,

I've read the answers to how to *calculate* available amount of FLASH space, based on the size of SoftDevice, Application, and Bootloader.
However, they did not help me find an answer to the question: How to determine programmatically in real time the available FLASH space.

My code would have to make such a determination. Could you point me to the APIs or other methods, allowing that, if they exist?

I'm using nRF5_SDK_15.2.0_9412b96

Parents Reply
  • In case I update the application/bootloader or both through DFU, and the application has grown, there is a potential, that the DFU will overwrite data stored in flash by FDS earlier.

    What guidelines would you suggest for cases like this? There is some data that I cannot afford to lose. What is a method of making sure that that data does not get overwritten by DFU of larger image?

Children
Related