esp:esp32:flash-commands
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| esp:esp32:flash-commands [2026/08/29 12:22] – created - external edit 127.0.0.1 | esp:esp32:flash-commands [2026/09/12 10:25] (current) – oscar | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Usefull | + | # 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**, |
| - | ===== Common commands ===== | + | **idf.py** to be invoked as: |
| - | | + | ``` |
| - | | + | $ idf.py |
| - | idf.py | + | ``` |
| - | | + | **esptool** can be invoked in different ways: |
| - | | + | ``` |
| - | + | $ esptool < | |
| - | ===== Full Flash ===== | + | $ python -m esptool < |
| - | idf.py -p / | + | ``` |
| - | python -m esptool --chip esp32c3 -p / | + | ## 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 / | ||
| - | ===== Write Application to partition ===== | + | python -m esptool --chip esp32c3 -p / |
| - | | + | |
| - | python ../ | + | |
| - | ===== Read/Write config partition ===== | + | python ../../esp-idf/components/ |
| - | === Write Config to partition === | + | ``` |
| - | esptool.py --port /dev/ttyACM0 | + | |
| - | === 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.1788006137.txt.gz · Last modified: by 127.0.0.1
