AP_HAL_ESP32: enable flash scripting on StampFly - #33996
Open
muramura wants to merge 3 commits into
Open
Conversation
muramura
force-pushed
the
stampfly-flashfs-lua-upstream
branch
from
August 9, 2026 06:12
44000b6 to
f93df1c
Compare
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.
Summary
Enable ESP32 internal flash FAT filesystem support on M5StampFly and use it as the Lua scripting filesystem at
/APM/scripts.Classification & Testing (check all that apply and add your own)
Built and tested on M5StampFly /
esp32s3m5stampfly.Build:
./waf copter -j1ardupilot.binsize:0x1de7200x1218e0bytes, 38%Hardware test:
/APM./APM/scripts.hello.lua.AP: StampFly Lua OK.Description
This PR enables Lua scripting on the ESP32-S3 based M5StampFly board by adding an internal flash FAT filesystem partition and mounting it through the existing ESP32 filesystem backend.
Changes include:
apmto the ESP32-S3 partition table./APM./APM/scriptsautomatically during mount.AP_FILESYSTEM_ESP32_ENABLEDandAP_SCRIPTING_ENABLEDforesp32s3m5stampfly./APM/scripts.SCR_ENABLEby default for StampFly.wear_levellingcomponent required by FAT-on-flash..LUAfilenames returned by FAT directory listings.