在刚接触esp32时,跟着文档,习惯编译烧写时用:make flash,查看调试信息时用:make monitor
因为只需要写一些demo验证,不需要写太多的具体程序,就需要把其他人已经传到github上的已经编译好的固件进行烧写
就需要直接对固件进行烧写和monitor的方法:
烧写示例:
esptool.py --port /dev/ttyUSB0 -b 115200 write_flash 0x00000 iflash_xiaomi.dev.lx0-2.0.7-0_4MB.bin
https://github.com/espressif/esptool/#readme
二、idf.py监控调试信息
esp32源码目录:~/test_esp32/esp-idf
将demo工程examples/get-started/hello_world复制到~/test_esp32/esp-idf
在~/test_esp32/esp-idf/hello_world里运行
idf.py -p /dev/ttyUSB0 -b 115200 monitor