找回密码
 立即注册

微信扫码登录

搜索
查看: 230|回复: 5

[技术探讨] 一个esp编译的问题!!大家遇到没有???

[复制链接]

59

主题

370

回帖

1857

积分

金牌会员

积分
1857
金钱
1428
HASS币
50
发表于 前天 16:38 | 显示全部楼层 |阅读模式
最近esphome编译把我头都搞到了。

现在esp8266:
  board: nodemcuv2



esp8266:
  board: esp01_1m



esp8266:
  board: d1_mini









esp32:
  board: nodemcu-32s


这些型号的都能编译,不管编译速度快慢,但是可以编译了。


唯独



esp32:
  board: airm2m_core_esp32c3
这个型号esp32不能编译 logo附上 你们看看。什么原因。





INFO ESPHome 2025.9.0INFO Reading configuration /config/esphome/c3mor.yaml...WARNING GPIO2 is a strapping PIN and should only be used for I/O with care.Attaching external pullup/down resistors to strapping pins can cause unexpected failures.See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pinsINFO Generating C++ source...INFO Compiling app...Processing esp32c3mor (board: airm2m_core_esp32c3; framework: espidf; platform: https://github.com/pioarduino/platform-espressif32/releases/download/54.03.21-2/platform-espressif32.zip)--------------------------------------------------------------------------------INFO Package configuration completed successfullyTool Manager: Installing https://github.com/pioarduino/registry/releases/download/0.0.1/esptoolpy-v5.0.2.zipINFO Installing https://github.com/pioarduino/registry/releases/download/0.0.1/esptoolpy-v5.0.2.zipDownloading  [####################################]  100%Unpacking  [####################################]  100%Tool Manager: [email protected] has been installed!INFO [email protected] has been installed!Tool Manager: Installing file:///root/.platformio/tools/tool-esptoolpyINFO Installing file:///root/.platformio/tools/tool-esptoolpyTool Manager: [email protected] has been installed!INFO [email protected] has been installed!INFO Tool tool-esptoolpy successfully installedINFO Package configuration completed successfullyHARDWARE: ESP32C3 160MHz, 320KB RAM, 4MB Flash - framework-espidf @ 3.50402.0 (5.4.2) - tool-cmake @ 3.30.2 - tool-esp-rom-elfs @ 2024.10.11 - tool-esptoolpy @ 5.0.2 - tool-mklittlefs @ 3.2.0 - tool-ninja @ 1.13.1 - tool-scons @ 4.40801.0 (4.8.1) - toolchain-riscv32-esp @ 14.2.0+20241119Reading CMake configuration...-- git rev-parse returned 'fatal: not a git repository (or any parent up to mount point /)Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).'-- The C compiler identification is unknown-- The CXX compiler identification is unknown-- The ASM compiler identification is unknown-- Found assembler: riscv32-esp-elf-gcc-- Warning: Did not find file Compiler/-ASM-- Configuring incomplete, errors occurred!fatal: not a git repository (or any parent up to mount point /)Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).CMake Error at /data/cache/platformio/packages/framework-espidf/tools/cmake/project.cmake:571 (__project):  The CMAKE_C_COMPILER:    riscv32-esp-elf-gcc  is not a full path and was not found in the PATH.  Tell CMake where to find the compiler by setting either the environment  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to  the compiler, or to the compiler name if it is in the PATH.Call Stack (most recent call first):  CMakeLists.txt:3 (project)CMake Error at /data/cache/platformio/packages/framework-espidf/tools/cmake/project.cmake:571 (__project):  The CMAKE_CXX_COMPILER:    riscv32-esp-elf-g++  is not a full path and was not found in the PATH.  Tell CMake where to find the compiler by setting either the environment  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path  to the compiler, or to the compiler name if it is in the PATH.Call Stack (most recent call first):  CMakeLists.txt:3 (project)CMake Error at /data/cache/platformio/packages/framework-espidf/tools/cmake/project.cmake:571 (__project):  The CMAKE_ASM_COMPILER:    riscv32-esp-elf-gcc  is not a full path and was not found in the PATH.  Tell CMake where to find the compiler by setting either the environment  variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path  to the compiler, or to the compiler name if it is in the PATH.Call Stack (most recent call first):  CMakeLists.txt:3 (project)========================= [FAILED] Took 58.07 seconds =========================

回复

使用道具 举报

59

主题

370

回帖

1857

积分

金牌会员

积分
1857
金钱
1428
HASS币
50
 楼主| 发表于 前天 16:39 | 显示全部楼层
INFO ESPHome 2025.9.0
INFO Reading configuration /config/esphome/super.yaml...
WARNING 'airm2m_core_esp32c3': Using the '_' (underscore) character in the hostname is discouraged as it can cause problems with some DHCP and local name services. For more information, see https://esphome.io/guides/faq.html#why-shouldn-t-i-use-underscores-in-my-device-name
WARNING GPIO2 is a strapping PIN and should only be used for I/O with care.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
INFO Generating C++ source...
INFO Compiling app...
Processing airm2m_core_esp32c3 (board: airm2m_core_esp32c3; framework: espidf; platform: https://github.com/pioarduino/platform-espressif32/releases/download/54.03.21-2/platform-espressif32.zip)
--------------------------------------------------------------------------------
INFO Package configuration completed successfully
Library Manager: Installing esphome/noise-c @ 0.1.10
INFO Installing esphome/noise-c @ 0.1.10
Unpacking  [####################################]  100%
Library Manager: [email protected] has been installed!
INFO [email protected] has been installed!
Library Manager: Resolving dependencies...
INFO Resolving dependencies...
Library Manager: Installing esphome/libsodium @ 1.10020.7
INFO Installing esphome/libsodium @ 1.10020.7
Unpacking  [####################################]  100%
Library Manager: [email protected] has been installed!
INFO [email protected] has been installed!
Library Manager: Installing bblanchon/ArduinoJson @ 7.4.2
INFO Installing bblanchon/ArduinoJson @ 7.4.2
Unpacking  [####################################]  100%
Library Manager: [email protected] has been installed!
INFO [email protected] has been installed!
INFO Package configuration completed successfully
HARDWARE: ESP32C3 160MHz, 320KB RAM, 4MB Flash
- framework-espidf @ 3.50402.0 (5.4.2)
- tool-cmake @ 3.30.2
- tool-esp-rom-elfs @ 2024.10.11
- tool-esptoolpy @ 5.0.2
- tool-mklittlefs @ 3.2.0
- tool-ninja @ 1.13.1
- tool-scons @ 4.40801.0 (4.8.1)
- toolchain-riscv32-esp @ 14.2.0+20241119
Reading CMake configuration...
-- Found Git: /usr/bin/git (found version "2.39.5")
-- git rev-parse returned 'fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).'
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Found assembler: riscv32-esp-elf-gcc
-- Warning: Did not find file Compiler/-ASM
-- Configuring incomplete, errors occurred!

fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
CMake Error at /data/cache/platformio/packages/framework-espidf/tools/cmake/project.cmake:571 (__project):
  The CMAKE_C_COMPILER:

    riscv32-esp-elf-gcc

  is not a full path and was not found in the PATH.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
  CMakeLists.txt:3 (project)


CMake Error at /data/cache/platformio/packages/framework-espidf/tools/cmake/project.cmake:571 (__project):
  The CMAKE_CXX_COMPILER:

    riscv32-esp-elf-g++

  is not a full path and was not found in the PATH.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
  CMakeLists.txt:3 (project)


CMake Error at /data/cache/platformio/packages/framework-espidf/tools/cmake/project.cmake:571 (__project):
  The CMAKE_ASM_COMPILER:

    riscv32-esp-elf-gcc

  is not a full path and was not found in the PATH.

  Tell CMake where to find the compiler by setting either the environment
  variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
  CMakeLists.txt:3 (project)



========================== [FAILED] Took 6.52 seconds ==========================
回复

使用道具 举报

59

主题

370

回帖

1857

积分

金牌会员

积分
1857
金钱
1428
HASS币
50
 楼主| 发表于 前天 16:52 | 显示全部楼层
编译成功
屏幕截图 2025-09-19 164434.jpg
回复

使用道具 举报

5

主题

48

回帖

1483

积分

金牌会员

积分
1483
金钱
1430
HASS币
0
发表于 前天 20:04 | 显示全部楼层
本帖最后由 coolguy 于 2025-9-19 20:05 编辑

兄弟,咋解决的?
我也是同样的问题,https://bbs.hassbian.com/thread-30162-1-1.html 这个帖子里有说删除.esphome整个目录,但是我压根没这个目录......在esphome里直接点Clean Build Files也没用
回复

使用道具 举报

59

主题

370

回帖

1857

积分

金牌会员

积分
1857
金钱
1428
HASS币
50
 楼主| 发表于 前天 22:18 | 显示全部楼层
coolguy 发表于 2025-9-19 20:04
兄弟,咋解决的?
我也是同样的问题,https://bbs.hassbian.com/thread-30162-1-1.html 这个帖子里有说删除 ...

不晓得 现在就是这个esp32-c3这个不能编译,8266,mini,esp32-s3,nodemcu-32s这几个型号都编译成功了。
回复

使用道具 举报

4

主题

49

回帖

1480

积分

论坛技术达人

积分
1480
金钱
1427
HASS币
0
发表于 6 小时前 | 显示全部楼层
本帖最后由 vr7jj 于 2025-9-21 00:25 编辑

合宙的esp32-c3  ?

esphome:
  name: esp-test
  friendly_name: esp-test

esp32:
  board: airm2m_core_esp32c3
  framework:
    type: arduino
    
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )

GMT+8, 2025-9-21 06:41 , Processed in 1.048130 second(s), 9 queries , MemCached On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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