我正在尝试对这些 ESP 芯片进行编程,但为了上传到它们,我需要一个名为“ esptool.py ”的东西,并在每个芯片上刷写固件才能这样做。我已经到了连接芯片的地步,我正在提示这个命令
“esptool.py --port COM6 --baud 74880 --trace --before no_reset erase_flash”
. 总的来说,它出现了这个错误:
“发生致命错误:无法连接到 Espressif 设备:数据包头无效 (0x08)”
我研究过这个问题,他们说我使用的USB接口一定有问题。我不是这种情况,因为在上传时,蓝色 LED 与命令行同步亮起。
esptool.py --port COM6 --baud 74880 --trace --before no_reset erase_flash
esptool.py v2.7
Serial port COM6
Connecting...TRACE +0.000 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
55555555 | UUUU
TRACE +0.001 Write 46 bytes:
c000082400000000 0007071220555555 | ...$........ UUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
5555555555555555 5555555555c0 | UUUUUUUUUUUUU.
TRACE +0.012 Read 1 bytes: 08
TRACE +0.000 Read invalid data: 08
TRACE +0.001 Remaining data in serial buffer:
9898521581051581 0515810535830d15 | ..R.........5...
832d158b0515ab05 158105 | .-.........
.TRACE +0.053 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
55555555 | UUUU
TRACE +0.002 Write 46 bytes:
c000082400000000 0007071220555555 | ...$........ UUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
5555555555555555 5555555555c0 | UUUUUUUUUUUUU.
TRACE +0.012 Read 1 bytes: 08
TRACE +0.000 Read invalid data: 08
TRACE +0.001 Remaining data in serial buffer:
9a9a52158b0515ab 0515810515810515 | ..R.............
810515810515830d 15830d | ...........
.TRACE +0.052 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
55555555 | UUUU
TRACE +0.001 Write 46 bytes:
c000082400000000 0007071220555555 | ...$........ UUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
5555555555555555 5555555555c0 | UUUUUUUUUUUUU.
TRACE +0.013 Read 1 bytes: 08
TRACE +0.000 Read invalid data: 08
TRACE +0.000 Remaining data in serial buffer:
9898521581051581 0535830d15832d15 | ..R......5....-.
8b05158105158105 158105 | ...........
.TRACE +0.052 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
55555555 | UUUU
TRACE +0.001 Write 46 bytes:
c000082400000000 0007071220555555 | ...$........ UUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
5555555555555555 5555555555c0 | UUUUUUUUUUUUU.
TRACE +0.013 Read 1 bytes: 08
TRACE +0.000 Read invalid data: 08
TRACE +0.000 Remaining data in serial buffer:
9a9a52158b05158b 0515810515810515 | ..R.............
810515810515810d 15830d | ...........
.TRACE +0.052 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
55555555 | UUUU
TRACE +0.001 Write 46 bytes:
c000082400000000 0007071220555555 | ...$........ UUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
5555555555555555 5555555555c0 | UUUUUUUUUUUUU.
TRACE +0.012 Read 1 bytes: 08
TRACE +0.000 Read invalid data: 08
TRACE +0.001 Remaining data in serial buffer:
9898521581051581 0d15830d158b0515 | ..R.............
8b05158105158105 158105 | ...........
.TRACE +0.051 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
55555555 | UUUU
TRACE +0.001 Write 46 bytes:
c000082400000000 0007071220555555 | ...$........ UUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
5555555555555555 5555555555c0 | UUUUUUUUUUUUU.
TRACE +0.013 Read 1 bytes: 08
TRACE +0.000 Read invalid data: 08
TRACE +0.001 Remaining data in serial buffer:
9898521581053583 0d15832d158b0515 | ..R...5....-....
ab05158105158105 158105 | ...........
_TRACE +0.051 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
55555555 | UUUU
TRACE +0.001 Write 46 bytes:
c000082400000000 0007071220555555 | ...$........ UUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
5555555555555555 5555555555c0 | UUUUUUUUUUUUU.
TRACE +0.013 Read 1 bytes: 08
TRACE +0.000 Read invalid data: 08
TRACE +0.001 Remaining data in serial buffer:
98985215810d1583 0d158b05158b0515 | ..R.............
8105158105158105 158105 | ...........
_TRACE +0.051 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
55555555 | UUUU
TRACE +0.001 Write 46 bytes:
c000082400000000 0007071220555555 | ...$........ UUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
5555555555555555 5555555555c0 | UUUUUUUUUUUUU.
TRACE +0.013 Read 1 bytes: 08
TRACE +0.000 Read invalid data: 08
TRACE +0.001 Remaining data in serial buffer:
929a521581051581 0515810515810515 | ..R.............
810515830d15830d 158b05 | ...........
_TRACE +0.052 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
55555555 | UUUU
TRACE +0.001 Write 46 bytes:
c000082400000000 0007071220555555 | ...$........ UUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
5555555555555555 5555555555c0 | UUUUUUUUUUUUU.
TRACE +0.013 Read 1 bytes: 08
TRACE +0.000 Read invalid data: 08
TRACE +0.001 Remaining data in serial buffer:
9898521581051581 0d15830d158b0515 | ..R.............
8b05158105158105 158105 | ...........
_TRACE +0.051 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
55555555 | UUUU
TRACE +0.002 Write 46 bytes:
c000082400000000 0007071220555555 | ...$........ UUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
5555555555555555 5555555555c0 | UUUUUUUUUUUUU.
TRACE +0.013 Read 1 bytes: 08
TRACE +0.000 Read invalid data: 08
TRACE +0.000 Remaining data in serial buffer:
9a9a52158b0515ab 0515810515810515 | ..R.............
810515810515830d 15830d | ...........
_TRACE +0.051 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
55555555 | UUUU
TRACE +0.001 Write 46 bytes:
c000082400000000 0007071220555555 | ...$........ UUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
5555555555555555 5555555555c0 | UUUUUUUUUUUUU.
TRACE +0.013 Read 1 bytes: 08
TRACE +0.000 Read invalid data: 08
TRACE +0.001 Remaining data in serial buffer:
929a521581051581 0515810515810515 | ..R.............
810535830d15832d 158b05 | ..5....-...
.TRACE +0.051 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
55555555 | UUUU
TRACE +0.001 Write 46 bytes:
c000082400000000 0007071220555555 | ...$........ UUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
5555555555555555 5555555555c0 | UUUUUUUUUUUUU.
TRACE +0.013 Read 1 bytes: 08
TRACE +0.000 Read invalid data: 08
TRACE +0.001 Remaining data in serial buffer:
9898521581051581 0515810515830d15 | ..R.............
8305158b05158105 158105 | ...........
.TRACE +0.052 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
55555555 | UUUU
TRACE +0.001 Write 46 bytes:
c000082400000000 0007071220555555 | ...$........ UUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
5555555555555555 5555555555c0 | UUUUUUUUUUUUU.
TRACE +0.013 Read 1 bytes: 08
TRACE +0.000 Read invalid data: 08
TRACE +0.000 Remaining data in serial buffer:
98985215830d158b 05158b0515810515 | ..R.............
8105158105158105 15810d | ...........
.TRACE +0.053 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
55555555 | UUUU
TRACE +0.001 Write 46 bytes:
c000082400000000 0007071220555555 | ...$........ UUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
5555555555555555 5555555555c0 | UUUUUUUUUUUUU.
TRACE +0.013 Read 1 bytes: 08
TRACE +0.000 Read invalid data: 08
TRACE +0.000 Remaining data in serial buffer:
9898521581051581 0d15830d158b0515 | ..R.............
8b05158105158105 158105 | ...........
.TRACE +0.053 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
55555555 | UUUU
TRACE +0.001 Write 46 bytes:
c000082400000000 0007071220555555 | ...$........ UUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
5555555555555555 5555555555c0 | UUUUUUUUUUUUU.
TRACE +0.013 Read 1 bytes: 08
TRACE +0.000 Read invalid data: 08
TRACE +0.001 Remaining data in serial buffer:
9a9a52158b0515ab 0515810515810515 | ..R.............
810515810515810d 15830d | ...........
.TRACE +0.051 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
55555555 | UUUU
TRACE +0.001 Write 46 bytes:
c000082400000000 0007071220555555 | ...$........ UUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
5555555555555555 5555555555c0 | UUUUUUUUUUUUU.
TRACE +0.013 Read 1 bytes: 08
TRACE +0.000 Read invalid data: 08
TRACE +0.002 Remaining data in serial buffer:
98985215830d158b 05158b0515810515 | ..R.............
8105158105158105 158105 | ...........
_TRACE +0.051 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
55555555 | UUUU
TRACE +0.001 Write 46 bytes:
c000082400000000 0007071220555555 | ...$........ UUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
5555555555555555 5555555555c0 | UUUUUUUUUUUUU.
TRACE +0.013 Read 1 bytes: 08
TRACE +0.000 Read invalid data: 08
TRACE +0.001 Remaining data in serial buffer:
9898521581051581 0515810515830d15 | ..R.............
8305158b05158105 158105 | ...........
_TRACE +0.052 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
55555555 | UUUU
TRACE +0.002 Write 46 bytes:
c000082400000000 0007071220555555 | ...$........ UUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
5555555555555555 5555555555c0 | UUUUUUUUUUUUU.
TRACE +0.012 Read 1 bytes: 08
TRACE +0.000 Read invalid data: 08
TRACE +0.001 Remaining data in serial buffer:
929a521581051581 0515810515810515 | ..R.............
810515830d15830d 158b05 | ...........
_TRACE +0.051 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
55555555 | UUUU
TRACE +0.001 Write 46 bytes:
c000082400000000 0007071220555555 | ...$........ UUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
5555555555555555 5555555555c0 | UUUUUUUUUUUUU.
TRACE +0.013 Read 1 bytes: 08
TRACE +0.000 Read invalid data: 08
TRACE +0.001 Remaining data in serial buffer:
9898521581051581 0515810d15830d15 | ..R.............
8b05158b05158105 158105 | ...........
_TRACE +0.051 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
55555555 | UUUU
TRACE +0.001 Write 46 bytes:
c000082400000000 0007071220555555 | ...$........ UUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
5555555555555555 5555555555c0 | UUUUUUUUUUUUU.
TRACE +0.013 Read 1 bytes: 08
TRACE +0.000 Read invalid data: 08
TRACE +0.002 Remaining data in serial buffer:
98985215830d1583 0d158b05158b0515 | ..R.............
8105158105158105 158105 | ...........
_TRACE +0.052 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
55555555 | UUUU
TRACE +0.001 Write 46 bytes:
c000082400000000 0007071220555555 | ...$........ UUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
5555555555555555 5555555555c0 | UUUUUUUUUUUUU.
TRACE +0.013 Read 1 bytes: 08
TRACE +0.000 Read invalid data: 08
TRACE +0.001 Remaining data in serial buffer:
9a9a52158b0515ab 0515810515810515 | ..R.............
810515810515830d 15830d | ...........
.TRACE +0.051 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
55555555 | UUUU
TRACE +0.001 Write 46 bytes:
c000082400000000 0007071220555555 | ...$........ UUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
5555555555555555 5555555555c0 | UUUUUUUUUUUUU.
TRACE +0.013 Read 1 bytes: 08
TRACE +0.000 Read invalid data: 08
TRACE +0.002 Remaining data in serial buffer:
98985215810d1583 0d158b05158b0515 | ..R.............
8105158105158105 158105 | ...........
.TRACE +0.052 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
55555555 | UUUU
TRACE +0.001 Write 46 bytes:
c000082400000000 0007071220555555 | ...$........ UUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
5555555555555555 5555555555c0 | UUUUUUUUUUUUU.
TRACE +0.013 Read 1 bytes: 08
TRACE +0.000 Read invalid data: 08
TRACE +0.000 Remaining data in serial buffer:
9898521581051581 0515810d15830d15 | ..R.............
8b05158b05158105 158105 | ...........
.TRACE +0.052 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
55555555 | UUUU
TRACE +0.001 Write 46 bytes:
c000082400000000 0007071220555555 | ...$........ UUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
5555555555555555 5555555555c0 | UUUUUUUUUUUUU.
TRACE +0.012 Read 1 bytes: 08
TRACE +0.000 Read invalid data: 08
TRACE +0.001 Remaining data in serial buffer:
9898521581051581 0d15830d158b0515 | ..R.............
8b05158105158105 158105 | ...........
.TRACE +0.052 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
55555555 | UUUU
TRACE +0.001 Write 46 bytes:
c000082400000000 0007071220555555 | ...$........ UUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
5555555555555555 5555555555c0 | UUUUUUUUUUUUU.
TRACE +0.013 Read 1 bytes: 08
TRACE +0.000 Read invalid data: 08
TRACE +0.000 Remaining data in serial buffer:
929a52158b051581 0515810515810515 | ..R.............
810515810d15830d 158b05 | ...........
.TRACE +0.052 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
55555555 | UUUU
TRACE +0.000 Write 46 bytes:
c000082400000000 0007071220555555 | ...$........ UUU
5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
5555555555555555 5555555555c0 | UUUUUUUUUUUUU.
A fatal error occurred: Failed to connect to Espressif device: Invalid head of packet (0x08)
我期待它连接到芯片并擦除闪存驱动器或其他东西,但显然存在连接问题。
这是我另一个论坛的链接:链接