ESP32学习笔记(2)

您所在的位置:网站首页 esp32烧录接线 ESP32学习笔记(2)

ESP32学习笔记(2)

2023-03-26 22:30| 来源: 网络整理| 查看: 265

本文共 1664 字,大约阅读时间需要 5 分钟。

基础环境配置参考:

一、配置编译链终端路径 

1、文件——首选项——设置——终端——在settings.json中编辑

2、settings.json中如下配置:

{"terminal.integrated.shell.windows": "D:\\ESP32\\msys32\\msys2_shell.cmd", "terminal.integrated.shellArgs.windows": ["-defterm", "-mingw32", "-no-start", "-here"],"workbench.iconTheme": "vscode-icons","c-cpp-flylint.clang.enable": false,"c-cpp-flylint.flexelint.enable": false,"c-cpp-flylint.cppcheck.enable": false,"vsicons.dontShowNewVersionMessage": true,"terminal.integrated.automationShell.linux": "","terminal.integrated.env.windows": {}}

 其中 "D:\\ESP32\\msys32\\msys2_shell.cmd" 为编译链的路径,根据自己的路径替换

3、配置完成后在终端框就能打开 mingw32.exe程序

4、在对应的app工程目录右键可以在终端打开该工程,如下要编译 hello_world 工程:

 

二、make参数配置 make menuconfig

遇到的问题解决:

 

三、编译和烧录

1、配置烧录的参数:

make flash

2、烧录成功:

Flashing binaries to serial port /dev/COM2 (app at offset 0x10000)...esptool.py v2.8-devSerial port D:/ESP32/msys32/dev/COM2Connecting....Chip is ESP32D0WDQ6 (revision 1)Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme NoneCrystal is 40MHzMAC: 3c:71:bf:8c:38:d0Uploading stub...Running stub...Stub running...Configuring flash size...Auto-detected Flash size: 8MBFlash params set to 0x0230Compressed 24672 bytes to 14758...Wrote 24672 bytes (14758 compressed) at 0x00001000 in 1.3 seconds (effective 150.7 kbit/s)...Hash of data verified.Compressed 150192 bytes to 72111...Wrote 150192 bytes (72111 compressed) at 0x00010000 in 6.4 seconds (effective 187.5 kbit/s)...Hash of data verified.Compressed 3072 bytes to 103...Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.0 seconds (effective 1067.0 kbit/s)...Hash of data verified. Leaving...Hard resetting via RTS pin...

 

遇到的问题解决:

转载地址:https://blog.csdn.net/p1279030826/article/details/111154178 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3