【ESP32-C3-DevKitM-1】ESP32-C3开发环境搭建
本帖最后由 怀揣少年梦 于 2021-6-28 19:18 编辑<p align="center" style="text-align:center"> </p>
<p align="justify" style="text-indent:24.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:12.0000pt"><span style="font-family:宋体"><font face="宋体">本人是第一次接触</font><font face="宋体">ESP32,只是听说ESP32是一个SOC 芯片,片内集成很多外设,有点类似单片机,但是ESP32-C3能够轻而易举实现物联网。故本人想了解一下,就申请了这次开发板测评。首先来安装开发环境吧。</font></span></span></span></span></span></p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="font-family:Calibri"><span style="font-size:12.0000pt"><span style="font-family:宋体"><font face="宋体">一开始按照官网的入门指南安装。下载离线安装版本。如图所示。</font></span></span></span></span></p>
<p align="justify" style="text-indent:24.0000pt; text-align:justify"></p>
<p> </p>
<p align="justify" style="text-indent:24.0000pt; text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:12.0000pt"><span style="font-family:宋体"><font face="宋体">离线版本的会把所有的工具都下载并安装,属于比较简单的安装。等我完成安装,选择目标芯片时,发现没有</font><font face="宋体">ESP-C3的芯片,我就在论坛上找答案,没有回复,然后在B站上看到有人提到这个问题,说不支持ESP-C3芯片。本来一开始我看官网说可以在原有的基础上升级ESP-IDF,尝试之后还是失败。然后我就尝试在VS code上搭建开发环境,在本论坛上找到一位大神给的详细步骤,单独安装VC studio 2015,Git,Python 3.9.5,vs code 安装好之后还是提示缺乏python 依赖。后我就自己卸载python ,直接从github下载工具包,安装好之后,成功就可以编译了。现在把自己的安装流程写一下,分享给需要的人。</font></span></span></span></span></span></p>
<p> </p>
<p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:12.0000pt"><span style="font-family:宋体"><font face="宋体">1、首先安装VS code,在官网下载即可。这个软件安装简单,一路确定即可。</font></span></span></span></span></span></p>
<p> </p>
<p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:12.0000pt"><span style="font-family:宋体"><font face="宋体">百度链接:</font></span></span></span></span></span></p>
<p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:12.0000pt"><span style="font-family:宋体"><font face="宋体">https://pan.baidu.com/s/1o2olDkDOB1Ia0zfI7eGzpw </font></span></span></span></span></span></p>
<p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:12.0000pt"><span style="font-family:宋体"><font face="宋体">提取码:</font><font face="宋体">5fc8 。</font></span></span></span></span></span></p>
<p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:12.0000pt"><span style="font-family:宋体"><font face="宋体">2、从乐鑫服务器下载v4.3发布版本:</font></span></span></span></span></span></p>
<p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><a href="https://dl.espressif.com/dl/esp-idf/releases/esp-idf-v4.3-beta3.zip"><u><span class="15" style="font-size:12.0000pt"><span style="font-family:宋体"><span style="color:#0000ff"><span style="text-decoration:underline"><span style="text-underline:single">https://dl.espressif.com/dl/esp-idf/releases/esp-idf-v4.3-beta3.zip</span></span></span></span></span></u></a></span></span></span></p>
<p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:12.0000pt"><span style="font-family:宋体"><font face="宋体">或者我的百度链接直接下载链接:</font></span></span></span></span></span></p>
<p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:12.0000pt"><span style="font-family:宋体"><font face="宋体">https://pan.baidu.com/s/1rf7vfpe2WjAIuYTQ3MZDGw </font></span></span></span></span></span></p>
<p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:12.0000pt"><span style="font-family:宋体"><font face="宋体">提取码:</font><font face="宋体">1e6t 。</font></span></span></span></span></span></p>
<p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:12.0000pt"><span style="font-family:宋体"><font face="宋体">下载后解压,不能有中文路径。</font></span></span></span></span></span></p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:12.0000pt"><span style="font-family:宋体"><font face="宋体">3.再下载</font><font face="宋体">ESP-Tool的所有安装包。</font></span></span></span></span></span></p>
<p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:12.0000pt"><span style="font-family:宋体"><font face="宋体">链接同上,在</font><font face="宋体">ESP-TOOL里面。</font></span></span></span></span></span></p>
<p align="justify" style="text-align:justify"></p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:12.0000pt"><span style="font-family:宋体"><font face="宋体">4.打开</font><font face="宋体">VS code ,</font></span></span><span style="font-size:12.0000pt"><span style="font-family:宋体"><font face="宋体">下载</font>Espressif IDF插件</span></span><span style="font-size:12.0000pt"><span style="font-family:宋体"><font face="宋体">。</font></span></span></span></span></span></p>
<p> </p>
<p align="justify" style="text-align:justify"></p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:12.0000pt"><span style="font-family:宋体"><font face="宋体">5.下载好插件后,重新打开</font><font face="宋体">VS code 软件自动跳转到ESP-setup Configuration页。在select ESP-IDF Version里面选择你刚解压的路径,然后点击install即可.</font></span></span></span></span></span></p>
<p> </p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:12.0000pt"><span style="font-family:宋体"><font face="宋体">6.安装完上面,然后跳转安装install ESPtool。选择你的路径安装。这个时候会下载断断续续的。</font></span></span></span></span></span></p>
<p style="text-align:justify"></p>
<p> </p>
<p style="text-align:justify">有时候上面下载不成功,然后又重新开始安装,一般都是网络问题。</p>
<p style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:12.0000pt"><span style="font-family:宋体"><font face="宋体">可以这样操作,把下载好的ESP tool工具复制到.espressif\dist路径下,然后就等待安装即可。然后从5步开始</font></span></span></span></span></span></p>
<p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:12.0000pt"><span style="font-family:宋体"><font face="宋体">安装完会显示如下界面。</font></span></span></span></span></span></p>
<p align="justify" style="text-align:justify"></p>
<p> </p>
<p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:12.0000pt"><span style="font-family:宋体"><font face="宋体">7、最后添加hello文件夹,看是否能编译通过,编译通过说明安装成功。</font></span></span></span></span></span></p>
<p align="justify" style="text-align:justify">当显示成功编译时,就说明成功安装。注意,编译时间比较长。</p>
<p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:12.0000pt"><span style="font-family:宋体"><font face="宋体">最后附上论坛大神的安装链接</font></span></span></span></span></span></p>
<p align="justify" style="text-align:justify"><span style="font-size:10.5pt"><span style="text-justify:inter-ideograph"><span style="font-family:Calibri"><span style="font-size:12.0000pt"><span style="font-family:宋体">https://bbs.eeworld.com.cn/thread-1167207-1-1.html</span></span></span></span></span></p>
<p align="justify" style="text-align:justify"><font face="宋体"><span style="font-size: 16px;">有问题的可以私信我,交流一下。</span></font></p>
<p>创建工程这方面的流程如果能讲的再具体点就好了</p>
littleshrimp 发表于 2021-6-29 11:49
创建工程这方面的流程如果能讲的再具体点就好了
<p>这篇主要讲解搭建开发,下一篇就会讲解创建工程。多谢提建议</p>
怀揣少年梦 发表于 2021-6-30 08:14
这篇主要讲解搭建开发,下一篇就会讲解创建工程。多谢提建议
<p>这样啊 期待!</p> <p>下载idf工具不支持断点续传麻烦的很,后面下载工具很容易网络不通,然后选哟重头下载</p>
<p> </p>
dql2016 发表于 2021-6-30 17:20
下载idf工具不支持断点续传麻烦的很,后面下载工具很容易网络不通,然后选哟重头下载
<p>一般这样操作后,经常重头再来,我直接把所需的工具直接从链接下载下来后,再安装,这样就不会重头再来,直接安装即可。</p>
<p>谢谢分享。</p>
<p>楼主辛苦摸索出来的经验分享,很赞。</p>
soso 发表于 2021-7-1 16:08
楼主辛苦摸索出来的经验分享,很赞。
<p>多谢鼓励</p>
页:
[1]