NXP MCU 技术william hill官网
直播中

李秀珍

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

使用Eclipse构建示例代码“Hello_World”和“Blink”时出错的原因?

我刚刚收到 ESP-32-S2 开发套件,我正在尝试构建和运行示例项目“Hello_World”和“blink”。我能够设置使用 blink.c 的“眨眼”项目,但在经过 660 个步骤后,它失败了,如下所示。
[663/966] cmd.exe /C "cd /DC:\Users\paul\eclipse-workspace\blink1\build\esp-idf\mbedtls && python C:/Users/Public/Desktop/esp-idf-2/ components/mbedtls/esp_crt_bundle/gen_crt_bundle.py --input C:/Users/Public/Desktop/esp-idf-2/components/mbedtls/esp_crt_bundle/cacrt_all.pem -q"

失败:esp-idf/mbedtls/x509_crt_bundle

cmd.exe /C "cd /DC:\Users\paul\eclipse-workspace\blink1\build\esp-idf\mbedtls && python C:/Users/Public/Desktop/esp-idf-2/components/mbedtls/esp_crt_bundle /gen_crt_bundle.py --input C:/Users/Public/Desktop/esp-idf-2/components/mbedtls/esp_crt_bundle/cacrt_all.pem -q"

gen_crt_bundle.py: C:/Users/Public/Desktop/ 中的证书无效esp-idf-2/components/mbedtls/esp_crt_bundle/cacrt_all.pem

无效的证书

忍者:构建停止:子命令失败。

构建完成(0 个错误,0 个警告):C:\Users\paul\eclipse-workspace\blink1\build

构建项目的总时间:583,249 毫秒

我不熟悉 Eclipse,我也是 ESP32 模块的新手,所以我可能做错了什么。当我安装 IDE 时,它让我可以选择命令行、power shell(已选中)和 Eclipse。把其他的都取消勾选了Eclipse,觉得可能好用点,但是好像很难,花了差不多十分钟663步就失败了,看安装日志,esp插件没有date of签署证书。
当我尝试“hello_world”项目时,它抛出异常,并且还要求一个COM端口,但我不知道在哪里添加它。

该模块枚举为带有 CP2103 USART 桥接器的 COM3。

================================================ =============

[edit] 我几天前加入并发布了这个,但我的帖子似乎停滞不前,或者消失了。

从那时起,我就可以使用 TeraTerm 连接到 S2 开发板,它会发送一些文本并运行一个程序,使 RGB LED 以一系列颜色闪烁。我暂时放弃了 Eclipse,并将尝试使用用户指南中显示的命令行和 Power Shell 界面。

更多回帖

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