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

相关推荐
Galeoto1 小时前
how to setup k3s on an offline ubuntu
linux·运维·ubuntu
小猪写代码5 小时前
Ubuntu C编程 (make工具和Makefile的引用)
linux·运维·ubuntu
__如风__11 小时前
内网环境下ubuntu 20.04搭建深度学习环境总结
linux·服务器·ubuntu
HetFrame1 天前
John the Ripper jumbo + HashCat 破解压缩密码 ubuntu amd GPU
linux·ubuntu·amd·密码破解·john·压缩密码·hashcat
saynaihe1 天前
关于Ubuntu的 update造成的内核升级
linux·运维·服务器·ubuntu·devops
朱自清的诗.1 天前
使用python脚本储存mosquito服务器数据到sqlite
python·单片机·sqlite·esp32
小MarkK1 天前
[Ubuntu][mount]ubuntu电脑挂载新硬盘
linux·ubuntu·电脑·mount·硬盘挂载
SabreWulf20202 天前
Ubuntu 20.04手动安装.NET 8 SDK
linux·ubuntu·avalonia·.net8
不是吧这都有重名2 天前
为什么ubuntu大文件拷贝会先快后慢?
linux·运维·ubuntu
DONG9992 天前
ubuntu 22 安装轻量级桌面Xfce并使用xrdp远程桌面连接
linux·运维·ubuntu