ESPTool

From ElectroDragon
Jump to navigation Jump to search

ESPtool

  • ESPTool
  • Install dependence if necessary, for lubuntu, first install python-pip, than pip install pyserial
apt-get install python-pip
pip install pyserial
  • More functions by using -h, for specific command try ie esptool.py write_flash -h.:
   Run esptool {command} -h for additional help
   load_ram            Download an image to RAM and execute
   dump_mem            Dump arbitrary memory to disk
   read_mem            Read arbitrary memory location
   write_mem           Read-modify-write to arbitrary memory location
   write_flash         Write a binary blob to flash
   run                 Run application code in flash
   image_info          Dump headers from an application image
   make_image          Create an application image from binary files
   elf2image           Create an application image from ELF file
   read_mac            Read MAC address from OTP ROM
   flash_id            Read SPI flash manufacturer and device ID
   read_flash          Read SPI flash content
   erase_flash         Perform Chip Erase on SPI flash
  • read flash ID:
./esptool.py --baud 115200 --port /dev/ttyUSB0 flash_id
Connecting...
Manufacturer: e0
Device: 4016