feat(flash_args): Add file with flash parameters for the built image#12056
feat(flash_args): Add file with flash parameters for the built image#12056lucasssvaz merged 2 commits intoespressif:masterfrom
Conversation
👋 Hello lucasssvaz, we appreciate your contribution to this project! 📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more. 🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project. Click to see more instructions ...
Review and merge process you can expect ...
|
Memory usage test (comparing PR against master branch)The table below shows the summary of memory usage change (decrease - increase) in bytes and percentage for each target.
Click to expand the detailed deltas report [usage change in BYTES]
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description of Change
This pull request adds a new post-processing step to the build process in
platform.txtthat generates aflash_argsfile containing the necessary arguments and file mappings for flashing the firmware. This helps streamline the flashing process by consolidating all required parameters into a single file for both Unix and Windows environments.Build process enhancement:
recipe.hooks.objcopy.postobjcopy.4.patternandrecipe.hooks.objcopy.postobjcopy.4.pattern.windowsto generate aflash_argsfile with flash mode, frequency, size, and memory mappings for firmware components after the build.This file will be used by
pytest-embeddedto extract the flash information to be used in the tests.Test Scenarios
Tested locally
Related links
Needed for espressif/pytest-embedded#393