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

FDS with bootloader SDK12.1 and SDs132v3.0.0 nrf52

Hello,

I want to use the FDS libraries in order to store some data into nrf52's flash in my application and I have a bootloader to allow secure dfu by ble.

I manage to store, read and update records in my application without bootloader and it's working fine.

However, when I try to write a record in the chip that have the bootloader flashed I get the error FDS_ERR_NO_SPACE_IN_FLASH

I've check the forum and I've found this answer:
devzone.nordicsemi.com/.../ I tried to change the DFU_APP_DATA_RESERVED CODE_PAGE_SIZE * 3 giving more reserved space but It didn't suppose any change.

I've checked the flash usage of my application and bootloader (I'm using the secure_dfu_ble_s132 example) and I have the following data after compilation:

Application:

Program Size: Code=47736 RO-data=1924 RW-data=708 ZI-data=52084 

Bootloader:

Program Size: Code=20686 RO-data=2022 RW-data=180 ZI-data=19268  

using this data and the way of compute the flash usage given in: devzone.nordicsemi.com/.../

I get that APP+BT use a less than 72kB. In this way adding the SD requirements the total flash usage doesn't overpasses the total flash space (I'm using the nRF52832 Revision 1 Variant CIAA Build Code B00).

Anybody have any hint about my problem?

Thanks beforehand,

Jose

Related