-
-
Notifications
You must be signed in to change notification settings - Fork 0
instalation
Wieslaw Weglowski edited this page Apr 21, 2020
·
21 revisions
Create a folder on the desktop eg: ESPH move files to it.
(esphboot.bin, blank_config.bin,rboot.bin)
Open terminal:
Type: " cd " press spaces, and move the esph folder to the terminal window.
press enter.
Type:
1. ls /dev/cu.* | --we check, USB to serial.
2. user@MacBook-Pro-user ~ % ls /dev/cu.*
Example result:
1. /dev/cu.Bluetooth-Incoming-Port /dev/cu.SLAB_USBtoUART /dev/cu.usbserial-0001
2. replace xx.XX_XXX >> cu.SLAB_USBtoUART
Reading, erasing and writing:
1. esptool.py -p /dev/xx.XX_XXX flash_id - flash size
2. esptool.py -p /dev/xx.XX_XXX read_flash 0x00000 0x100000 image.bin -read flash size 1M
3. esptool.py -p /dev/xx.XX_XXX read_flash 0x00000 0x400000 image.bin -read flash size 4M
4. esptool.py -p /dev/xx.XX_XXX erase_flash -erase flash
5. esptool.py -p /dev/xx.XX_XXX write_flash -fs 1MB -fm dout -ff 40m 0x0 rboot.bin 0x1000 blank_config.bin 0x2000 esphboot.bin -write flash ESPH_OTA
6. esptool.py -p /dev/xx.XX_XXX write_flash -fs 1MB -fm dout -ff 40m 0x0 rboot.bin 0x1000 blank_config.bin 0x2000 main.bin -write flash ESPH
After finish flash:
When flash finished reconnect devices, unplug usb cable and plug back, to usb sock.
Device will be ready to read log.
The log will be saved to the ESPH folder.
Type command:
Screen - L /dev/xx.XX_XXX 115200