Skip to content

Add build.esptool_extra to allow optionally flash factory app #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 30, 2020

Conversation

hathach
Copy link
Member

@hathach hathach commented Nov 30, 2020

This allows variant to bundle factory app such as tinyuf2 to esptool flashing command. This way it is guarantee to always work as expected even user accidentally overwrite factory app (e.g selecting incorrect board & flash previously). This follows suggestion by #2 (comment) using build.esptool_extra work great, though since it is only used in upload, maybe we could rename it to upload.extra_flags, it is totally up to @me-no-dev to decide.

@hathach hathach requested a review from ladyada November 30, 2020 15:50
@ladyada
Copy link
Member

ladyada commented Nov 30, 2020

ill merge to test and then give you feedback

@ladyada ladyada merged commit 81fb6c0 into v4.2 Nov 30, 2020
@me-no-dev
Copy link

using build.esptool_extra work great, though since it is only used in upload, maybe we could rename it to upload.extra_flags, it is totally up to @me-no-dev to decide.

The only reason why I used build is because the build vars are always expanded. As far as I remember, builder is treating them differently in some cases. If it works with upload, then that surely makes more sense 😄

@hathach hathach deleted the add-tinyuf2-as-factory-app branch December 4, 2020 07:45
me-no-dev pushed a commit to espressif/arduino-esp32 that referenced this pull request Apr 15, 2021
…oad.extra_flags (#5056)

done on behalf of @ladyada, this PR does:

Add Adafruit FunHouse and upcoming Adafruit Feather Esp32s2
Update Adafruit magtag and metro esp32s2 to have tinyuf2 as factory app
Also modify platform.txt as discussed in adafruit#2 + adafruit#3 + adafruit#4 to add support for
Board/variant partition.csv, bootloader.bin ( priority is user sketch > variant > build.parition/boot )
upload.extra_flags to optionally flash tinyuf2 as factory application
Remove duplicated parameter in running python script in linux and windows
Please review and let me know if you want any changes.

Notes: tinyuf2 is a uf2 bootloader for multiple platforms. For esp32s2, it is an factory app to perform uf2 firmware update.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants