Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 2.67 KB

DEV.MD

File metadata and controls

31 lines (21 loc) · 2.67 KB

Developers notebook

Create a new release

Flashing must not only include the programm itself, but the bootloader, the partitions table, and the boot_app:

"/home/bernhard/.platformio/penv/bin/python" "/home/bernhard/.platformio/packages/tool-esptoolpy/esptool.py" --chip esp32 --port "/dev/ttyUSB0" --baud 460800 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size 4MB 0x1000 /home/bernhard/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/bin/bootloader_dio_40m.bin 0x8000 /home/bernhard/Desktop/wd/BierBot-Brick-ESP32/.pio/build/az-delivery-devkit-v4/partitions.bin 0xe000 /home/bernhard/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin 0x10000 .pio/build/az-delivery-devkit-v4/firmware.bin

To make a new image:

  1. Run "sonoff_th_origin" > "build"
  2. Run "Advanced" > "Verbose Upload"
  3. Look for the line "/home/bernhard/.platformio/penv/bin/python" "/home/bernhard/.platformio/packages/tool-esptoolpy/esptool.py" --chip esp32 --port "/dev/ttyUSB0" --baud 460800 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size 4MB 0x1000 /home/bernhard/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/bin/bootloader_dio_40m.bin 0x8000 /home/bernhard/Desktop/wd/BierBot-Brick-ESP32/.pio/build/sonoff_th_origin/partitions.bin 0xe000 /home/bernhard/.platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin 0x10000 .pio/build/sonoff_th_origin/firmware.bin right before the upload starts.
  4. Verify that the above adresses are still valid.
  5. Run create_release.sh i.e. ./create_release.sh /home/bernhard/.platformio (don't forget to chmod +x create_release.sh before first run)

FAQs

Q: COM port not recognized: A: Install the CP2102 USB to UART Bridge Controller driver from here

Q: Startup during debugging fails, message is rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)? A: Not enough power: The COM-Adapter is not able to provide it. As soon as you use WiFi you need to provide additional power, i.e. using AC.