1.vscode 搭建esp idf环境,网上有很多教程,按教程走即可
2.创建项目:
F1 -> SP-IDF: Show Examples Projects->选择hello_world->Create project using example blink->选择项目路径
上述完成后会自动打开创建的项目。
3.选择开发板和串口:
F1 ->ESP-IDF: Set Espressif device target (或者在vscode左下角选择)
(可以自己编辑sdk设置:F1 ->SDK Configuration editor)
F1 ->ESP-IDF: Select port to use
4.编译项目:
F1 ->ESP-IDF: Build your project(或者vscode底部的闪电标志)
5.查看项目大小:
F1 ->Size analysis of the binaries
6.选择烧录闪存模式(UART):
F1 ->ESP-IDF: Select Flash Method
可选择UART JTag DFU
注意:烧录前要将开发板调到写模式,一般是按住boot,再按下RST,具体要看板子型号
7.烧录:
F1 ->ESP-IDF: Flash (UART) your project
8.查看监视设备:
F1 ->ESP-IDF: Monitor your device
参考链接:
esp-who:https://github.com/espressif/esp-who/blob/master/README_CN.md
esp-idf: https://github.com/espressif/vscode-esp-idf-extension/blob/master/docs/tutorial/install.md
espressif:https://docs.espressif.com/projects/esp-idf/zh_CN/v5.1.1/esp32/get-started/index.html
vscode搭建esp-idf环境:https://github.com/espressif/vscode-esp-idf-extension/blob/master/docs/tutorial/basic_use.md
vscode烧录esp32开发板:https://github.com/espressif/esp-who/blob/master/docs/zh_CN/get-started/ESP-EYE_Getting_Started_Guide.md
esp EYE烧录:https://www.elecfans.com/d/2039543.html