『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 1165|回复: 2

[求助] [一波未平一波又起]esphome编译中的问题

[复制链接]

35

主题

401

帖子

2565

积分

金牌会员

Rank: 6Rank: 6

积分
2565
金钱
2164
HASS币
10
发表于 2023-3-12 10:28:27 | 显示全部楼层 |阅读模式
本帖最后由 lexcao 于 2023-3-12 20:31 编辑

INFO Reading configuration /config/esphome/blegateway.yaml...
INFO Generating C++ source...
INFO Compiling app...
Processing esp32c3 (board: esp32-c3-devkitm-1; framework: arduino; platform: https://github.com/platformio/platform-espressif32.git#feature/arduino-upstream)
--------------------------------------------------------------------------------
* Adding toolchain toolchain-riscv32-esp with version 8.4.0+2021r2-patch5
* Adding toolchain toolchain-xtensa-esp32 with version 8.4.0+2021r2-patch5
* Adding toolchain toolchain-xtensa-esp32s2 with version 8.4.0+2021r2-patch5
* Adding toolchain toolchain-riscv32-esp with version 8.4.0+2021r2-patch5
* Adding toolchain toolchain-xtensa-esp32 with version 8.4.0+2021r2-patch5
* Adding toolchain toolchain-xtensa-esp32s2 with version 8.4.0+2021r2-patch5
* Adding toolchain toolchain-riscv32-esp with version 8.4.0+2021r2-patch5
* Adding toolchain toolchain-xtensa-esp32 with version 8.4.0+2021r2-patch5
* Adding toolchain toolchain-xtensa-esp32s2 with version 8.4.0+2021r2-patch5
HARDWARE: ESP32C3 160MHz, 320KB RAM, 4MB Flash
 - framework-arduinoespressif32 @ 2.0.6+sha.0d84018 
 - tool-openocd-esp32 @ 2.1000.20210721 (10.0) 
 - toolchain-riscv32-esp @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
Dependency Graph
|-- WiFi @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- Update @ 2.0.0
*** [/data/esp32c3/.pioenvs/esp32c3/bootloader.bin] Source `/data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/esp32c3/bin/bootloader__40m.elf' not found, needed by target `/data/esp32c3/.pioenvs/esp32c3/bootloader.bin'.
========================== [FAILED] Took 3.97 seconds ==========================

这是为什么?
回复

使用道具 举报

35

主题

401

帖子

2565

积分

金牌会员

Rank: 6Rank: 6

积分
2565
金钱
2164
HASS币
10
 楼主| 发表于 2023-3-12 10:51:13 | 显示全部楼层
改了标头,问题解决

esphome:
  name: esp32c3
  platformio_options:
    platform: https://github.com/platformio/platform-espressif32.git#feature/arduino-upstream
    platform_packages:
      - framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git
    board_build.variant: esp32c3
    board_build.f_cpu: 160000000L
    board_build.f_flash: 40000000L
    upload_protocol: esptool
    board_build.flash_mode: dio
esp32:
  board: esp32-c3-devkitm-1
回复

使用道具 举报

35

主题

401

帖子

2565

积分

金牌会员

Rank: 6Rank: 6

积分
2565
金钱
2164
HASS币
10
 楼主| 发表于 2023-3-12 21:15:29 | 显示全部楼层
[/data/esp32c3/.pioenvs/esp32c3/bootloader.bin] Source `/data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/esp32c3/bin/bootloader__40m.elf' not found
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-24 23:29 , Processed in 0.091359 second(s), 24 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表