鹏程万里------esp32 helloword编译和烧录

2024-03-10 11:30

本文主要是介绍鹏程万里------esp32 helloword编译和烧录,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

首先桌面上有一个

然后点击进去后,

到这个helloword的目录下

然后编译

然后烧录


C:\Users\56855\Desktop\esp-idf-5\examples\get-started\hello_world>idf.py -p COM18  flash
Checking Python dependencies...
Python requirements from C:\Users\56855\Desktop\esp-idf-5\requirements.txt are satisfied.
Adding flash's dependency "all" to list of actions
Executing action: all (aliases: build)
Running ninja in directory c:\users\56855\desktop\esp-idf-5\examples\get-started\hello_world\build
Executing "ninja all"...
[0/1] Re-running CMake...
-- mconf-idf version mconf-v4.6.0.0-idf-20190628-win32
-- ccache will be used for faster recompilation
-- Project version: v4.0.1-dirty
-- Building ESP-IDF components for target esp32
-- Could NOT find Perl (missing: PERL_EXECUTABLE)
-- Adding linker script C:/Users/56855/Desktop/esp-idf-5/examples/get-started/hello_world/build/esp-idf/esp32/esp32_out.ld
-- Adding linker script C:/Users/56855/Desktop/esp-idf-5/components/esp32/ld/esp32.project.ld.in
-- Adding linker script C:/Users/56855/Desktop/esp-idf-5/components/esp32/ld/esp32.peripherals.ld
-- Adding linker script C:/Users/56855/Desktop/esp-idf-5/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script C:/Users/56855/Desktop/esp-idf-5/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/Users/56855/Desktop/esp-idf-5/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script C:/Users/56855/Desktop/esp-idf-5/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script C:/Users/56855/Desktop/esp-idf-5/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Components: app_trace app_update asio bootloader bootloader_support bt coap console cxx driver efuse esp-tls esp32 esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_http_client esp_http_server esp_https_ota esp_https_server esp_local_ctrl esp_ringbuf esp_rom esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos heap idf_test jsmn json libsodium log lwip main mbedtls mdns mqtt newlib nghttp nvs_flash openssl partition_table protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter ulp unity vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: C:/Users/56855/Desktop/esp-idf-5/components/app_trace C:/Users/56855/Desktop/esp-idf-5/components/app_update C:/Users/56855/Desktop/esp-idf-5/components/asio C:/Users/56855/Desktop/esp-idf-5/components/bootloader C:/Users/56855/Desktop/esp-idf-5/components/bootloader_support C:/Users/56855/Desktop/esp-idf-5/components/bt C:/Users/56855/Desktop/esp-idf-5/components/coap C:/Users/56855/Desktop/esp-idf-5/components/console C:/Users/56855/Desktop/esp-idf-5/components/cxx C:/Users/56855/Desktop/esp-idf-5/components/driver C:/Users/56855/Desktop/esp-idf-5/components/efuse C:/Users/56855/Desktop/esp-idf-5/components/esp-tls C:/Users/56855/Desktop/esp-idf-5/components/esp32 C:/Users/56855/Desktop/esp-idf-5/components/esp_adc_cal C:/Users/56855/Desktop/esp-idf-5/components/esp_common C:/Users/56855/Desktop/esp-idf-5/components/esp_eth C:/Users/56855/Desktop/esp-idf-5/components/esp_event C:/Users/56855/Desktop/esp-idf-5/components/esp_gdbstub C:/Users/56855/Desktop/esp-idf-5/components/esp_http_client C:/Users/56855/Desktop/esp-idf-5/components/esp_http_server C:/Users/56855/Desktop/esp-idf-5/components/esp_https_ota C:/Users/56855/Desktop/esp-idf-5/components/esp_https_server C:/Users/56855/Desktop/esp-idf-5/components/esp_local_ctrl C:/Users/56855/Desktop/esp-idf-5/components/esp_ringbuf C:/Users/56855/Desktop/esp-idf-5/components/esp_rom C:/Users/56855/Desktop/esp-idf-5/components/esp_websocket_client C:/Users/56855/Desktop/esp-idf-5/components/esp_wifi C:/Users/56855/Desktop/esp-idf-5/components/espcoredump C:/Users/56855/Desktop/esp-idf-5/components/esptool_py C:/Users/56855/Desktop/esp-idf-5/components/expat C:/Users/56855/Desktop/esp-idf-5/components/fatfs C:/Users/56855/Desktop/esp-idf-5/components/freemodbus C:/Users/56855/Desktop/esp-idf-5/components/freertos C:/Users/56855/Desktop/esp-idf-5/components/heap C:/Users/56855/Desktop/esp-idf-5/components/idf_test C:/Users/56855/Desktop/esp-idf-5/components/jsmn C:/Users/56855/Desktop/esp-idf-5/components/json C:/Users/56855/Desktop/esp-idf-5/components/libsodium C:/Users/56855/Desktop/esp-idf-5/components/log C:/Users/56855/Desktop/esp-idf-5/components/lwip C:/Users/56855/Desktop/esp-idf-5/examples/get-started/hello_world/main C:/Users/56855/Desktop/esp-idf-5/components/mbedtls C:/Users/56855/Desktop/esp-idf-5/components/mdns C:/Users/56855/Desktop/esp-idf-5/components/mqtt C:/Users/56855/Desktop/esp-idf-5/components/newlib C:/Users/56855/Desktop/esp-idf-5/components/nghttp C:/Users/56855/Desktop/esp-idf-5/components/nvs_flash C:/Users/56855/Desktop/esp-idf-5/components/openssl C:/Users/56855/Desktop/esp-idf-5/components/partition_table C:/Users/56855/Desktop/esp-idf-5/components/protobuf-c C:/Users/56855/Desktop/esp-idf-5/components/protocomm C:/Users/56855/Desktop/esp-idf-5/components/pthread C:/Users/56855/Desktop/esp-idf-5/components/sdmmc C:/Users/56855/Desktop/esp-idf-5/components/soc C:/Users/56855/Desktop/esp-idf-5/components/spi_flash C:/Users/56855/Desktop/esp-idf-5/components/spiffs C:/Users/56855/Desktop/esp-idf-5/components/tcp_transport C:/Users/56855/Desktop/esp-idf-5/components/tcpip_adapter C:/Users/56855/Desktop/esp-idf-5/components/ulp C:/Users/56855/Desktop/esp-idf-5/components/unity C:/Users/56855/Desktop/esp-idf-5/components/vfs C:/Users/56855/Desktop/esp-idf-5/components/wear_levelling C:/Users/56855/Desktop/esp-idf-5/components/wifi_provisioning C:/Users/56855/Desktop/esp-idf-5/components/wpa_supplicant C:/Users/56855/Desktop/esp-idf-5/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/56855/Desktop/esp-idf-5/examples/get-started/hello_world/build
[1/7] cmd.exe /C "cd /D C:\Users\56855\Desktop\esp-idf-5\examples\get-started\hello_world\bui....exe -E echo *******************************************************************************"
Partition table binary generated. Contents:
*******************************************************************************
# Espressif ESP32 Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,24K,
phy_init,data,phy,0xf000,4K,
factory,app,factory,0x10000,1M,
*******************************************************************************
[4/7] Generating binary image from built executable
esptool.py v2.8
Generated C:/Users/56855/Desktop/esp-idf-5/examples/get-started/hello_world/build/hello-world.bin
[5/7] Performing build step for 'bootloader'
[0/1] Re-running CMake...
-- mconf-idf version mconf-v4.6.0.0-idf-20190628-win32
-- Project version: v4.0.1-dirty
-- Building ESP-IDF components for target esp32
-- Adding linker script C:/Users/56855/Desktop/esp-idf-5/components/esp32/ld/esp32.peripherals.ld
-- Adding linker script C:/Users/56855/Desktop/esp-idf-5/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script C:/Users/56855/Desktop/esp-idf-5/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script C:/Users/56855/Desktop/esp-idf-5/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script C:/Users/56855/Desktop/esp-idf-5/components/bootloader/subproject/main/esp32.bootloader.ld
-- Adding linker script C:/Users/56855/Desktop/esp-idf-5/components/bootloader/subproject/main/esp32.bootloader.rom.ld
-- Components: bootloader bootloader_support efuse esp32 esp_common esp_rom esptool_py log main micro-ecc partition_table soc spi_flash xtensa
-- Component paths: C:/Users/56855/Desktop/esp-idf-5/components/bootloader C:/Users/56855/Desktop/esp-idf-5/components/bootloader_support C:/Users/56855/Desktop/esp-idf-5/components/efuse C:/Users/56855/Desktop/esp-idf-5/components/esp32 C:/Users/56855/Desktop/esp-idf-5/components/esp_common C:/Users/56855/Desktop/esp-idf-5/components/esp_rom C:/Users/56855/Desktop/esp-idf-5/components/esptool_py C:/Users/56855/Desktop/esp-idf-5/components/log C:/Users/56855/Desktop/esp-idf-5/components/bootloader/subproject/main C:/Users/56855/Desktop/esp-idf-5/components/bootloader/subproject/components/micro-ecc C:/Users/56855/Desktop/esp-idf-5/components/partition_table C:/Users/56855/Desktop/esp-idf-5/components/soc C:/Users/56855/Desktop/esp-idf-5/components/spi_flash C:/Users/56855/Desktop/esp-idf-5/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/56855/Desktop/esp-idf-5/examples/get-started/hello_world/build/bootloader
ninja: no work to do.
Executing action: flash
Running esptool.py in directory c:\users\56855\desktop\esp-idf-5\examples\get-started\hello_world\build
Executing "D:\ESP-IDF\.espressif\python_env\idf4.0_py3.6_env\Scripts\python.exe C:\Users\56855\Desktop\esp-idf-5\components/esptool_py/esptool/esptool.py -p COM18 -b 460800 --before default_reset --after hard_reset write_flash @flash_project_args"...
esptool.py -p COM18 -b 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x10000 hello-world.bin
esptool.py v2.8
Serial port COM18
Connecting....
Detecting chip type... ESP32
Chip is ESP32D0WDQ5 (revision 1)
Features: WiFi, BT, Single Core, Coding Scheme None
Crystal is 40MHz
MAC: 24:0a:c4:85:cd:d0
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Compressed 3072 bytes to 103...
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.0 seconds (effective 2240.6 kbit/s)...
Hash of data verified.
Compressed 25392 bytes to 14962...
Wrote 25392 bytes (14962 compressed) at 0x00001000 in 0.3 seconds (effective 596.8 kbit/s)...
Hash of data verified.
Compressed 147936 bytes to 76863...
Wrote 147936 bytes (76863 compressed) at 0x00010000 in 1.7 seconds (effective 677.4 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
Done

烧录后看idf.py -p COM18 monitor发现出错了,提示说如果您使用的是 ESP32-DevKitC(板载 ESP32-SOLO-1 模组),请在烧写示例程序前,前往 menuconfig 中使能单核模式(CONFIG_FREERTOS_UNICORE)。

于是去

idf.py menuconfig搜这个CONFIG_FREERTOS_UNICORE

然后到

去选中这个only on first core,按下空格选中,如果取消就再按空格键

然后编译后烧录即可

解锁了esp32的helloword

 

 

这篇关于鹏程万里------esp32 helloword编译和烧录的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/794099

相关文章

maven 编译构建可以执行的jar包

💝💝💝欢迎莅临我的博客,很高兴能够在这里和您见面!希望您在这里可以感受到一份轻松愉快的氛围,不仅可以获得有趣的内容和知识,也可以畅所欲言、分享您的想法和见解。 推荐:「stormsha的主页」👈,「stormsha的知识库」👈持续学习,不断总结,共同进步,为了踏实,做好当下事儿~ 专栏导航 Python系列: Python面试题合集,剑指大厂Git系列: Git操作技巧GO

Windows环境利用VS2022编译 libvpx 源码教程

libvpx libvpx 是一个开源的视频编码库,由 WebM 项目开发和维护,专门用于 VP8 和 VP9 视频编码格式的编解码处理。它支持高质量的视频压缩,广泛应用于视频会议、在线教育、视频直播服务等多种场景中。libvpx 的特点包括跨平台兼容性、硬件加速支持以及灵活的接口设计,使其可以轻松集成到各种应用程序中。 libvpx 的安装和配置过程相对简单,用户可以从官方网站下载源代码

Golang test编译使用

创建文件my_test.go package testsimport "testing"func TestMy(t *testing.T) {t.Log("TestMy")} 通常用法: $ go test -v -run TestMy my_test.go=== RUN TestMyTestMy: my_test.go:6: TestMy--- PASS: TestMy (0.

安卓玩机工具------小米工具箱扩展工具 小米机型功能拓展

小米工具箱扩展版                     小米工具箱扩展版 iO_Box_Mi_Ext是由@晨钟酱开发的一款适用于小米(MIUI)、多亲(2、2Pro)、多看(多看电纸书)的多功能工具箱。该工具所有功能均可以免root实现,使用前,请打开开发者选项中的“USB调试”  功能特点 【小米工具箱】 1:冻结MIUI全家桶,隐藏状态栏图标,修改下拉通知栏图块数量;冻结

C++/《C/C++程序编译流程》

程序的基本流程如图:   1.预处理        预处理相当于根据预处理指令组装新的C/C++程序。经过预处理,会产生一个没有宏定义,没有条件编译指令,没有特殊符号的输出文件,这个文件的含义同原本的文件无异,只是内容上有所不同。 读取C/C++源程序,对其中的伪指令(以#开头的指令)进行处理将所有的“#define”删除,并且展开所有的宏定义处理所有的条件编译指令,如:“#if”、“

编译linux内核出现 arm-eabi-gcc: error: : No such file or directory

external/e2fsprogs/lib/ext2fs/tdb.c:673:29: warning: comparison between : In function 'max2165_set_params': -。。。。。。。。。。。。。。。。。。 。。。。。。。。。。。。。 。。。。。。。。 host asm: libdvm <= dalvik/vm/mterp/out/Inte

QT 编译报错:C3861: ‘tr‘ identifier not found

问题: QT 编译报错:C3861: ‘tr’ identifier not found 原因 使用tr的地方所在的类没有继承自 QObject 类 或者在不在某一类中, 解决方案 就直接用类名引用 :QObject::tr( )

hector_quadrotor编译总结 | ubuntu 16.04 ros-kinetic版本

hector_quadrotor编译总结 | ubuntu 16.04 ros-kinetic版本 基于Ubuntu 16.04 LTS系统所用ROS版本为 Kinetic hector_quadrotor ROS包主要用于四旋翼无人机的建模、控制和仿真。 1.安装依赖库 所需系统及依赖库 Ubuntu 16.04|ros-kinetic|Gazebo|gazebo_ros_pkgs|ge

hector_quadrotor编译总结 | ubuntu 14.04 ros-indigo版本

hector_quadrotor编译总结 | ubuntu 14.04 ros-indigo版本 基于Ubuntu 14.04 LTS系统所用ROS版本为 Indigo hector_quadrotor ROS包主要用于四旋翼无人机的建模、控制和仿真。 备注:两种安装方式可选:install the binary packages | install the source files

编译和链接那点事下

http://www.0xffffff.org/?p=357 上回书我们说到了链接以前,今天我们来研究最后的链接问题。         链接这个话题延伸之后完全可以跑到九霄云外去,为了避免本文牵扯到过多的话题导致言之泛泛,我们先设定本文涉及的范围。我们今天讨论只链接进行的大致步骤及其规则、静态链接库与动态链接库的创建和使用这两大块的问题。至于可执行文件的加载、可执行文件的运行时