Skip to content
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

Add partition support to write_flash command. (IDFGH-138) #1494

Closed
OtherCrashOverride opened this issue Jan 12, 2018 · 1 comment
Closed

Comments

@OtherCrashOverride
Copy link

As directed by espressif/esptool#262, I am opening this issue here.

Currently, a fixed offset must be specified for the write_flash command. An option to specify ESP32 partition name or ID should be added. This would allow either an offset that does not change or a partition that potentially changes to be used.

A real world example is the case of a SPIFFS filesystem partition. In the case where only the filesystem is to be updated, the offset where it resides needs to found and may vary across different builds and/or app revisions. It is not possible to OTA update in all environments where an ESP32 may be deployed.

@FayeY FayeY changed the title Add partition support to write_flash command. [TW#17759] Add partition support to write_flash command. Jan 17, 2018
@projectgus projectgus changed the title [TW#17759] Add partition support to write_flash command. Add partition support to write_flash command. (IDFGH-138) Mar 12, 2019
@renzbagaporo
Copy link
Contributor

Hi @OtherCrashOverride, sorry for the late response on this. We added a tool called parttool.py that does exactly just this.

parttool.py [some-args] write_partition [some-args]

Tool is here: https://github.com/espressif/esp-idf/blob/master/components/partition_table/parttool.py. This can be used from the command line.

(Though there is a pending update to this that makes this available from Python and the command-line as well)

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

No branches or pull requests

2 participants