platform-espressif8266 icon indicating copy to clipboard operation
platform-espressif8266 copied to clipboard

Timed out waiting for packet header

Open tcurdt opened this issue 2 years ago • 0 comments

The upload fails. What could be the problem?

pio run -v -t upload
Processing nodemcu (platform: espressif8266; board: nodemcu; framework: arduino; upload_port: /dev/tty.usbserial-210)
------------------------------------------------------------------------------------------------------------
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/nodemcu.html
PLATFORM: Espressif 8266 (3.2.0) > NodeMCU 0.9 (ESP-12 Module)
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES: 
 - framework-arduinoespressif8266 3.30002.0 (3.0.2) 
 - tool-esptool 1.413.0 (4.13) 
 - tool-esptoolpy 1.30000.201119 (3.0.0) 
 - tool-mklittlefs 1.203.210628 (2.3) 
 - tool-mkspiffs 1.200.0 (2.0) 
 - toolchain-xtensa 2.100300.210717 (10.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 35 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
<lambda>(["checkprogsize"], [".pio/build/nodemcu/firmware.elf"])
MethodWrapper(["checkprogsize"], [".pio/build/nodemcu/firmware.elf"])
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [===       ]  34.2% (used 27980 bytes from 81920 bytes)
Flash: [==        ]  25.0% (used 260893 bytes from 1044464 bytes)
.pio/build/nodemcu/firmware.elf  :
section                                                                                                                                                                              size         addr
.data                                                                                                                                                                                1496   1073643520
.noinit                                                                                                                                                                                56   1073645016
.text                                                                                                                                                                                 240   1074790400
.irom0.text                                                                                                                                                                        231724   1075843088
.text1                                                                                                                                                                              26557   1074790640
.rodata                                                                                                                                                                               876   1073645072
.bss                                                                                                                                                                                25608   1073645952
.comment                                                                                                                                                                             5066            0
.xtensa.info                                                                                                                                                                           56            0
.xt.prop._ZNSt14_Function_baseD2Ev                                                                                                                                                     48            0
.xt.prop._ZSt4swapISt9_Any_dataENSt9enable_ifIXsrSt6__and_IJSt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS5_ESt18is_move_assignableIS5_EEE5valueEvE4typeERS5_SF_        36            0
.xt.lit._ZNKSt8functionIFbvEEclEv                                                                                                                                                       8            0
.xt.lit._ZN7esp826613polledTimeout15timeoutTemplateILb1ENS0_11YieldPolicy9DoNothingENS0_10TimePolicy8TimeUnitINS4_16TimeSourceCyclesELy1000EEEE16expiredRetriggerEv                     8            0
.xt.prop._ZNKSt8functionIFbvEEclEv                                                                                                                                                     60            0
.xt.prop._ZN7esp826613polledTimeout15timeoutTemplateILb1ENS0_11YieldPolicy9DoNothingENS0_10TimePolicy8TimeUnitINS4_16TimeSourceCyclesELy1000EEEE16expiredRetriggerEv                   84            0
.irom.exceptiontext                                                                                                                                                                    18            0
.debug_frame                                                                                                                                                                        19444            0
.debug_info                                                                                                                                                                        262368            0
.debug_abbrev                                                                                                                                                                       48243            0
.debug_loc                                                                                                                                                                         142892            0
.debug_aranges                                                                                                                                                                       5496            0
.debug_ranges                                                                                                                                                                        8952            0
.debug_line                                                                                                                                                                        258110            0
.debug_str                                                                                                                                                                          34085            0
Total                                                                                                                                                                             1071531
<lambda>(["upload"], [".pio/build/nodemcu/firmware.bin"])
AVAILABLE: espota, esptool
CURRENT: upload_protocol = esptool
MethodWrapper(["upload"], [".pio/build/nodemcu/firmware.bin"])
Use manually specified: /dev/tty.usbserial-210
"/opt/homebrew/Cellar/platformio/5.2.5/libexec/bin/python3.9" "/Users/tcurdt/.platformio/packages/[email protected]/esptool.py" --before default_reset --after hard_reset --chip esp8266 --port "/dev/tty.usbserial-210" --baud 115200 write_flash 0x0 .pio/build/nodemcu/firmware.bin
esptool.py v3.0
Serial port /dev/tty.usbserial-210
Connecting....
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 5c:cf:7f:80:65:07
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Compressed 265040 bytes to 195052...

A fatal error occurred: Timed out waiting for packet header
*** [upload] Error 2

tcurdt avatar Mar 28 '22 00:03 tcurdt