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

BT_SETTINGS CCCD creates more flash storage

HI,

i have enabled CONFIG_BT_SETTINGS_CCC_STORE_ON_WRITE=y

so after power cycle the device automatically connects with iphone and the service also works fine

after this

I found that RAM flash memory

gets increase at every disconnect and connect

Example

I connect the device with nrf connect app desktop -> programmer

i read the device and found

flash NVM size  25 bytes from F8000

                          24 bytes from F8FF7.

after connected and paired with iphone 8 plus

flash NVM size  158 bytes from F8000

                          72 bytes from F8FF7.

again read the device

flash NVM size  195 bytes from F8000

                          104 bytes from F8FF7.

I need to work on DFU and also NVM flash storage to store 5KB data. My concern is because of this memory increase . where it get collapse or not

to memories the CCCD where only enable is memorize and disable is not to be memorize is it possible

because

when device is out of bound then it will disconnect at the time memory will increase and then in bound it auto connect and that also write .

i want to control this only write the enable function

2. How to delete the particular CCCD stored flash page

3. how to delete the pair bond stored flash page . peer bond data is controlled by softdevice

Parents Reply Children
No Data
Related