arch/risc-v: update MCUboot slot sizes on Espressif devices#18757
Merged
acassis merged 2 commits intoApr 19, 2026
Conversation
Increase image slot size from ~1MB to ~1.4MB to allow more features by default. Solves issues when enabling debug features would extrapolate the slot size. Signed-off-by: Filipe Cavalcanti <[email protected]>
Update the user documentation for flash allocation when using MCUboot. Signed-off-by: Filipe Cavalcanti <[email protected]>
almir-okato
approved these changes
Apr 17, 2026
xiaoxiang781216
approved these changes
Apr 18, 2026
acassis
approved these changes
Apr 19, 2026
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
RISC-V Espressif Kconfig defaults for MCUboot OTA layout are updated to use slot size
0x150000(~1.4MB), with secondary slot offset0x170000, scratch at0x2C0000, storage MTD at0x300000, and matching documentation updates on the ESP32-C3, ESP32-C6, and ESP32-H2 platform pages.Increase image slot size from ~1MB to ~1.4MB to allow more features by default.
Solves issues when enabling debug features would extrapolate the slot size.
Update the user documentation for flash allocation when using MCUboot.
Reason for this change: image size is getting to close to 1MB and may not fit the slot when some features such as Wi-Fi are enabled.
Impact
Impact on user: No.
Impact on build: Yes, avoids bad image build when too many features are enabled along MCUboot.
Impact on hardware: ESP32-C3|C6|H2|P4.
Impact on documentation: Yes, updates the documentation for flash allocation when using MCUboot.
Impact on security: No.
Impact on compatibility: No.
Testing
Building
./tools/configure.sh esp32c6-devkitc:mcuboot_update_agentmake bootloadermake ESPTOOL_BINDIR=./Results
Build would failure when
imgtoolwas invoked because the image size was bigger than the MCUboot slot.Build succeeds.