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/08/29 12:33] – oscar | esp:esp32:flash-commands [2026/09/12 10:25] (current) – oscar | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | # Flash Commands |
| ---- | ---- | ||
| - | ===== Core tools ===== | + | ## Core tools |
| Esp-idf commands can be executed using: | Esp-idf commands can be executed using: | ||
| - | * **idf.py**, Located in: /// | + | * **idf.py**, Located in: ./ |
| - | * **python**, Located in: /// | + | * **python**, Located in: ./ |
| - | * **esptool.py**, Located in: /// | + | * **esptool**, |
| - | ===== Full Flash ===== | + | **idf.py** to be invoked as: |
| - | <code> | + | ``` |
| + | $ idf.py | ||
| + | ``` | ||
| + | **esptool** can be invoked in different ways: | ||
| + | ``` | ||
| + | $ esptool < | ||
| + | $ python -m esptool < | ||
| + | ``` | ||
| + | ## Full Flash | ||
| + | ``` | ||
| idf.py -p / | idf.py -p / | ||
| - | python -m esptool --chip esp32c3 -p / | + | python -m esptool --chip esp32c3 -p / |
| - | </code> | + | ``` |
| - | ===== Flash Application Partition | + | Where parameters are: |
| - | | + | * write_flash |
| - | python | + | * -chip **esp32c3** or **esp32** |
| + | * -p **/dev/ | ||
| + | * -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 | ||
| - | ===== Flash Config Partition ===== | + | python ../../esp-idf/ |
| - | === Write Config to partition === | + | ``` |
| - | esptool.py --port | + | |
| - | === Read CONFIG from partition === | + | |
| - | | + | |
| + | 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.1788006839.txt.gz · Last modified: by oscar
