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

nRF52840 - SDK16 - USB_MSC example - Flash memory management

Hi everyone,

I am working on the USB_MSC example and I need your advice. I read an IMU unit and I want to store the data into a file. I create a single file to store the data. When the memory is full I want to wrap to the beginning and continue write data.

When its time to read the data I have to know from what address to start and stop reading. I need to be able to distinguish the first item from the last.

Also when I have to write back again I need to know from what address to start writting

Since this is my first time for managing flash memory using FAT32 what is the best approach of doing that?

Does anyone has implemented an example of that?

Thanks in advance

Nick

Related