ESP8266_RTOS_SDK下载程序make flash的时报错
ESP8266_RTOS_SDKmake flash的时报错
(1)串口权限不足
serial.serialutil.SerialException: [Errno 13] could not open port /dev/ttyUSB0: [Errno 13] Permission denied: ‘/dev/ttyUSB0’
/home/book/esp8266/ESP8266_RTOS_SDK/components/esptool_py/Makefile.projbuild:75: recipe for target ‘flash’ failed
make: *** [flash] Error 1
解决办法:
sudo usermod -a -G dialout (你自己的用户名)
如:sudo usermod -a -G dialout Jocelin47
sudo chmod 777 /dev/ttyUSB0
(2)A fatal error occurred: Invalid head of packet
A fatal error occurred: Invalid head of packet (0xE0)
/home/book/esp8266/ESP8266_RTOS_SDK/components/esptool_py/Makefile.projbuild:75: recipe for target ‘flash’ failed
make: *** [flash] Error 2
进入make menuconfig
波特率改成115200,再make flash就下载进去了