【esp-idf 指令】

复制代码
ls /dev/tty*
sudo chmod 777 /dev/ttyACM0
sudo usermod -aG dialout $usre
idf.py -p /dev/ttyACM0  flash monitor

. $HOME/esp/esp-idf/export.sh
	. $HOME/esp/6.0-esp-idf/esp-idf/export.sh
	. ~/esp/esp-idf/export.sh

cp -r ~/esp/esp-idf/examples/provisioning/wifi_prov_mgr .
idf.py set-target esp32s3
idf.py menuconfig
idf.py build

https://gitee.com/lizhengyizhexue/precision-cleaning-machine.git

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

git clone https://gitee.com

复制代码
user@user-virtual-machine:~/esp/esp-gitee-tools$ ls
docs        jihu-mirror.sh  README_cn.md
install.sh  LICENSE         submodule-update.sh
user@user-virtual-machine:~/esp/esp-gitee-tools$ ./jihu-mirror.sh 
Usage:
	Set the mirror:   ./jihu-mirror.sh set
	Unset the mirror: ./jihu-mirror.sh unset

cd ~/esp/esp-gitee-tools/

./jihu-mirror.sh 执行工具内的脚本 输入./ji之后按Tab键可以快速输入命令

./jihu-mirror.sh

./jihu-mirror.sh set

cd ~/esp

git clone --recursive https://github.com/espressif/esp-idf.git 拉取IDF 最新版

git clone -b v5.5 --recursive https://github.com/espressif/esp-idf.git

cd ~/esp/esp-idf

git checkout v5.5 切换IDF版本

cd ~/esp/esp-idf

git submodule update --init --recursive 把相应的子模块切换到对应的版本上

./esp-gitee-tools/submodule-update.sh

cd ~/esp/esp-idf

sudo apt install python3.9 升级python到3.9

sudo apt install python3.9-venv 配置python3.9 虚拟环境

.../esp-gitee-tools/install.sh 在tools目录下执行脚本install 安装对应不同芯片的的编译工具

cd ~/esp

cp -r ~/esp/esp-idf/examples/get-started/hello_world/ . //拷贝 hello_world 文件夹到当前目录

cp -r $IDF_PATH/examples/get-started/hello_world . //拷贝

cp -r ~/esp/esp-idf/examples/protocols/http_server/simple/ .

cp -rfd ~/esp/esp-idf/examples/protocols/http_server/simple/ http_server_simple

//拷贝 simple 文件夹到当前目录,文件夹名改为 http_server_simple

复制代码
. $HOME/esp/esp-idf/export.sh        
设置环境变量,重启失效。   //切换 此安装目录的IDF版本
. $HOME/esp/6.0-esp-idf/esp-idf/export.sh

ls /dev/tty*

sudo chmod 777 /dev/ttyACM0

sudo usermod -aG dialout $USER

reboot

idf.py -p /dev/ttyACM0 flash

idf.py -p /dev/ttyACM0 flash monitor

相关推荐
輝太くん6 分钟前
haproxy
linux
俩个逗号。。15 分钟前
Ubuntu 动画全部消失
linux·ubuntu
liuyao_xianhui18 分钟前
Linux开发工具结尾 _make
linux·运维·服务器·数据结构·哈希算法·宽度优先·1024程序员节
天疆说19 分钟前
在 Ubuntu 22.04 上安装 Ghostty 终端
linux·运维·ubuntu
buhuizhiyuci22 分钟前
熟练使用Linux编译工具(gcc, g++, make, makefile)
linux·运维·服务器
草莓熊Lotso29 分钟前
从 LLM 底层原理到 LangChain 全链路打通:大模型应用开发新征程
linux·运维·服务器·人工智能·langchain
cyber_两只龙宝35 分钟前
【Oracle】Oracle数据库的登录验证
linux·运维·数据库·sql·云原生·oracle
思麟呀39 分钟前
5种IO模型
linux·运维·服务器·c++
mounter62541 分钟前
【内核精进】Linux Kernel 设计模式(一):引用计数与可见性的艺术
linux·设计模式·linux kernel
.千余43 分钟前
【Linux】开发工具2:vim
linux·服务器·开发语言·学习