|
本帖最后由 魔术手27816 于 2022-1-27 14:01 编辑
使用arduino ide上次代码到esp8266上传了十几次都正常上传,但是现在上传一直失败,都是提示Invalid head of packet (0x20),现在上传和之前上传时的配置都是一样的
这是错误提示
Arduino:1.8.10 Hourly Build 2019/05/21 09:33 (Windows 10), 开发板:"NodeMCU 1.0 (ESP-12E Module), 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"
警告:库 lwIP_PPP 中的分类 'Network' 不可用。设置为 'Uncategorized'
警告:库 lwIP_enc28j60 中的分类 'Network' 不可用。设置为 'Uncategorized'
警告:库 lwIP_w5500 中的分类 'Network' 不可用。设置为 'Uncategorized'
警告:库 lwIP_w5500 中的分类 'Network' 不可用。设置为 'Uncategorized'
Executable segment sizes:
ICACHE : 32768 - flash instruction cache
IROM : 232636 - code in flash (default or ICACHE_FLASH_ATTR)
IRAM : 26861 / 32768 - code in IRAM (IRAM_ATTR, ISRs...)
DATA : 1496 ) - initialized variables (global, static) in RAM/HEAP
RODATA : 988 ) / 81920 - constants (global, static) in RAM/HEAP
BSS : 25624 ) - zeroed variables (global, static) in RAM/HEAP
项目使用了 261981 字节,占用了 (25%) 程序存储空间。最大为 1044464 字节。
全局变量使用了28108字节,(34%)的动态内存,余留53812字节局部变量。最大为81920字节。
esptool.py v3.0
Serial port COM3
Connecting....
Chip is ESP8266 in Secure Download Mode
WARNING: Stub loader is not supported in Secure Download Mode, setting --no-stub
Enabling default SPI flash mode...
Traceback (most recent call last):
File "C:\Users\29420\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.0/tools/upload.py", line 66, in <module>
esptool.main(cmdline)
File "C:/Users/29420/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.0/tools/esptool\esptool.py", line 3595, in main
esp.flash_spi_attach(0)
File "C:/Users/29420/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.0/tools/esptool\esptool.py", line 1150, in flash_spi_attach
self.flash_begin(0, 0)
File "C:/Users/29420/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.0/tools/esptool\esptool.py", line 647, in flash_begin
params, timeout=timeout)
File "C:/Users/29420/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.0/tools/esptool\esptool.py", line 413, in check_command
val, data = self.command(op, data, chk, timeout=timeout)
File "C:/Users/29420/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.0/tools/esptool\esptool.py", line 386, in command
p = self.read()
File "C:/Users/29420/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.0/tools/esptool\esptool.py", line 331, in read
return next(self._slip_reader)
File "C:/Users/29420/AppData/Local/Arduino15/packages/esp8266/hardware/esp8266/3.0.0/tools/esptool\esptool.py", line 2648, in slip_reader
raise FatalError('Invalid head of packet (0x%s)' % hexify(b))
esptool.FatalError: Invalid head of packet (0x20)
esptool.FatalError: Invalid head of packet (0x20)
在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
|
|