• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

src/18-Mar-2025-7551

CMakeLists.txtD18-Mar-2025274 107

README.rstD18-Mar-2025951 3726

fatfs_fstab.overlayD18-Mar-2025374 2522

prj.confD18-Mar-2025193 118

sample.yamlD18-Mar-2025324 1514

README.rst

1.. zephyr:code-sample:: fatfs-fstab
2   :name: Fatfs filesystem fstab
3   :relevant-api: file_system_api
4
5   Define fatfs filesystems in the devicetree.
6
7Overview
8***********
9
10This sample shows how to define a fatfs fstab entry in the devicetree.
11This scenario uses a fatfs on a RAM disk. The sample is run on the
12``native_sim`` board.
13
14Building and running
15********************
16
17To run this sample, build it for the ``native_sim`` board
18and afterwards run the generated executable file within the build folder.
19
20The RAM disk sample for the ``native_sim`` board can be built as follows:
21
22.. zephyr-app-commands::
23   :zephyr-app: samples/subsys/fs/fatfs_fstab
24   :host-os: unix
25   :board: native_sim
26   :gen-args: -DDTC_OVERLAY_FILE=fatfs_fstab.overlay
27   :goals: build
28   :compact:
29
30Sample Output
31=============
32
33When the sample runs successfully you should see following message on the screen:
34.. code-block:: console
35
36  I: Filesystem access successful
37