From 3534114dc5a8f790d6393c2c86b215a3e600992f Mon Sep 17 00:00:00 2001 From: Maurice Makaay Date: Thu, 29 Apr 2021 01:57:09 +0200 Subject: [PATCH] Update flashing.md --- doc/flashing.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/doc/flashing.md b/doc/flashing.md index 874a90d..b4ea27f 100644 --- a/doc/flashing.md +++ b/doc/flashing.md @@ -233,12 +233,32 @@ If all went well, the final log output in esphome-flasher looks somewhat like th -If you want to flash with esptool, you can use: +If you want to flash with esptool, you can use the following command. + +*Note: This is probably not correct to get the lamp fully operational. This +does not update partition table and the bootloader, which are also needed to +get a functioning ESPHome device. Unless you know exactly what you're doing +with esptool here, I recommend to use the esphome-flasher instead.* ``` python.exe .\esptool.py --chip esp32 --port COM3 --baud 115200 write_flash 0x1000 ``` +*The following is a bit more in the direction of the required command +for flashing. If you have some definitive info on how to handle this best, +please let me know.* + +``` +python esptool.py --chip esp32 \ + -p /dev/ttyUSB0 --baud 115200 \ + --before default_reset --after hard_reset \ + write_flash -z --flash_mode dout --flash_freq 40m --flash_size detect \ + 0x1000 bootloader_dout_40m.bin \ + 0x8000 partitions.bin \ + 0xe000 boot_app0.bin \ + 0x10000 ~/Downloads/firmware.bin +``` + After flashing, power down the lamp, disconnect `GPIO0` from GND and reconnect the power to boot into the new ESPHome firmware.