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 14:11] – 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 < | ||
| - | </ | + | ``` |
| - | + | ## Full Flash | |
| - | ===== Full Flash ===== | + | ``` |
| - | < | + | |
| idf.py -p / | idf.py -p / | ||
| - | python -m esptool --chip esp32c3 -p / | + | python -m esptool --chip esp32c3 -p / |
| - | </ | + | ``` |
| Where parameters are: | Where parameters are: | ||
| * write_flash | * write_flash | ||
| Line 31: | Line 28: | ||
| * --before default_reset | * --before default_reset | ||
| * --after hard_reset | * --after hard_reset | ||
| - | * --flash_mode | + | * --flash-mode |
| - | * --flash_size | + | * --flash-size |
| - | * --flash_freq | + | * --flash-freq |
| * partition 1 = 0x0 build/ | * partition 1 = 0x0 build/ | ||
| * partition 2 = 0x8000 build/ | * partition 2 = 0x8000 build/ | ||
| * partition 3 = 0xd000 build/ | * partition 3 = 0xd000 build/ | ||
| * partition 4 = 0x10000 build/ | * partition 4 = 0x10000 build/ | ||
| - | ===== Flash Application Partition | + | ## Flash Application Partition |
| Use following examples to write to flash: | Use following examples to write to flash: | ||
| - | < | + | ``` |
| - | esptool.py -chip esp32c3 -p / | + | esptool -chip esp32c3 -p / |
| - | python -m esptool --chip esp32c3 -p / | + | python -m esptool --chip esp32c3 -p / |
| - | python ../ | + | python ../ |
| - | </ | + | ``` |
| Where parameters are: | Where parameters are: | ||
| Line 54: | Line 51: | ||
| * -b **460800** | * -b **460800** | ||
| * --before default_reset | * --before default_reset | ||
| - | * --after | + | * --after |
| - | * --flash_mode | + | * --flash-mode |
| - | * --flash_size | + | * --flash-size |
| - | * --flash_freq | + | * --flash-freq |
| * 0x10000 build/ | * 0x10000 build/ | ||
| - | ===== Flash Config Partition ===== | + | ## Flash Config Partition ===== |
| - | === Write Config to partition === | + | ### Write Config to partition === |
| - | esptool.py --port / | + | esptool --port / |
| - | === Read CONFIG from partition === | + | ### Read CONFIG from partition === |
| - | esptool.py --port / | + | esptool --port / |
esp/esp32/flash-commands.1788012711.txt.gz · Last modified: by oscar
