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

stm32l4x6: implement flash storage server #477

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jmaksymowicz
Copy link
Contributor

Description

This PR adds a flash storage server to the STM32 multiserver. It allows data to be read from and written to flash storage through a block device, as well as mounting of filesystems. Currently only meterfs is supported, but LittleFS support is planned in the future.

The file server can be disabled through compile time flags. If the file server will be used to mount root filesystem, another compile time flag disables the use of dummyfs for that purpose (in that case dummyfs is only used for creating devfs).

Partition and file system setup is done through command line arguments in the user script.

Motivation and Context

With this PR it is possible to use a filesystem and persistently store files on STM32 targets.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

How Has This Been Tested?

  • Already covered by automatic testing.
  • New test added: (add PR link here).
  • Tested by hand on: armv7m4-stm32l4x6-nucleo

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing linter checks and tests passed.
  • My changes generate no new compilation warnings for any of the targets.

Special treatment

  • This PR needs additional PRs to work (list the PRs, preferably in merge-order).
  • I will merge this PR by myself when appropriate.

@jmaksymowicz jmaksymowicz force-pushed the jmaksymowicz/stm32l4-flash-srv branch from 9adff67 to 0fc8f72 Compare March 19, 2024 14:03
Copy link

github-actions bot commented Mar 19, 2024

Unit Test Results

7 284 tests  ±0   6 569 ✅ ±0   37m 54s ⏱️ + 1m 59s
  409 suites ±0     715 💤 ±0 
    1 files   ±0       0 ❌ ±0 

Results for commit 3ab7275. ± Comparison against base commit 44531d9.

♻️ This comment has been updated with latest results.

@jmaksymowicz jmaksymowicz requested a review from agkaminski March 19, 2024 14:21
@lukileczo
Copy link
Member

The recent msg API changes affect this PR, summary in phoenix-rtos/phoenix-rtos-project#1035

multi/stm32l4-multi/flashsrv.c Outdated Show resolved Hide resolved
multi/stm32l4-multi/stm32l4-multi.c Show resolved Hide resolved
@jmaksymowicz jmaksymowicz force-pushed the jmaksymowicz/stm32l4-flash-srv branch from 0fc8f72 to 3ab7275 Compare March 26, 2024 14:48
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.

3 participants