feat(nrf52): optional external QSPI LittleFS filesystem#10139
Draft
benallfree wants to merge 9 commits intomeshtastic:developfrom
Draft
feat(nrf52): optional external QSPI LittleFS filesystem#10139benallfree wants to merge 9 commits intomeshtastic:developfrom
benallfree wants to merge 9 commits intomeshtastic:developfrom
Conversation
10 tasks
FILE_O_WRITE on nRF52 (Adafruit LittleFS) appends to existing files rather than truncating. Remove the file before opening for write so repeated XModem uploads always produce the correct file size. Made-with: Cursor
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…rmware into fix/xmodem-truncate-on-write
…e into feat/nrf-external-flash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR creates a LittleFS partition on external flash for nRF devices that support it and exposes a new
extFsglobal to access it. We introduce a new flag,MESHTASTIC_EXTERNAL_FLASH_FSthat will initialize a LittleFS partition on external flash.Co-author: @GoatsAndMonkeys
Prerequisites:
Note that if
MESHTASTIC_EXTERNAL_FLASH_FSis defined butEXTERNAL_FLASH_USE_QSPIis not, it is assumed that external flash is not supported and thus this all becomes a noop. Both must be defined for this feature to work.Boards with external flash hard-wired from factory
The following boards have
MESHTASTIC_EXTERNAL_FLASH_FSset by default in this PR becausetheir QSPI flash chip is physically soldered on every unit shipped:
t-echot-echo-litet-echo-plusnano-g2-ultrarak_wismeshtapBoards with QSPI capability but NOT enabled in this PR
The following boards define
EXTERNAL_FLASH_USE_QSPIand name a chip, but the chip's presence on every shipped unit could not be confirmed from public hardware documentation (modular ecosystems, development kits, community boards). Board maintainers should add#define MESHTASTIC_EXTERNAL_FLASH_FSto theirvariant.honce confirmed:rak4631and allrak4631_*variantsrak3401_1wattheltec_mesh_node_t114canaryonemeshlinkmeshtinymonteops_hw1muzi_basegat562_mesh_trial_trackerseeed_wio_tracker_L1/_einkseeed_solar_nodeseeed_xiao_nrf52840_kitELECROW-ThinkNode-M1/M6🤝 Attestations