feat(arduino): Add support for fast flashing with esptool#422
Merged
Conversation
3fe1257 to
c1dad11
Compare
b2d8cac to
cbba1b5
Compare
hfudev
reviewed
Jun 2, 2026
hfudev
reviewed
Jun 2, 2026
5e9aaf2 to
7ef3196
Compare
Member
|
Thank you. will do a quick release today |
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.
Description
This pull request introduces a robust "fast-flash" mechanism for Arduino-based ESP devices, enabling incremental reflashing using esptool's
--diff-withfeature. This approach speeds up firmware updates by flashing only changed regions and maintaining per-binary reference files. The implementation includes changes to flash argument parsing, flashing logic, reference management, and comprehensive tests to ensure correctness and reliability.Fast-flash and flashing logic improvements:
flash_argsfile inArduinoAppto extract both flash settings and a list of(address, filepath)pairs, enabling individual binary flashing instead of using a merged binary. (pytest_embedded_arduino/app.py) [1] [2] [3] [4] [5]ArduinoSerial, using esptool's--diff-withwith reference binaries to speed up reflashing. Added mechanisms to save and invalidate references, and ensured certain binaries (likeboot_app0.bin) are always fully flashed. (pytest_embedded_arduino/serial.py) [1] [2] [3] [4]Testing and reliability:
pytest-embedded-arduino/tests/test_arduino.py)Configuration and integration:
fast_flash/no_fast_flashoption in the DUT factory, allowing users to enable or disable the fast-flash feature via test configuration. (pytest_embedded/pytest_embedded/dut_factory.py) [1] [2] [3]Dependency update:
esptoolto5.2to ensure compatibility with the new fast-flash features. (pytest-embedded-serial-esp/pyproject.toml)Testing
Tested locally