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, 然后就成功了, 没了

相关推荐
巴渝小禹3 小时前
【Ubuntu】虚拟机 Ubuntu 挂载 宿主机 Windows文件夹
linux·ubuntu
biubiubiu070615 小时前
Ubuntu学习笔记
笔记·学习·ubuntu
Eternal-Student18 小时前
【ubuntu】在Linux系统上安装Microsoft Edge浏览器
linux·ubuntu·microsoft
肩上风骋1 天前
ubuntu系统使用ifconfig查询网络IP的时候,只能查到本地回环地址,无其他网络接口IP
网络·ubuntu·只能查到本地回环地址
星际工程师1 天前
Windows10安装配置wsl+Ubuntu20.04环境
ubuntu
奔跑吧 android1 天前
【Docker】【2.docker 安装 ubuntu 桌面版】
ubuntu·docker·容器
人工智能的苟富贵1 天前
Rust 异步编程实践:用 Tokio 实现一个迷你 HTTP 服务
ubuntu·http·rust
爱尔兰的楠小楠1 天前
Windows上使用WSL2创建Ubuntu系统,实现无缝高效开发的体验
linux·windows·ubuntu
Fluency-111 天前
ubuntu中ssh连接root用户
linux·ubuntu·ssh
0wioiw01 天前
Ubuntu(③vsftpd)
linux·服务器·ubuntu