Merge pull request #17 from Sani7/bugfix/mkllfs-llfs
Fix/improve llfs and the mkllfs utility
This commit is contained in:
BIN
docs/img/ext_loader_step_1.png
Normal file
BIN
docs/img/ext_loader_step_1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
BIN
docs/img/ext_loader_step_2.png
Normal file
BIN
docs/img/ext_loader_step_2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 76 KiB |
14
docs/llfs.md
14
docs/llfs.md
@@ -24,6 +24,7 @@ restricting operations solely to read functions.
|
||||
- [Reading a file](#reading-a-file)
|
||||
- [Getting the number of files](#getting-the-number-of-files)
|
||||
- [Using the POSIX file functions](#using-the-posix-file-functions)
|
||||
- [Enabling the external loader in STM32CubeIDE](#enabling-the-external-loader-in-stm32cubeide)
|
||||
|
||||
## Initialization
|
||||
Before using the llfs API, or the file related POSIX (fopen, fgetc, ...) functions, the filesystem must be initialized by calling `llfs_init()`.
|
||||
@@ -161,3 +162,16 @@ The following functions are tested and working, but other functions might also w
|
||||
- `rewind`
|
||||
- `fstat`
|
||||
- `fileno`
|
||||
|
||||
## Enabling the external loader in STM32CubeIDE
|
||||
In order to write the file system data to the QSPI flash, the external loader must be enabled in STM32CubeIDE.
|
||||
This can be done by opening the debug configuration:
|
||||
|
||||

|
||||
|
||||
Then, in the `Debugger` tab:
|
||||
3. Enable the `External Loader`
|
||||
4. Click the `Scan` button
|
||||
5. Select the correct loader: `N25Q128A_STM32F746G-DISCO, 0x90000000 ...`
|
||||
|
||||

|
||||
|
||||
@@ -7,7 +7,7 @@ The llfs filesystem is a flat filesystem, meaning that it does not support direc
|
||||
|
||||
The mkllfs utilit can be used to generate the `llfs_data.c` file. The `llfs_data.c` file from a directory with files.
|
||||
|
||||
A pre-compiled version can be download: [mkllfs.exe](https://github.com/Sani7/2023-Webservices_And_Applications/releases/tag/v0.2.0)
|
||||
A pre-compiled version can be download: [mkllfs.exe](https://github.com/Sani7/2023-Webservices_And_Applications/releases/tag/v0.2.1)
|
||||
|
||||
## Usage
|
||||
The mkllfs utility can be used as follows:
|
||||
|
||||
Reference in New Issue
Block a user