Hi, I would like to use flash circular buffers for variable storage and logging. I am not sure how to initialize and use the buffers. I am working on a nrf51 system.
The first use case is storing of data (e.g. integer), I would like to store data1 (int), data2 (int), data3 (int) in the flash area FLASH_AREA_NFFS: (in my case only 2kb). How do I initialize and use a FCB for each data element (data1 ... data3) in one flash area (FLASH_AREA_NFFS)? The second use case is for logging. I would split the FLASH_AREA_REBOOT_LOG (16kb) area in 2 area's of each 8kb: FLASH_AREA_REBOOT_LOG (8kb) and FLASH_AREA_LOG (8kb), how do I setup a logger to use the FLASH_AREA_LOG? Kind regards, Jehudi
