Skip to content

Commit a13d236

Browse files
Update fs.rst
1 parent 2f99b0a commit a13d236

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/fs.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,19 @@ it using the ``mklittlefs`` tool. A working ``OpenOCD`` setup, DebugProbe, and
143143
To download the raw filesystem, from within ``GDB`` run:
144144

145145
.. code::
146+
146147
^C (break)
147148
(gdb) dump binary memory littlefs.bin &_FS_start &_FS_end
149+
148150
It may take a few seconds as ``GDB`` reads out the flash to the file. Once the raw file is downloaded it can be extracted using the ``mklittlefs`` tool from the BASH/Powershell/command line
149151

150152
.. code::
153+
151154
$ <path-to-mklittlefs>/mklittlefs -u output-dir littlefs.bin
152155
Directory <output-dir> does not exists. Try to create it.
153156
gmon.out > <output-dir>/gmon.out size: 24518 Bytes
154157
gmon.bak > <output-dir>/gmon.bak size: 1 Bytes
158+
155159
The defaults built into ``mklittlefs`` should be appropriate for normal LittleFS filesystems built on the device or using the upload tool.
156160

157161
SD Library Information

0 commit comments

Comments
 (0)