cpu/esp*: use FLASHFILE for esp32 and esp8266 boards#11648
Merged
MrKevinWeiss merged 2 commits intoRIOT-OS:masterfrom Jun 14, 2019
Merged
cpu/esp*: use FLASHFILE for esp32 and esp8266 boards#11648MrKevinWeiss merged 2 commits intoRIOT-OS:masterfrom
MrKevinWeiss merged 2 commits intoRIOT-OS:masterfrom
Conversation
Use ELFFILE as FLASHFILE as all files are created from this one using esptool.
Use ELFFILE as FLASHFILE as all files are created from this one using esptool.
This was referenced Jun 6, 2019
MrKevinWeiss
approved these changes
Jun 14, 2019
Contributor
MrKevinWeiss
left a comment
There was a problem hiding this comment.
Tested on the esp32-wroom-32 and esp8266-12x. I flashed the default. Then I tried to flash test/leds with FLASHFILE set to the default elf file and it flash the default as expected.
I think it is OK, ACK.
Contributor
Author
|
I would not calling "Cleanup" it is updating to a new feature there. |
Contributor
|
As long as it is something! |
Contributor
|
*sometype |
Contributor
Author
|
Thank you for the review. |
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.
Contribution description
Update to use FLASHFILE as file to be flashed on the board.
By using
FLASHFILE=path_to_file BOARD=espXXXX make flash-onlya board can be flashed from a machine without the toolchain and only pip installedesptool.pyinstalledTesting procedure
Both esp32 and esp8266 can still be flashed as in master.
The
flash-onlyoutput is the same right now as in masterESPTOOL=esptool.py BOARD=esp32-wroom-32 make --no-print-directory -C examples/default/ flash-onlyBOARD=esp8266-esp-12x make --no-print-directory -C examples/default/ flash-onlyThe file to flash can be configured from the environment using
FLASHFILE.Remove all other files in
bindirectory than thedefault.elfand this works:Issues/PRs references
Part of the FLASHFILE introduction #8838
Required for #11646
Real way of setting FLASHFILE that would be useful for #11449