From a13d236afdfa1721f1404d3752698efa46ec1a9e Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Thu, 19 Dec 2024 07:00:59 -0800 Subject: [PATCH] Update fs.rst --- docs/fs.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/fs.rst b/docs/fs.rst index 8cfc876..cf937a8 100644 --- a/docs/fs.rst +++ b/docs/fs.rst @@ -143,15 +143,19 @@ it using the ``mklittlefs`` tool. A working ``OpenOCD`` setup, DebugProbe, and To download the raw filesystem, from within ``GDB`` run: .. code:: + ^C (break) (gdb) dump binary memory littlefs.bin &_FS_start &_FS_end + 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 .. code:: + $ /mklittlefs -u output-dir littlefs.bin Directory does not exists. Try to create it. gmon.out > /gmon.out size: 24518 Bytes gmon.bak > /gmon.bak size: 1 Bytes + The defaults built into ``mklittlefs`` should be appropriate for normal LittleFS filesystems built on the device or using the upload tool. SD Library Information