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

FDS overwrites and jumbles data after 6000 records

Hello,

I am using sdk12.2.2 and customised nrf52 board. I am writing 6000 records of 24 bytes each in flash of nrf52. My challenge is after 6027 records I am getting error code as FDS_NO_SPACE_FLASH and I am calling fds_gc to delete few records so that I can use this space to write new records but my challenge is that when I am deleting this records after that the new records are randomly written at addresses that were used before and were not deleted. This conflicts and due to this fds jumbles up.

I am attaching my main file and fds logs with this.

Thanks,

main(57).c

6250.log

Parents Reply Children
  • Hi Bjorn,

    Can you please update this. We are about to begin our production.

    Thanks,

  • Hi Newbie, 

    I sincerley apologize for the very late reply.  

    I have downloaded the latest example, CaseverifyDataloggingV1_b4_DK, and I have it running on a NRF52 DK. However, it seems like I never hit any of the fds-calls

    It appears that defineMode() calls read16()  which in turn tries to read data from a sensor through TWI, that I do not have.  Hence, I commented out this function, but i still do not reach the update_adv_data() function that performs all the fds calls. In the RTT viewer I get the following output

    0> :INFO:Status Main : 0
    0> :INFO:B4
    0> :INFO:iTemperature 4 : 25
    0> :INFO:treal ADV : 0
    0> :INFO:h_lsb ADV : 0
    0> :INFO:h_msb ADV : 0
    0> :INFO:running nrf_dfu_settings_init
    0> :INFO:Services are initialized
    0> :INFO:Count FLS INIT 30

    Frankly, it would be very useful if you could briefly explain what the application does and when it stores to flash as well as what it stores to flash. When should the device start logging? Is there any procedure I need to perform to put the DK in this state?'

Related