Skip to content

Flashing the Software with a PC (Windows)

danielvelezbravo edited this page Jan 18, 2021 · 1 revision
  1. Download and install a driver for the CP210X USB to UART bridge from SiliconLabs prior to first use of the ESP32 tool. CP210X USB to UART bridge from SiliconLabs

  2. Download and Install ESP32 flash download tool (Unzip all in a folder that can be named /flasher/ https://www.espressif.com/en/support/download/other-tools

  3. Download the latest version of GXAirCom. The full firmware has the following files: 3.1. boot_app0.bin 3.2. bootloader_dio_40m.bin 3.3. firmware.bin 3.4. partitions.bin 3.5. spiffs.bin

Additional files to check: 3.6. downloadsettings.jpg (good for looking at an example on how to configure the flashing software) 3.7. version.txt (It has the version number and the changes between versions)

https://github.com/gereic/GXAirCom/tree/master/bin

  1. Run “Flash_Download_Too.exe” and select "Developer Mode", then select "ESP32 Download Tool" (Locate the exe file inside /flasher)

  2. Configure the ESP32 Download tool as follows:

Look the downloaded firmware and select each bin file in a different line: bootloader_dio_40m.bin @ 1000 partitions.bin @ 8000 boot_app0.bin @ e000 firmware.bin @ 10000 spiffs.bin @ 3d0000

SPI SPEED set on 40MHz, SPI MODE set on DIO FLASH SIZE set on 32Mbit Checked DoNotChgBin

Click on the COM select list and take mental notice of what COM ports are available at that moment

Select BAUD: 921600

  1. Connect the hardware (TTGO T-beam) to the usb port on the computer, and turn on the board if it does not turn on automatically. For flashing the board is recommended to have the battery REMOVED so the board will only get power from the usb, to avoid an issue on step 9. Windows should recognize the device. Now click again on the COM Select list and look up for the new COM port that was not there on previous step, and select that port. (In my case COM 14).

  2. Click ERASE. The software will start erasing the memory on the hardware. It Will change states from IDLE to SYNC, to Download and finally to FINISH

  3. Now hit START. It should take from 30 seconds to about 1 minute to flash. Wait for the Finish icon.

  4. Disconnect the hardware from the USB, turn it off, and turn it on again.

On V1.0. and V1.1 TTGO Boards, you need to long press the power button at least during 7 seconds to fully turn the device off.

If you flashed the TTGO T-Beam with a battery installed, during the the first start after flashing, there would be a bright led that wont turn off on the first time.

The workaround could be to flash the TTGO without a battery installed, so it will turn off as soon as you disconnect.

You can also do two power cycles: 9.1. Long press power (7 secs). Unit turns off but light keeps on. 9.2. Short press power (2 secs). Units turns on again. 9.3. Wait 10 secs (unit settles). 9.4. Long press power (7 secs). Unit should turn off and lights turn off too.