User Tools

Site Tools


esp:esp32:commands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
esp:esp32:commands [2025/02/09 07:38] – created - external edit 127.0.0.1esp:esp32:commands [2025/04/14 17:48] (current) oscar
Line 2: Line 2:
  
 ---- ----
 +===== Core tools =====
 +Esp-idf commands can be executed using:
 +  * **idf.py**, Located in: ///esp32/esp-idf/tools/idf.py//
 +  * **python**, Located in: ///esp32/idf-tools/python_env/idf5.2_py3.11_env/bin/python//
 +  * **esptool.py**, Located in: ///esp32/idf-tools/python_env/idf5.2_py3.11_env/bin/esptool.py//
  
 ===== Common commands ===== ===== Common commands =====
Line 10: Line 15:
   idf.py build   idf.py build
      
-===== Copy/clone/rename project ===== +===== Full Flash ===== 
-  - Rename PROJECT_NAME in Makefile +  idf.py -p /dev/ttyACM0 flash 
-  - Update PROJECT_VER in CMakeLists.txt +  python -m esptool --chip esp32c3 -p /dev/ttyACM0 -b 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 4MB --flash_freq 80m 0x0 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0xd000 build/ota_data_initial.bin 0x10000 build/LCR-Meter.bin 0x250000 default.config
-  Update project( ##NAME## ) in CMakeLists.txt+
  
-===== SoftAP IPv6 connectivity with android phone ===== +===== Write Application to partition ===== 
-  ip -6 addr add fd01:2345:6789:0:bbbb:cccc:0:2/64 dev wlan0+  python -m esptool --chip esp32c3 -p /dev/ttyACM0 -b 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 4MB --flash_freq 80m 0x10000 build/ESR-Meter.bin 
 +  python ../../esp-idf/components/esptool_py/esptool/esptool.py -p /dev/ttyUSB0 -b 460800 --before default_reset --after hard_reset --chip esp32  write_flash --flash_mode dio --flash_size detect --flash_freq 40m 0x00130000 build/thermometer.bin 
 + 
 +===== Read/Write config partition ===== 
 +=== Write Config to partition === 
 +  esptool.py --port /dev/ttyACM0  write_flash --flash_mode qio  0x250000 default.config 
 +=== Read CONFIG from partition === 
 +  esptool.py --port /dev/ttyACM0 -b 460800 --before default_reset --chip esp32c3  read_flash 0x250000 4096 downloaded.config
  
  
  
esp/esp32/commands.1739086736.txt.gz · Last modified: by 127.0.0.1