完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
硬件部分:esp32-s3 –wroom-1
软件部分: esp-idf-v4.4.2 开发环境:Wondows 7 IDE: Eclipse IDE for C/C++ Developers Version: 2022-06 (4.24.0) 问题描述: 原本在keil c mdk 用AT command开发蛮顺手的,但后来转到IDF确让我挫折满满,编译后出现一堆问题,在网上没有找当我想找的答案,虚心求教一下 出现问题描述: undefined reference to `app_main' undefined reference to `app_main' Symbol 'NULL' could not be resolved Symbol 'ESP_ERR_NVS_NO_FREE_PAGES' could not be resolved Symbol 'ESP_ERR_NVS_NEW_VERSION_FOUND' could not be resolved esp-idf/freertos/libfreertos.a(port_common.c.obj): in function `main_task': 设定步骤 1. 开启idf 专案 2. 挂载 https://github.com/espressif/esp-aws-iot 项目内容(esp-aws-iot-masterexampleshttp)透过import -> file system 方式把*.c *.h挂载进来 3. Cmakelist.txt不知道该如何修改 CMakeList.txt 1. set(COMPONENT_SRCS "app_main.c" "http_demo_mutual_auth.c" "http_demo_utils.c" ) set(COMPONENT_ADD_INCLUDEDIRS "." "${CMAKE_CURRENT_LIST_DIR}" ) idf_component_register(SRCS "${COMPONENT_SRCS}" INCLUDE_DIRS ${COMPONENT_ADD_INCLUDEDIRS} ) 2. # The following five lines of boilerplate have to be in your project's # CMakeLists in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.5) set(EXTRA_COMPONENT_DIRS "$ENV{IDF_PATH}/examples/common_components/protocol_examples_common" "${CMAKE_CURRENT_LIST_DIR}/../../../libraries/coreHTTP" "${CMAKE_CURRENT_LIST_DIR}/../../../libraries/backoffAlgorithm" "${CMAKE_CURRENT_LIST_DIR}/../../../libraries/common/posix_compat" ) include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(http_mutual_auth) target_add_binary_data(${CMAKE_PROJECT_NAME}.elf "main/certs/root_cert_auth.pem" TEXT) target_add_binary_data(${CMAKE_PROJECT_NAME}.elf "main/certs/client.crt" TEXT) target_add_binary_data(${CMAKE_PROJECT_NAME}.elf "main/certs/client.key" TEXT) 3. # The following lines of boilerplate have to be in your project's # CMakeLists in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.5) include($ENV{IDF_PATH}/tools/cmake/project.cmake) get_filename_component(ProjectId ${CMAKE_CURRENT_LIST_DIR} NAME) string(REPLACE " " "_" ProjectId ${ProjectId}) project(${ProjectId}) |
|
相关推荐
|
|
只有小组成员才能发言,加入小组>>
341 浏览 0 评论
1186 浏览 1 评论
587浏览 6评论
484浏览 5评论
有没有办法在不使用混杂模式的情况下实现Wifi驱动程序接收缓冲区访问中断呢?
468浏览 5评论
467浏览 4评论
443浏览 4评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-28 04:04 , Processed in 0.898530 second(s), Total 73, Slave 57 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号