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

 找回密码
 立即注册
查看: 747|回复: 4

[技术探讨] 最新的编译工具 编译 单核esp32,提示错误

[复制链接]

80

主题

388

帖子

1672

积分

金牌会员

Rank: 6Rank: 6

积分
1672
金钱
1284
HASS币
0
发表于 2023-2-4 20:05:21 | 显示全部楼层 |阅读模式
RT,

INFO Generating C++ source...
INFO Compiling app...
Processing xiaomi-plug (board: esp32dev; framework: arduino; platform: platformio/espressif32 @ 5.2.0)
--------------------------------------------------------------------------------
Configuring toolchain packages from a remote source...
Error! Failed to extract upstream toolchainconfigurations:
Bad package version `1.22.0-97-gc752ad5-5.2.0`
You can disable this feature via the `board_build.arduino.upstream_packages = no` setting in your `platformio.ini` file.


esphome yaml

esphome:
  name: xiaomi-plug
  platformio_options:
    platform_packages:
     - framework-arduinoespressif32 @ https://github.com/pauln/arduino-esp32.git#solo-no-mac-crc/1.0.6
 
  on_loop:
   - lambda: |
        vTaskDelay(10/portTICK_PERIOD_MS);
        
  on_boot: 
    then: 
      - switch.turn_off: switch_plug
      - delay: 3s
      - switch.turn_on: switch_plug
根据提示,最新的固件不适配 https://github.com/pauln/arduino-esp32.git#solo-no-mac-crc/1.0.6 ?
回复

使用道具 举报

11

主题

180

帖子

1340

积分

金牌会员

Rank: 6Rank: 6

积分
1340
金钱
1160
HASS币
0
发表于 2023-2-6 19:18:57 | 显示全部楼层
占坑求解,原来的1.0.4也不行
回复

使用道具 举报

80

主题

388

帖子

1672

积分

金牌会员

Rank: 6Rank: 6

积分
1672
金钱
1284
HASS币
0
 楼主| 发表于 2023-2-6 19:40:27 | 显示全部楼层
本帖最后由 ciasdmxhxjjpd@c 于 2023-2-6 19:47 编辑
Awe7 发表于 2023-2-6 19:18
占坑求解,原来的1.0.4也不行

实测 是由于 esphome 的问题,降级到 esphome:2022.7.0-dev20220810
就行了。
docker-compose.yml
version: '3'
services:
esphome:
container_name: esphome
image: esphome/esphome:2022.7.0-dev20220810
volumes:
- /opt/esphome/config:/config
- /etc/localtime:/etc/localtime:ro
restart: always
privileged: true
network_mode: host

mkdir -p /opt/esphome/config
docker-compose up -d




回复

使用道具 举报

11

主题

180

帖子

1340

积分

金牌会员

Rank: 6Rank: 6

积分
1340
金钱
1160
HASS币
0
发表于 2023-2-8 21:16:27 | 显示全部楼层
老哥用这种方式不能行吗

ESP-IDF framework
This is an alternative base framework for ESP32 chips, and recommended for variants of the ESP32 like ESP32S2, ESP32S3, ESP32C3 and single-core ESP32 chips.

# Example configuration entry
esp32:
  board: esp32-c3-devkitm-1
  framework:
    type: esp-idf
    version: recommended
    # Custom sdkconfig options
    sdkconfig_options:
      CONFIG_COMPILER_OPTIMIZATION_SIZE: y
    # Advanced tweaking options
    advanced:
      ignore_efuse_mac_crc: false
回复

使用道具 举报

80

主题

388

帖子

1672

积分

金牌会员

Rank: 6Rank: 6

积分
1672
金钱
1284
HASS币
0
 楼主| 发表于 2023-2-9 09:52:34 | 显示全部楼层
本帖最后由 ciasdmxhxjjpd@c 于 2023-2-9 09:54 编辑
Awe7 发表于 2023-2-8 21:16
老哥用这种方式不能行吗

ESP-IDF framework

这个框架没有web ota。升级比较麻烦。
https://github.com/mmakaay/espho ... 09#event-8448715652
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-19 18:23 , Processed in 0.057001 second(s), 26 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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