• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

MAC版本的Arduino+ESP32环境安装

武飞扬头像
创客阿博
帮助2

Arduino-IDE安装

  1. 官网下载安装Arduino-IDE
    Arduino-IDE官方网站
    在这里选择macOS,自行选择intel和m系列芯片。
    学新通
  2. 偏好设置
    在这里设置中文,Preferrence
    学新通
    在这里设置开发文件目录:
    /Users/shineber/Documents/Arduino
    设置开发板管理器地址:
https://dl.espressif.com/dl/package_esp32_index.json
https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json

学新通

安装ESP32软件包(共2种方法)

  • 法一:在Arduino内部安装
    文件>首选项>附加开发板管理器网址加入Arduino core for esp32网站:
https://dl.espressif.cn/dl/package_esp32_index.json

工具>开发板>开发板管理器 中搜索并下载esp32开发板数据包(速度较慢,科学上网可能无用,可以先安装失败之后再次安装即可)

mkdir -p ~/Documents/Arduino/hardware/espressif &&\
cd ~/Documents/Arduino/hardware/espressif &&\
git clone https://github.com/espressif/arduino-esp32.git esp32 &&\
cd esp32/tools &&\
python get.py

如果遇到如下问题,解决方式为:
1.IOError: [Errno socket error] [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590)

使用 python3 代替python

2.xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

使用 xcode-select --install

!!!如果遇到终端指令下载慢的问题,可以自己从github上面下载esp32环境包:https://github.com/espressif/arduino-esp32
⚠️注意目录要放在如下位置:/Users/shineber/Documents/Arduino/hardware/espressif/esp32

[离线下载方法参考链接]https://blog.csdn.net/andylauren/article/details/122147444?ops_request_misc=&request_id=&biz_id=102&utm_term=arduino esp32&utm_medium=distribute.pc_search_result.none-task-blog-2allso百度web~default-3-122147444.142v87control_2,239v2insert_chatg

常用ESP32开发资源

  1. bilnker官网:https://diandeng.tech/doc/auth
  2. Arduino下载官网:https://www.arduino.cc/en/software
  3. CSDN开源网站:https://www.csdn.net/
  4. GitHub:https://github.com/

MAC编译出现问题解决方案

  1. 可能是没有安装python下载安装python即可
  2. 安装了python,修改如下文件:~/Library/Arduino15/packages/esp32/hardware/esp32/*/platform.txt
    python修改为python3,并运行如下指令:
sudo ln -s which python3 /usr/local/bin/python
or
sudo ln -s /usr/bin/python3 /usr/local/bin/python
  1. 修改下载波特率为115200,在工具>Upload Speed修改为115200

这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /boutique/detail/tanhicbjbi
系列文章
更多 icon
同类精品
更多 icon
继续加载