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

How to store the 100 samples of data into flash and read the same data all at once?

I have 100 samples of string data  (Ex: AABBCCDDEEFF:1592636399:1592636399 ) . I am using the flash_fds module. Also, I want to read the read all the samples at once. I am able to write one string and read the last updated record. Please help me with sample code if any? I am using SDK 16.

Parents
  • Hi, 

    Depends on what you mean by ".. all the samples at once". 

    The maximum length of data that you can store in a FDS record is by default 1024 words, it's dependent on FDS_VIRTUAL_PAGE_SIZE (as defined in sdk_config), the 2 words page tag and the 3 words record header. Any data bigger than this has to be divided into several chunks and stored in several records. 

    Is the issue that you're storing new data with identical File ID and Record KEY as the previous record but that the find function returns the previous data? 

    regards

    Jared

Reply
  • Hi, 

    Depends on what you mean by ".. all the samples at once". 

    The maximum length of data that you can store in a FDS record is by default 1024 words, it's dependent on FDS_VIRTUAL_PAGE_SIZE (as defined in sdk_config), the 2 words page tag and the 3 words record header. Any data bigger than this has to be divided into several chunks and stored in several records. 

    Is the issue that you're storing new data with identical File ID and Record KEY as the previous record but that the find function returns the previous data? 

    regards

    Jared

Children
No Data
Related