Xinyuan-LilyGO / T-Wristband

DIY Programmable Bracelet
311 stars 98 forks source link

Flashing for the first time using the Flash tool board & T-Wristband #18

Closed smtre closed 3 years ago

smtre commented 3 years ago

Hi All,

I am having trouble flashing the T-Writsband. I have purchased three bands and and attempted the following on all of them.

I don't believe that it is a hardware issue, as I have three of them and tried them all.

It seems that no matter what I do I cannot get this to flash. Clearly there is something I do not understand.

Any help greatly appreciated.

Cheers,

Scott

Environment

I have followed these instructions: https://github.com/Xinyuan-LilyGO/LilyGo-T-Wristband/blob/master/examples/T-Wristband-LSM9DS1/README.MD

I have also read this FAQ - especially paragraph 5.1.v: https://github.com/Xinyuan-LilyGO/LilyGo-Document

I have both the recommended USB drivers installed (first recommended by the instructions above, the second from the FAQ) http://www.wch-ic.com/search?q=ch340&t=downloads https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers

I am using the example code with no changes from the Xinyuan-LilyGO / LilyGo-T-Wristband repo: T-Wristband-LSM9DS1.ino

I have the code compiling in the Arduino IDE by following the instructions above.

I have the Arduino IDE Board manager configured the same as point 5 in the instructions: https://github.com/Xinyuan-LilyGO/LilyGo-T-Wristband/blob/master/examples/T-Wristband-LSM9DS1/README.MD Board_Config

The Flash tool board I have is CH340C v2.0 20200324

I have the LSM9DS1 T-Wristband version of the board, confirmed with the photo here: https://github.com/Xinyuan-LilyGO/LilyGo-T-Wristband

I have the flash tool board laying flat on the desk and the micro ribbon with the white line facing up plugged into the T-Wristband board. Board_Connected

Error

I go to upload the board and get the following errors

"C:\Users\Scott\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0/bin/xtensa-esp32-elf-size" -A "C:\Users\Scott\AppData\Local\Temp\arduino_build_124587/T-Wristband-LSM9DS1.ino.elf" Sketch uses 940818 bytes (71%) of program storage space. Maximum is 1310720 bytes. Global variables use 45784 bytes (13%) of dynamic memory, leaving 281896 bytes for local variables. Maximum is 327680 bytes. C:\Users\Scott\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\2.6.1/esptool.exe --chip esp32 --port COM5 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0xe000 C:\Users\Scott\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4/tools/partitions/boot_app0.bin 0x1000 C:\Users\Scott\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4/tools/sdk/bin/bootloader_dio_80m.bin 0x10000 C:\Users\Scott\AppData\Local\Temp\arduino_build_124587/T-Wristband-LSM9DS1.ino.bin 0x8000 C:\Users\Scott\AppData\Local\Temp\arduino_build124587/T-Wristband-LSM9DS1.ino.partitions.bin esptool.py v2.6 Serial port COM5 Connecting........____..............................

A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header

Attempted Fixes

I have attempted:

  1. pressing and holding the IO1 button for the entire Connecting........ stage
  2. pressing and holding the IO1 & RST buttons for the entire Connecting........ stage
  3. pressing and holding the IO1 then pressing the RST button and releasing both buttons during the Connecting........ stage
  4. pressing and holding the RST then pressing the IO1 button and releasing both buttons during the Connecting........ stage
  5. I have repeated the above procedure on a second and third flash tool board and second and third T-Wristband board
  6. I have repeated the above procedure on a mixing the first and second and third boards in combination
  7. I have updated Arduino IDE to 1.8.13 and repeated attempts 1-4
  8. I have updated all of the libraries in my environment - including ones not used by the code - and repeated attempts 1-4
smtre commented 3 years ago

The Verbose Compile messages from the IDE are here verbose.txt

smtre commented 3 years ago

Solved it.

For those of you who don't know the little connector on the board has a clip! Who knew!

You need to lift the clip up with your finger nail then place in the cable then CLIP is down properly.

Magically it all starts uploading.

Clip