-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
littlefs-do binary to work with spi raw file #52
Conversation
Add helper to modify spi raw file, to make experimenting with it easier. ```sh $ ./littlefs-do --help Usage: littlefs-do <command> [options] Commands: -h, --help show this help message for the selected command and exit stat show information of specified file or directory ls list available files in 'spiNorFlash.raw' file mkdir create directory rmdir remove directory rm remove directory or file cp copy files into or out of flash file settings list settings from 'settings.h' ``` In the process restructure the CMake file for less duplicate includes/defines for both executables (`infinisim` and `littlefs-do`).
I've just tested this feature by copying an image from my local fs to the emulated spi flash with InfiniTimeOrg/InfiniTime#1226, and it works! I also find the command 'settings` quite useful:
I think there are a few logs that are not needed like |
Thanks for testing the I'll add a edit: happy you like the |
ec24a4b
to
c36b48e
Compare
done, |
Theoretically, it should be possible to parse the class Settings to discover the fields of the settings at build or run time. Probably not easy to do, but that would reduce the maintenance for this feature :) |
created a new issue to support a resource file installation command: #55 |
Add helper to modify spi raw file, to make experimenting with it easier.
In the process restructure the CMake file for less duplicate
includes/defines for both executables (
infinisim
andlittlefs-do
).