使用esp32c3,ESP-IDF 5.2 CMD编译烧录esp-rainmaker程序,使用ESP-IDF CMD在idf.py set-target esp32c3时就出现错误,日志如下(缺少network_provisioning组件):
PS D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\examples\led_light> idf.py set-target esp32c3
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory 'D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\examples\led_light\build' not found. Nothing to clean.
(省略--)
CMake Error at D:/Espressif/frameworks/esp-idf-v5.2.1/tools/cmake/build.cmake:544 (message):
ERROR: Because no versions of espressif/esp_rainmaker match >=1.0.0,<1.4.0
|| >1.4.0,<2.0.0
and espressif/esp_rainmaker (1.4.0) depends on espressif/network_provisioning (~1.0.0), espressif/esp_rainmaker (>=1.0.0,<2.0.0) requires espressif/network_provisioning (~1.0.0).
So, because no versions of espressif/network_provisioning match ~1.0.0
and project depends on espressif/esp_rainmaker (~=1.0), version solving failed.
Call Stack (most recent call first):
D:/Espressif/frameworks/esp-idf-v5.2.1/tools/cmake/project.cmake:605 (idf_build_process)
CMakeLists.txt:16 (project)
..-- Configuring incomplete, errors occurred!
See also "D:/Espressif/frameworks/esp-idf-v5.2.1/esp-rainmaker-latest/examples/led_light/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1, output of the command is in the D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\examples\led_light\build\log\idf_py_stderr_output_26836 and D:\Espressif\frameworks\esp-idf-v5.2.1\esp-rainmaker-latest\examples\led_light\build\log\idf_py_stdout_output_26836
在编译esp-idf书上相关程序时都没有问题,有关esp-rainmaker就都出现同样缺少该组件的问题。
已经更新esp-rainmaker组件和esp-IDF至最新版本。
在使用git clone https://github.com/espressif/esp-networ ... ioning.git components/esp-network-provisioning 口令手动克隆组件时因GitHub远程服务器响应:自2021年8月13日起,已移除对密码认证的支持,不能在ESP-IDF CMD窗口内直接克隆,查看Github文档也没能找到解决方法。
自行前往Github官网下载组件,在rainmaker的额外组件idf-extra-components-dd2ce03b472504f384fa228ca2938230f2b5bfc2内有network_provisioning组件,复制进文件夹内也未能解决(不知道如何匹配)
收到esp32c3后,根据指示实现过用ESP Rainmaker app控制灯相关状态的功能,实现其他功能后,再依照书籍内步骤(第九章)重新实现rainmaker时就不行了,到书内p218 signup rainmaker可实现,p225用idf.py编译led_light工程时,逐渐发现了上述问题,一直没能解决,求解答。
使用esp32c3编译烧录esp-rainmaker程序时出现缺少network_provisioning组件的问题
Moderator: ESP_ZT
-
- Posts: 4
- Joined: Wed Aug 14, 2024 1:31 am
-
- Posts: 200
- Joined: Sun Jun 23, 2024 6:18 pm
Re: 使用esp32c3编译烧录esp-rainmaker程序时出现缺少network_provisioning组件的问题
确保您的网络配置正确,特别是在国内,可能需要配置代理以避免下载过程中的网络问题。
-
- Posts: 4
- Joined: Wed Aug 14, 2024 1:31 am
Re: 使用esp32c3编译烧录esp-rainmaker程序时出现缺少network_provisioning组件的问题
网应该是没有问题的,在CMD界面内下载时出现日志:
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/get-started/get ... https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/espressif/esp-networ ... oning.git/'
不支持使用密码登录,但是口令git clone https://github.com/espressif/esp-networ ... ioning.git components/esp-network-provisioning也只出现了密码登录
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/get-started/get ... https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/espressif/esp-networ ... oning.git/'
不支持使用密码登录,但是口令git clone https://github.com/espressif/esp-networ ... ioning.git components/esp-network-provisioning也只出现了密码登录
Who is online
Users browsing this forum: No registered users and 17 guests