The latest development version of this page may be more current than this released 2.7.5 version.

FAT Filesystem Sample Application


This sample app demonstrates use of the filesystem API and uses the FAT file system driver to mount an SDHC card connected over a SPI bus or to an on-chip SDHC controller.


This project requires SD card support and microSD card formatted with FAT filesystem. See the Disk Access documentation for Zephyr implementation details.

Building and Running

This sample can be built for a variety of boards, including nrf52840_blip, mimxrt1050_evk, and olimexino_stm32.

west build -b nrf52840_blip samples/subsys/fs/fat_fs

To run this sample, a FAT formatted microSD card should be present in the microSD slot. If there are any files or directories present in the card, the sample lists them out on the debug serial output.