乐鑫技术交流
直播中

乔丽娜

7年用户 1053经验值
私信 关注
[问答]

NodeMCU ESP8266通过SPI链接到Adafruit BME280温度、湿度和压力传感器,会阻止ESP启动并与IDE通信怎么解决?

我有一个 AZDelivery NodeMCU ESP8266 [1] 通过 SPI 链接到 Adafruit BME280 温度、湿度和压力传感器 [2],当建立数据连接时,它会阻止 ESP 启动并与 IDE 通信。来自 Visual Code Studio 的错误是:
代码:全选    Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "Generic ESP8266 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, dtr (aka nodemcu), 26 MHz, 40MHz,
    DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory,     
    Disabled, None, Only Sketch, 115200"

    Executable segment sizes:
    ICACHE : 32768           - flash instruction cache
    IROM   : 231724          - code in flash         (default or ICACHE_FLASH_ATTR)
    IRAM   : 26793   / 32768 - code in IRAM          (IRAM_ATTR, ISRs...)
    DATA   : 1496  )         - initialized variables (global, static) in RAM/HEAP
    RODATA : 876   ) / 81920 - constants             (global, static) in RAM/HEAP
    BSS    : 25608 )         - zeroed variables      (global, static) in RAM/HEAP

    Sketch uses 260889 bytes (27%) of program storage space. Maximum is 958448 bytes.
    Global variables use 27980 bytes (34%) of dynamic memory, leaving 53940 bytes for local
    variables. Maximum is 81920 bytes.

    esptool.py v3.0
    Serial port COM11
    Connecting........_____....._____....._____....._____....._____....._____....._____
    Traceback (most recent call last):
   
    File "..packages\esp8266\hardware\esp8266\3.0.2/tools/upload.py", line 66, in  esptool.main(cmdline)

    File "..packages/esp8266/hardware/esp8266/3.0.2/tools/esptool\esptool.py", line 3552, in main
    esp.connect(args.before, args.connect_attempts)
   
    File "../packages/esp8266/hardware/esp8266/3.0.2/tools/esptool\esptool.py", line 529, in
    connect raise FatalError('Failed to connect to %s: %s' % (self.CHIP_NAME, last_error))

    esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header
    esptool.FatalError: Failed to connect to ESP8266: Timed out waiting for packet header

更多回帖

发帖
×
20
完善资料,
赚取积分