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

相关推荐
暗恋 懒羊羊5 分钟前
Linux 生产者消费者模型
linux·开发语言·ubuntu
GFCGUO6 小时前
Ubuntu18.04配置OpenPCDet并运行demo过程记录
linux·python·学习·ubuntu·conda·pip
GFCGUO11 小时前
Ubuntu18.04安装cuda11.1(出现c++版本问题)
linux·运维·ubuntu
‍。。。11 小时前
Ubuntu 系统崩了,如何把数据拷下来
数据库·ubuntu·php
一叶知秋@qqy1 天前
Kubernetes-环境篇-02-ubuntu开发环境搭建
ubuntu·容器·kubernetes
吴恩达亲传弟子1 天前
【Bug】解决 Ubuntu 中 “error: Unable to Find Python3 Executable” 错误
linux·ubuntu·bug
漫无目的行走的月亮2 天前
Ubuntu下安装Zookeeper集群
linux·ubuntu·zookeeper
AlenTech2 天前
Ubuntu 安装 Docker Compose
ubuntu·docker·eureka
AlenTech2 天前
解决Ubuntu无法找到python3.7的包的问题 E: Couldn‘t find any package by glob ‘python3.7‘
linux·python·ubuntu
music score2 天前
Ubuntu编译fftw3
linux·ubuntu·postgresql