esp:esp32:flash-commands
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| esp:esp32:flash-commands [2026/09/08 19:14] – [Flash Application Partition] oscar | esp:esp32:flash-commands [2026/12/01 04:49] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Flash Commands ====== | ||
| - | |||
| - | ---- | ||
| - | ===== Core tools ===== | ||
| - | Esp-idf commands can be executed using: | ||
| - | * **python**, Located in: /// | ||
| - | * **idf.py**, Located in: /// | ||
| - | * **esptool.py**, | ||
| - | |||
| - | **idf.py** to be invoked as: | ||
| - | < | ||
| - | $ idf.py < | ||
| - | </ | ||
| - | |||
| - | **esptool.py** can be invoked in different ways: | ||
| - | < | ||
| - | $ esptool < | ||
| - | $ python -m esptool < | ||
| - | </ | ||
| - | |||
| - | ===== Full Flash ===== | ||
| - | < | ||
| - | idf.py -p / | ||
| - | python -m esptool --chip esp32c3 -p / | ||
| - | </ | ||
| - | Where parameters are: | ||
| - | * write_flash | ||
| - | * -chip **esp32c3** or **esp32** | ||
| - | * -p **/ | ||
| - | * -b **460800** | ||
| - | * --before default_reset | ||
| - | * --after hard_reset | ||
| - | * --flash_mode dio | ||
| - | * --flash_size **detect** or 4MB | ||
| - | * --flash_freq **80m** or 40m | ||
| - | * partition 1 = 0x0 build/ | ||
| - | * partition 2 = 0x8000 build/ | ||
| - | * partition 3 = 0xd000 build/ | ||
| - | * partition 4 = 0x10000 build/ | ||
| - | ===== Flash Application Partition ===== | ||
| - | Use following examples to write to flash: | ||
| - | < | ||
| - | esptool -chip esp32c3 -p / | ||
| - | |||
| - | python -m esptool --chip esp32c3 -p / | ||
| - | |||
| - | python ../ | ||
| - | </ | ||
| - | |||
| - | Where parameters are: | ||
| - | * write_flash | ||
| - | * -chip **esp32c3** or **esp32** | ||
| - | * -p **/ | ||
| - | * -b **460800** | ||
| - | * --before default_reset | ||
| - | * --after hard-reset | ||
| - | * --flash-mode **dio** | ||
| - | * --flash-size **detect** or 4MB | ||
| - | * --flash-freq **80m** or 40m | ||
| - | * 0x10000 build/ | ||
| - | ===== Flash Config Partition ===== | ||
| - | === Write Config to partition === | ||
| - | esptool --port / | ||
| - | === Read CONFIG from partition === | ||
| - | esptool --port / | ||
| - | |||
| - | |||
esp/esp32/flash-commands.1788894851.txt.gz · Last modified: by oscar
