Maximum settings partition size estimation

Hi there,

I need help finalizing the size of my product's settings partition. I only store Bluetooth bonds on the settings partition: 20 bonds to other Nordic devices via the Nordic UART service and 10 bonds to BLE HID devices. These connections must be securely encrypted.

According to what I see, the following settings keys are stored:
- bt/sc/0123456789abc 4 bytes, stored for one device
- bt/cf/0123456789abc - 2 bytes, stored for one device
- bt/keys/0123456789abc - 80 bytes, stored for all devices
- bt/ccc/0123456789abc - 12-32 bytes, stored for all devices

The reason I can't estimate the maximum storage size for my needs is because of the following:
- Some keys are present for all devices I tested, while others are only for one. I don't know which keys are stored in which cases.
- Some keys vary in size, and I don't know their minimum and maximum size.
- There may be additional keys that are used on select occasions, which I don't know.
- I don't know the storage overhead of NVS.
- Can NVS be fragmented? If so, it should be accounted for.

Thanks in advance!
- Laci

Parents Reply Children
No Data
Related