Creating CSV format file system in Flash memory through NRF52840's spi protocol

Hi ,

My system's main controller is NRF52840 . My Embedded system is simple. Data logger . I want to store the sensor's data in csv file in every one minute once. I want to create a file systems in Flash memory .  I want to use the SPI protocol for Flash memory . 

I want some technical info like create a file, open a file , read bulk data from file , write bulk data in file. etc.   how do  I make the above system?  Is anybody to help ?  Is nrf52840 supports create file systems?

Parents
  • Hi,

    In the nRF Connect SDK, see the Zephyr FS samples.

    Regards,
    Sigurd Hellesvik

  • FS samples related to SD card one. How do I create a CSV format file and want to store the file in Flash memory or create the csv file and store some information . Is any sample code available  like Crete a file " Task1.csv " ? Please confirm 

  • For example the littlefs sample can store data to internal Flash.

    We do not have a nRF Connect SDK specific CSV library.
    However, this is generic, so you could likely use commonly available C libraries for this and include it in your project.

    We do not have any single sample creating CSV files and saving them to flash though, so you will have to make this yourself.

    Regards,
    Sigurd Hellesvik

Reply
  • For example the littlefs sample can store data to internal Flash.

    We do not have a nRF Connect SDK specific CSV library.
    However, this is generic, so you could likely use commonly available C libraries for this and include it in your project.

    We do not have any single sample creating CSV files and saving them to flash though, so you will have to make this yourself.

    Regards,
    Sigurd Hellesvik

Children