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 13:16] – [Core tools] 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: | ||
| - | * **python**, Located in: ///esp32/idf-tools/python_env/ | + | * **idf.py**, Located in: ./esp32/esp-idf/tools/idf.py/ |
| - | * **idf.py**, Located in: ///esp32/esp-idf/tools/idf.py// | + | * **python**, Located in: ./esp32/idf-tools/python_env/ |
| - | * **esptool.py**, Located in: /// | + | * **esptool**, |
| **idf.py** to be invoked as: | **idf.py** to be invoked as: | ||
| - | < | + | ``` |
| $ idf.py < | $ idf.py < | ||
| - | </ | + | ``` |
| - | + | **esptool** can be invoked in different ways: | |
| - | **esptool.py** can be invoked in different ways: | + | ``` |
| - | < | + | |
| $ esptool < | $ esptool < | ||
| $ python -m esptool < | $ python -m esptool < | ||
| - | </code> | + | ``` |
| + | ## Full Flash | ||
| + | ``` | ||
| + | idf.py -p /dev/ttyACM0 flash | ||
| + | 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 / | ||
| - | ===== Full Flash ===== | + | python -m esptool --chip esp32c3 -p / |
| - | < | + | |
| - | idf.py -p / | + | |
| - | python -m esptool --chip esp32c3 -p / | + | |
| - | </ | + | |
| - | ===== Flash Application Partition ===== | + | |
| - | python -m esptool --chip esp32c3 -p / | + | |
| - | python ../ | + | |
| - | ===== 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.1788009378.txt.gz · Last modified: by oscar
