【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

相关推荐
半杯咖啡半行码1 小时前
STM32之ARM通用汇编指令详解:从指令格式到寻址方式
汇编·arm开发·stm32
拂拉氏2 小时前
【知识讲解】 Linux之动静态库的了解
linux·运维·服务器·动静态库
创界工坊工作室2 小时前
22-基于STM32的汽车防盗系统设计
stm32·单片机·嵌入式硬件·proteus
Fcy6482 小时前
Linux下 五种IO模型的认识与⾮阻塞IO的实现
linux·服务器·io
Mikko73 小时前
Linux 重启后日志没了?进程被 OOM 杀了去哪看?logrotate 之后日志还往旧文件写?三台真机实测日志与性能排查
linux·运维·centos
书生执笔画浮沉3 小时前
分享一个开源小工具CAdapt
linux·c·gnu·glibc·kernel·升级·灵感
mounter6253 小时前
Linux 内核热升级(Live Update)技术详解:PCI、VFIO 与 IOMMU 子系统的演进与实战解析引言
linux·linux kernel·kernel·iommu·vfio
砚凝霜4 小时前
【软考信息安全】第十九章 Unix/Linux安全分析与防护
linux·安全·unix
雨田言炎4 小时前
STM32之RCC系统时钟控制(芯片的心脏控制器)
stm32·单片机·嵌入式硬件
creator_Li4 小时前
Linux 的 Page Cache
linux·page cache