ubuntu, esp-idf, arduino

1, 把 esp-idf 文件夹拷贝到 ubuntu, 不是拷贝 zip。 这样做是为了在 ubuntu 里能检测到 git

2, 把 esp-idf 里的 hello-world 拷贝出来

3, 在 hello-world 里建立文件夹 components, 把 arduino 文件夹拷贝进去

esp-idf 和 arduino文件夹版本需要匹配

4, esp-idf 文件夹里

4.1 需要安装系统工具

sudo apt-get install git wget flex bison gperf python3 python3-pip python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0

4.2 第一步中已经拷贝了 esp-idf, 这样的好处是无需再用 git clone 重新下载了

4.3 然后需要安装 esp-idf 相应的工具,通过 ./install 这个脚本来下载安装

要设置选择用 espressif 的服务器,这样下载速度会很快, 一定要设置

Standard Toolchain Setup for Linux and macOS - ESP32 - --- ESP-IDF Programming Guide latest documentation

cd ~/esp/esp-idf

export IDF_GITHUB_ASSETS="dl.espressif.com/github_assets"

./install.sh

4.4 Customizing the Tools Installation Path

4.5 设置 alias, 方便使用

5, 去 hello-world 文件夹直接编译就可以了

会遇到频率不是 1000 的错误

可以临时把 cmakelist.txt 里 频率改成 100

Workaround for Compile Error "esp32-arduino requires CONFIG_FREERTOS_HZ=1000 (currently 100)" · espressif/arduino-esp32 · Discussion #8375 · GitHub

5, 然后就成功了, 没了

相关推荐
upp30 分钟前
【bug】Error: /undefinedfilename in (/tmp/ocrmypdf.io.9xfn1e3b/origin.pdf)
ubuntu·pdf·bug·ghostscript
行云流水剑2 小时前
【学习记录】在 Ubuntu 中将新硬盘挂载到 /home 目录的完整指南
服务器·学习·ubuntu
藥瓿亭2 小时前
K8S认证|CKS题库+答案| 7. Dockerfile 检测
运维·ubuntu·docker·云原生·容器·kubernetes·cks
xiangyong584 小时前
ubuntu系统文件误删(/lib/x86_64-linux-gnu/libc.so.6)修复方案 [成功解决]
linux·ubuntu·gnu
地衣君6 小时前
Ubuntu 配置使用 zsh + 插件配置 + oh-my-zsh 美化过程
linux·运维·ubuntu
小智学长 | 嵌入式9 小时前
SOC-ESP32S3部分:36-适配自己的板卡
单片机·物联网·esp32
草上爬14 小时前
OpenWrt:使用ALSA实现边录边播
ubuntu·openwrt·record·alsa·play
藥瓿亭20 小时前
K8S认证|CKS题库+答案| 6. 创建 Secret
运维·ubuntu·docker·云原生·容器·kubernetes·cks
舰长11521 小时前
Ubuntu挂载本地镜像源(像CentOS 一样挂载本地镜像源)
linux·ubuntu·centos
Theodore_102221 小时前
大数据(2) 大数据处理架构Hadoop
大数据·服务器·hadoop·分布式·ubuntu·架构