Skip to content
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

Introduce littlefs for data storage #70

Merged

Conversation

sasataku
Copy link
Member

This PR introduces the LittleFS file system to the flash memory used for Data Store on SC-OBC-A1. However, at this point, only one of the two flash memory chips is being utilized. Additionally, as a sample of using the File System, a boot count update feature has been added to hwtest.

This commit enables LittleFS for MAIN and ADCS hwtest. However, no
definition has been added to the dts. The increase in MAIN stack size
is based on the littlefs sample.

Signed-off-by: Takuya Sasaki <takuya.sasaki@spacecubics.com>
This commit fixes the issue where the return value of the API for
checking the SPI IDLE state was always 0.

Signed-off-by: Takuya Sasaki <takuya.sasaki@spacecubics.com>
When introducing LittleFS to the SPI NOR flash, 64 bytes of data
were being transmitted and received at once to the SPI device.
However, since the QSPI Core's TX/RX buffer is only 16 bytes, it was
causing an overflow. This commit limits the data transmission and
reception to the SPI device to 16 bytes at a time.

Signed-off-by: Takuya Sasaki <takuya.sasaki@spacecubics.com>
This commit adds the LittleFS module to west.yaml.

Signed-off-by: Takuya Sasaki <takuya.sasaki@spacecubics.com>
This commit adds the DTS for data storage with LittleFS.

Signed-off-by: Takuya Sasaki <takuya.sasaki@spacecubics.com>
@sasataku sasataku requested a review from yashi as a code owner October 22, 2024 04:22
This commit adds an API to initialize the Data Store Flash memory of
SC-OBC-A1. However, SC-OBC-A1 has two sides of Data Store Flash
memory, but at present, only Data Store Flash memory 1 (SS1) can be
used. The mechanism utilizing both sides is planned to be implemented
in the future.

Signed-off-by: Takuya Sasaki <takuya.sasaki@spacecubics.com>
The commit provides an API that updates the file used to store the
boot count of the OBC.

Signed-off-by: Takuya Sasaki <takuya.sasaki@spacecubics.com>
This commit updates the boot count stored in Data Storage during the
startup of the MAIN/ADCS Board.

Signed-off-by: Takuya Sasaki <takuya.sasaki@spacecubics.com>
@sasataku sasataku force-pushed the introduce-littlefs-for-data-storage branch from 7acf425 to e142ca3 Compare October 22, 2024 05:02
@sasataku sasataku merged commit d248d0c into spacecubics:main Oct 22, 2024
42 checks passed
@sasataku sasataku deleted the introduce-littlefs-for-data-storage branch October 22, 2024 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant