【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

相关推荐
十八岁牛爷爷2 分钟前
Linux 进程与进程状态・三层级深度解析
linux·运维·服务器
不会就选b36 分钟前
linux之进程管理(二)--替换
linux·运维·服务器
倔强的石头10641 分钟前
【Linux指南】动静态库系列(二):从源码复用到目标文件复用:为什么需要把 .o 打包成库
linux·运维·服务器
HLC++13 小时前
Linux的进程间通信
android·linux·服务器
华清远见IT开放实验室14 小时前
实验室建设案例 | 石家庄科技信息职业学院嵌入式实验室——从底层硬件到系统应用,一所应用型高校的嵌入式人才培养这样落地
linux·arm开发·stm32·嵌入式硬件·高校·实验室建设
GeekArch17 小时前
第24讲:Vibe模式代码风格控制——适配Keil/STM32工程规范
人工智能·stm32·单片机·嵌入式硬件·mcu·决策树·ai编程
groundhappy17 小时前
idalib安装和codex ida-mcp配置
linux·开发语言·python
通信小小昕17 小时前
Ubuntu 26.04 中文输入法安装
linux·运维·ubuntu
Freedom_my18 小时前
STM32项目3
stm32·单片机·嵌入式硬件