esptool.py under Python 3

RobMeades
Posts: 85
Joined: Thu Nov 29, 2018 1:12 pm

esptool.py under Python 3

Postby RobMeades » Thu Aug 27, 2020 8:15 pm

I use esptool.py (v2.8) in an automated regression tests rig with three ESP32 boards attached. I have been using this under Python 2.7.15 for many months, downloading and running regression tests many times per day without a single problem.

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
I can still run esptool.py perfectly under Python 2.7.15, so the board is not at fault.

Any suggestions on how I go about debugging this?

Who is online

Users browsing this forum: No registered users and 74 guests