-
Notifications
You must be signed in to change notification settings - Fork 34
Flashing
Olliver Schinagl edited this page Aug 31, 2024
·
1 revision
When flashing is required, e.g. due to a brick or when flashing different firmware, the following steps can be achieved to reinstalled the official firmware.
The application and bootloader are not packed into a single binary, and thus need to be downloaded separately.
An USB-UART cable is needed, and a strong 3v3 power supply. Some USB cables do not supply enough, or not 3v3. Only DTR is mapped to the pinheader, not RTS, so an automatic reset is not possible.
- Download the bootloaders but ignore/remove
firmware.bin
, it is replaced with the file from the next step - Download a pre-compiled firmware image
- Connect the USB-UART cable to the pin-header
- Optionally connect DTR pin if possible, otherwise pushing of the reset and boot buttons are needed in the next step
- Assuming we are using
ttyUSB0
esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 921600 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_freq keep --flash_size detect --compress \
0x1000 bootloader.bin \
0x8000 partitions.bin \
0xe000 boot_app0.bin \
0x10000 nrgitho-v<version>.bin
- Optionally disconnect the DTR pin
- Press reset