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

safe to use NVM space?

I see in the example code there is

#define FLASH_PAGE_SYS_ATTR (BLE_FLASH_PAGE_END - 3)                    /**< Flash page used for bond manager system attribute information. */
#define FLASH_PAGE_BOND (BLE_FLASH_PAGE_END - 1)                    /**< Flash page used for bond manager bonding information. */

Does that mean "(BLE_FLASH_PAGE_END - 4)" is safe to use for my own NVM storage?

Do I need to adjust my IROM length in Keil's project build configuration?

Thanks

Parents
  • Any flash area that is not used by your application is safe to use. You can calculate which area is safe by looking at the sizing output from Keil at the end of compilation, and doing the math, but there isn't any magic way to find such area.

    By adjusting the the IROM size in Keil, you will get errors from compilation if your app tries to extend into this area, so that's something I'd normally recommend you to do.

Reply
  • Any flash area that is not used by your application is safe to use. You can calculate which area is safe by looking at the sizing output from Keil at the end of compilation, and doing the math, but there isn't any magic way to find such area.

    By adjusting the the IROM size in Keil, you will get errors from compilation if your app tries to extend into this area, so that's something I'd normally recommend you to do.

Children
Related