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

Using FAT Filesystem on the Macronix memory on the nRF9160-DK

Is there sample code to use a FAT Filesystem on the Macronix memory on the nRF9160-DK?
The full_modem_update sample uses the Flash but not as a filesystem.

It would be great to have a sample or even for mounting it.
Do I need a device tree overlay?
What is required in the mount data structures for the flash and the

Also, if our requirements for persistent storage change, it would be great to use the SD.
In addition to populating the SD socket, what is required?
It appears from the DevZone others have made it work but none of the posts offers a complete solution.

Parents
  • From my understanding, you need to set CONFIG_DISK_FLASH_DEV_NAME="NRF_FLASH_DRV_NAME", and set CONFIG_DISK_VOLUME_SIZE and CONFIG_DISK_FLASH_START to your respective values.

    Then you can set these options as well.

    CONFIG_DISK_ACCESS_FLASH=y
    CONFIG_DISK_FLASH_MAX_RW_SIZE=256
    CONFIG_DISK_ERASE_BLOCK_SIZE=0x1000
    CONFIG_DISK_FLASH_ERASE_ALIGNMENT=0x1000

    Just let me know if you still have problems building after changing this. I spoke to someone from R&D and they promised they would write a sample for this. I will inform you when that happens.

Reply
  • From my understanding, you need to set CONFIG_DISK_FLASH_DEV_NAME="NRF_FLASH_DRV_NAME", and set CONFIG_DISK_VOLUME_SIZE and CONFIG_DISK_FLASH_START to your respective values.

    Then you can set these options as well.

    CONFIG_DISK_ACCESS_FLASH=y
    CONFIG_DISK_FLASH_MAX_RW_SIZE=256
    CONFIG_DISK_ERASE_BLOCK_SIZE=0x1000
    CONFIG_DISK_FLASH_ERASE_ALIGNMENT=0x1000

    Just let me know if you still have problems building after changing this. I spoke to someone from R&D and they promised they would write a sample for this. I will inform you when that happens.

Children
No Data
Related