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

Difference between the libraries of littlefs and nvs

Hi,

I want to use flash area of nrf9160. To do it, I have created simple example using predefined samples on zepyhr project. My goal is to write a data to flash and read it. To write data, I'm using the following scripts which I found that https://devzone.nordicsemi.com/f/nordic-q-a/27428/read-and-write-specific-flash-pages-from-a-computer

I have a little bit confused about using flash area. According to my research, I can use littlefs and nvs. Both are supported by zephyr. But, which one is more useful for my goal? My data is approximately 300KB and it will be the format of ZIP. 

Parents
  • I can see in this ticket that you are planning to read and write to flash by using pynrjfprog (read and write flash from the computer). Have you discarded the methods for reading/writing flash directly from the chip, like littlefs and nvs? It would be nice to know what your end goal is, then I could advise you on how to go about this. Are you planning to access the data from the chip, or are you just using it for storage?

    Best regards,

    Simon

Reply
  • I can see in this ticket that you are planning to read and write to flash by using pynrjfprog (read and write flash from the computer). Have you discarded the methods for reading/writing flash directly from the chip, like littlefs and nvs? It would be nice to know what your end goal is, then I could advise you on how to go about this. Are you planning to access the data from the chip, or are you just using it for storage?

    Best regards,

    Simon

Children
Related