在linux环境下的ESP8266运行流程
一、在ESP_SDK外部运行一个程序
//将自己工程的路径连接到ESP8266_RTOS_SDK
1:先进入自己的工程路径 cd~esp8266-iot/oled找到path.sh文件(path.sh文件的内容就是运行路径),然后我们在ESP8266_RTOS_SDK中找到export.sh我们把它的路径复制到path.sh文件中写成. /home/xzj/Desktop/ESP8266_RTOS_SDK/export.sh 这种形式
2:. path.sh(注意.后有空格)设置路径
3:idf.py menuconfig(调整DIO,保存) 配置烧录串口
4:sudo chmod 777 /dev/ttyUSB0 设置权限
5:idf.py flash 烧录
6:idf.py monitor 监控
二、在ESP8266_RTOS_SDK内部运行一个程序
1、把一个程序复制到ESP8266_RTOS_SDK
2、cd /ESP8266_RTOS_SDK
.3、/install.sh
.4、 ./export.sh
5、cd example/get-start/hello world]
6、idf.py menuconfig (DIO) (make menuconfig)
7、sudo chmod 777 /dev/ttyUSB0 //获得串口权限
8、idf.py flash (make flash)
9、idf.py monitor (make monitor)//监控可有可无