I have now moved the automation to Python 3.8.5 and about 1 in 20 times esptool.py fails to download to a target board with the response that might usually mean that the board is not responding or the connection is bad:
Code: Select all
esptool.py -p COM10 -b 460800 --after hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x10000 ubxlib.bin
Connecting........_____....._____....._____....._____....._____....._____....._____
A fatal error occurred: Failed to connect to Espressif device: Timed out waiting for packet header
Any suggestions on how I go about debugging this?