完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
补充:配置为esp32,是可以编译成功的,而在设置为esp32s3和esp32c3之后编译会出现以下报错(编译bt_hid_mouse_device例程)。而在使用其他例程是可以编译成功并烧录到esp32c3的(如hello_world/ble_hid_device_demo等例程)
请问有哪位大佬知道这是什么问题吗? 编译信息如下 > Executing task: cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 .. <-- Found Git: E:/Espressif/tools/idf-git/2.30.1/cmd/git.exe (found version "2.30.1.windows.1")-- The C compiler identification is GNU 8.4.0-- The CXX compiler identification is GNU 8.4.0-- Detecting C compiler ABI info-- Detecting C compiler ABI info - done-- Check for working C compiler: E:/Espressif/tools/riscv32-esp-elf/esp-2021r2-patch2-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe - skipped-- Detecting C compile features-- Detecting C compile features - done-- Detecting CXX compiler ABI info-- Detecting CXX compiler ABI info - done-- Check for working CXX compiler: E:/Espressif/tools/riscv32-esp-elf/esp-2021r2-patch2-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-g++.exe - skipped-- Detecting CXX compile features -- Detecting CXX compile features - done-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.-- Building ESP-IDF components for target esp32c3-- Project sdkconfig file C:/Users/Administrator/Desktop/esp32c3/bt_hid_mouse_device/sdkconfigLoading defaults file C:/Users/Administrator/Desktop/esp32c3/bt_hid_mouse_device/sdkconfig.defaults...-- Found PythonInterp: E:/Espressif/python_env/idf4.4_py3.8_env/Scripts/python.exe (found version "3.8.7") -- Could NOT find Perl (missing: PERL_EXECUTABLE) -- App "bt_hid_mouse_device" version: 1-- Adding linker script C:/Users/Administrator/Desktop/esp32c3/bt_hid_mouse_device/build/esp-idf/esp_system/ld/memory.ld-- Adding linker script E:/Esp/esp-idf/components/esp_system/ld/esp32c3/sections.ld.in-- Adding linker script E:/Esp/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.ld-- Adding linker script E:/Esp/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.api.ld-- Adding linker script E:/Esp/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.libgcc.ld-- Adding linker script E:/Esp/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.newlib.ld-- Adding linker script E:/Esp/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.version.ld-- Adding linker script E:/Esp/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.eco3.ld-- Adding linker script E:/Esp/esp-idf/components/soc/esp32c3/ld/esp32c3.peripherals.ld-- Components: app_trace app_update asio bootloader bootloader_support bt cbor cmock coap console cxx driver efuse esp-tls esp32c3 esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_ipc esp_lcd esp_local_ctrl esp_netif esp_phy esp_pm esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos hal heap idf_test ieee802154 jsmn json libsodium log lwip main mbedtls mdns mqtt newlib nghttp nvs_flash openssl openthread partition_table protobuf-c protocomm pthread riscv sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter tinyusb unity usb vfs wear_levelling wifi_provisioning wpa_supplicant-- Component paths: E:/Esp/esp-idf/components/app_trace E:/Esp/esp-idf/components/app_update E:/Esp/esp-idf/components/asio E:/Esp/esp-idf/components/bootloader E:/Esp/esp-idf/components/bootloader_support E:/Esp/esp-idf/components/bt E:/Esp/esp-idf/components/cbor E:/Esp/esp-idf/components/cmock E:/Esp/esp-idf/components/coap E:/Esp/esp-idf/components/console E:/Esp/esp-idf/components/cxx E:/Esp/esp-idf/components/driver E:/Esp/esp-idf/components/efuse E:/Esp/esp-idf/components/esp-tls E:/Esp/esp-idf/components/esp32c3 E:/Esp/esp-idf/components/esp_adc_cal E:/Esp/esp-idf/components/esp_common E:/Esp/esp-idf/components/esp_eth E:/Esp/esp-idf/components/esp_event E:/Esp/esp-idf/components/esp_gdbstub E:/Esp/esp-idf/components/esp_hid E:/Esp/esp-idf/components/esp_http_client E:/Esp/esp-idf/components/esp_http_server E:/Esp/esp-idf/components/esp_https_ota E:/Esp/esp-idf/components/esp_https_server E:/Esp/esp-idf/components/esp_hw_support E:/Esp/esp-idf/components/esp_ipc E:/Esp/esp-idf/components/esp_lcd E:/Esp/esp-idf/components/esp_local_ctrl E:/Esp/esp-idf/components/esp_netif E:/Esp/esp-idf/components/esp_phy E:/Esp/esp-idf/components/esp_pm E:/Esp/esp-idf/components/esp_ringbuf E:/Esp/esp-idf/components/esp_rom E:/Esp/esp-idf/components/esp_serial_slave_link E:/Esp/esp-idf/components/esp_system E:/Esp/esp-idf/components/esp_timer E:/Esp/esp-idf/components/esp_websocket_client E:/Esp/esp-idf/components/esp_wifi E:/Esp/esp-idf/components/espcoredump E:/Esp/esp-idf/components/esptool_py E:/Esp/esp-idf/components/expat E:/Esp/esp-idf/components/fatfs E:/Esp/esp-idf/components/freemodbus E:/Esp/esp-idf/components/freertos E:/Esp/esp-idf/components/hal E:/Esp/esp-idf/components/heap E:/Esp/esp-idf/components/idf_test E:/Esp/esp-idf/components/ieee802154 E:/Esp/esp-idf/components/jsmn E:/Esp/esp-idf/components/json E:/Esp/esp-idf/components/libsodium E:/Esp/esp-idf/components/log E:/Esp/esp-idf/components/lwip C:/Users/Administrator/Desktop/esp32c3/bt_hid_mouse_device/main E:/Esp/esp-idf/components/mbedtls E:/Esp/esp-idf/components/mdns E:/Esp/esp-idf/components/mqtt E:/Esp/esp-idf/components/newlib E:/Esp/esp-idf/components/nghttp E:/Esp/esp-idf/components/nvs_flash E:/Esp/esp-idf/components/openssl E:/Esp/esp-idf/components/openthread E:/Esp/esp-idf/components/partition_table E:/Esp/esp-idf/components/protobuf-c E:/Esp/esp-idf/components/protocomm E:/Esp/esp-idf/components/pthread E:/Esp/esp-idf/components/riscv E:/Esp/esp-idf/components/sdmmc E:/Esp/esp-idf/components/soc E:/Esp/esp-idf/components/spi_flash E:/Esp/esp-idf/components/spiffs E:/Esp/esp-idf/components/tcp_transport E:/Esp/esp-idf/components/tcpip_adapter E:/Esp/esp-idf/components/tinyusb E:/Esp/esp-idf/components/unity E:/Esp/esp-idf/components/usb E:/Esp/esp-idf/components/vfs E:/Esp/esp-idf/components/wear_levelling E:/Esp/esp-idf/components/wifi_provisioning E:/Esp/esp-idf/components/wpa_supplicant-- Configuring done-- Generating done-- Build files have been written to: C:/Users/Administrator/Desktop/esp32c3/bt_hid_mouse_device/build> Executing task: ninja <[3/1257] Generating ../../partition_table/partition-table.binPartition table binary generated. Contents:*******************************************************************************# ESP-IDF Partition Table# Name, Type, SubType, Offset, Size, Flagsnvs,data,nvs,0x9000,24K,phy_init,data,phy,0xf000,4K,factory,app,factory,0x10000,1M,*******************************************************************************[437/1257] Performing configure step for 'bootloader'-- Found Git: E:/Espressif/tools/idf-git/2.30.1/cmd/git.exe (found version "2.30.1.windows.1")-- The C compiler identification is GNU 8.4.0-- The CXX compiler identification is GNU 8.4.0-- The ASM compiler identification is GNU-- Found assembler: E:/Espressif/tools/riscv32-esp-elf/esp-2021r2-patch2-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe-- Detecting C compiler ABI info-- Detecting C compiler ABI info - done-- Check for working C compiler: E:/Espressif/tools/riscv32-esp-elf/esp-2021r2-patch2-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-gcc.exe - skipped-- Detecting C compile features-- Detecting C compile features - done-- Detecting CXX compiler ABI info-- Detecting CXX compiler ABI info - done-- Check for working CXX compiler: E:/Espressif/tools/riscv32-esp-elf/esp-2021r2-patch2-8.4.0/riscv32-esp-elf/bin/riscv32-esp-elf-g++.exe - skipped-- Detecting CXX compile features-- Detecting CXX compile features - done-- Building ESP-IDF components for target esp32c3-- Project sdkconfig file C:/Users/Administrator/Desktop/esp32c3/bt_hid_mouse_device/sdkconfig-- Adding linker script E:/Esp/esp-idf/components/soc/esp32c3/ld/esp32c3.peripherals.ld-- Adding linker script E:/Esp/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.ld-- Adding linker script E:/Esp/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.api.ld-- Adding linker script E:/Esp/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.libgcc.ld-- Adding linker script E:/Esp/esp-idf/components/esp_rom/esp32c3/ld/esp32c3.rom.newlib.ld-- Adding linker script E:/Esp/esp-idf/components/bootloader/subproject/main/ld/esp32c3/bootloader.ld-- Adding linker script E:/Esp/esp-idf/components/bootloader/subproject/main/ld/esp32c3/bootloader.rom.ld-- Components: bootloader bootloader_support efuse esp32c3 esp_common esp_hw_support esp_rom esp_system esptool_py freertos hal log main micro-ecc newlib partition_table riscv soc spi_flash-- Component paths: E:/Esp/esp-idf/components/bootloader E:/Esp/esp-idf/components/bootloader_support E:/Esp/esp-idf/components/efuse E:/Esp/esp-idf/components/esp32c3 E:/Esp/esp-idf/components/esp_common E:/Esp/esp-idf/components/esp_hw_support E:/Esp/esp-idf/components/esp_rom E:/Esp/esp-idf/components/esp_system E:/Esp/esp-idf/components/esptool_py E:/Esp/esp-idf/components/freertos E:/Esp/esp-idf/components/hal E:/Esp/esp-idf/components/log E:/Esp/esp-idf/components/bootloader/subproject/main E:/Esp/esp-idf/components/bootloader/subproject/components/micro-ecc E:/Esp/esp-idf/components/newlib E:/Esp/esp-idf/components/partition_table E:/Esp/esp-idf/components/riscv E:/Esp/esp-idf/components/soc E:/Esp/esp-idf/components/spi_flash-- Configuring done-- Generating done-- Build files have been written to: C:/Users/Administrator/Desktop/esp32c3/bt_hid_mouse_device/build/bootloader [560/1257] Performing build step for 'bootloader'[1/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/soc_include_legacy_warn.c.obj[2/88] Generating project_elf_src_esp32c3.c[3/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/lldesc.c.obj[4/88] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/mpu_hal.c.obj[5/88] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/cpu_hal.c.obj[6/88] Building C object esp-idf/hal/CMakeFiles/__idf_hal.dir/wdt_hal_iram.c.obj[7/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/dedic_gpio_periph.c.obj[8/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/adc_periph.c.obj[9/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/ledc_periph.c.obj[10/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/spi_periph.c.obj[11/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/rmt_periph.c.obj[12/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/gpio_periph.c.obj[13/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/gdma_periph.c.obj[14/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/interrupts.c.obj[15/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/uart_periph.c.obj[16/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/timer_periph.c.obj[17/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/sigmadelta_periph.c.obj[18/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/i2c_periph.c.obj[19/88] Building C object esp-idf/soc/CMakeFiles/__idf_soc.dir/esp32c3/i2s_periph.c.obj[20/88] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_init.c.obj[21/88] Building C object esp-idf/spi_flash/CMakeFiles/__idf_spi_flash.dir/esp32c3/spi_flash_rom_patch.c.obj[22/88] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common_loader.c.obj[23/88] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_common.c.obj[24/88] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random_esp32c3.c.obj[25/88] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_mem.c.obj [26/88] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_flash.c.obj[27/88] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_random.c.obj[28/88] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_utility.c.obj[29/88] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/secure_boot.c.obj [30/88] Building C object esp-idf/micro-ecc/CMakeFiles/__idf_micro-ecc.dir/uECC_verify_antifault.c.obj[31/88] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_encrypt.c.obj [32/88] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_partitions.c.obj[33/88] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/flash_qio_mode.c.obj [34/88] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_clock_loader.c.obj[35/88] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_init.c.obj [36/88] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp_image_format.c.obj[37/88] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console.c.obj[38/88] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_console_loader.c.obj[39/88] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_efuse_esp32c3.c.obj[40/88] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_panic.c.obj[41/88] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32c3/bootloader_sha.c.obj[42/88] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/bootloader_flash_config_esp32c3.c.obj[43/88] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32c3/bootloader_soc.c.obj[44/88] Building C object CMakeFiles/bootloader.elf.dir/project_elf_src_esp32c3.c.obj[45/88] Building C object esp-idf/bootloader_support/CMakeFiles/__idf_bootloader_support.dir/src/esp32c3/bootloader_esp32c3.c.obj[46/88] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32c3/esp_efuse_fields.c.obj[47/88] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_api_key_esp32xx.c.obj[48/88] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_api.c.obj[49/88] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32c3/esp_efuse_rtc_calib.c.obj[50/88] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32c3/esp_efuse_utility.c.obj[51/88] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/esp32c3/esp_efuse_table.c.obj[52/88] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_utility.c.obj[53/88] Building C object esp-idf/efuse/CMakeFiles/__idf_efuse.dir/src/esp_efuse_fields.c.obj[54/88] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32c3/rtc_clk_init.c.obj [55/88] Building C object esp-idf/esp_common/CMakeFiles/__idf_esp_common.dir/src/esp_err_to_name.c.obj[56/88] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32c3/rtc_pm.c.obj[57/88] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32c3/cpu_util_esp32c3.c.obj[58/88] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32c3/rtc_init.c.obj [59/88] Building C object esp-idf/esp_system/CMakeFiles/__idf_esp_system.dir/esp_err.c.obj[60/88] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/compare_set.c.obj[61/88] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/cpu_util.c.obj[62/88] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32c3/rtc_clk.c.obj [63/88] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_crc.c.obj[64/88] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32c3/chip_info.c.obj [65/88] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_tjpgd.c.obj[66/88] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32c3/rtc_time.c.obj [67/88] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_uart.c.obj[68/88] Building C object esp-idf/esp_hw_support/CMakeFiles/__idf_esp_hw_support.dir/port/esp32c3/rtc_sleep.c.obj [69/88] Building C object esp-idf/esp_rom/CMakeFiles/__idf_esp_rom.dir/patches/esp_rom_sys.c.obj[70/88] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_noos.c.obj[71/88] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log_buffers.c.obj[72/88] Building C object esp-idf/log/CMakeFiles/__idf_log.dir/log.c.obj[73/88] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/bootloader_start.c.obj[74/88] Linking C static library esp-idflogliblog.a[75/88] Linking C static library esp-idfesp_romlibesp_rom.a[76/88] Linking C static library esp-idfesp_commonlibesp_common.a[77/88] Linking C static library esp-idfesp_hw_supportlibesp_hw_support.a[78/88] Linking C static library esp-idfesp_systemlibesp_system.a[79/88] Linking C static library esp-idfefuselibefuse.a[80/88] Linking C static library esp-idfbootloader_supportlibbootloader_support.a[81/88] Linking C static library esp-idfspi_flashlibspi_flash.a[82/88] Linking C static library esp-idfmicro-ecclibmicro-ecc.a[83/88] Linking C static library esp-idfsoclibsoc.a[84/88] Linking C static library esp-idfhallibhal.a[85/88] Linking C static library esp-idfmainlibmain.a[86/88] Linking C executable bootloader.elf[87/88] Generating binary image from built executableesptool.py v3.2-devMerged 1 ELF sectionGenerated C:/Users/Administrator/Desktop/esp32c3/bt_hid_mouse_device/build/bootloader/bootloader.bin[88/88] cmd.exe /C "cd /D C:UsersAdministratorDesktopesp32c3bt_hid_mouse_devicebuildbootloaderesp-idfesptool_py && E:Espressifpython_envidf4.4_py3.8_envScriptspython.exe E:/Esp/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 C:/Users/Administrator/Desktop/esp32c3/bt_hid_mouse_device/build/bootloader/bootloader.bin"Bootloader binary size 0x4d80 bytes. 0x3280 bytes (39%) free.[1255/1257] Linking CXX executable bt_hid_mouse_device.elfFAILED: bt_hid_mouse_device.elf cmd.exe /C "cd . && E:Espressiftoolsriscv32-esp-elfesp-2021r2-patch2-8.4.0riscv32-esp-elfbinriscv32-esp-elf-g++.exe -march=rv32imc -nostartfiles -march=rv32imc --specs=nosys.specs @CMakeFilesbt_hid_mouse_device.elf.rsp -o bt_hid_mouse_device.elf && cd ."e:/espressif/tools/riscv32-esp-elf/esp-2021r2-patch2-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: esp-idf/main/libmain.a(main.c.obj): in function `esp_bt_gap_cb':C:UsersAdministratorDesktopesp32c3bt_hid_mouse_devicebuild/../main/main.c:166: undefined reference to `esp_bt_gap_pin_reply'e:/espressif/tools/riscv32-esp-elf/esp-2021r2-patch2-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: C:UsersAdministratorDesktopesp32c3bt_hid_mouse_devicebuild/../main/main.c:174: undefined reference to `esp_bt_gap_pin_reply'e:/espressif/tools/riscv32-esp-elf/esp-2021r2-patch2-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: esp-idf/main/libmain.a(main.c.obj): in function `check_report_id_type':C:UsersAdministratorDesktopesp32c3bt_hid_mouse_devicebuild/../main/main.c:56: undefined reference to `esp_bt_hid_device_report_error'e:/espressif/tools/riscv32-esp-elf/esp-2021r2-patch2-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: C:UsersAdministratorDesktopesp32c3bt_hid_mouse_devicebuild/../main/main.c:54: undefined reference to `esp_bt_hid_device_report_error'e:/espressif/tools/riscv32-esp-elf/esp-2021r2-patch2-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: esp-idf/main/libmain.a(main.c.obj): in function `send_mouse':C:UsersAdministratorDesktopesp32c3bt_hid_mouse_devicebuild/../main/main.c:72: undefined reference to `esp_bt_hid_device_send_report'e:/espressif/tools/riscv32-esp-elf/esp-2021r2-patch2-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: C:UsersAdministratorDesktopesp32c3bt_hid_mouse_devicebuild/../main/main.c:77: undefined reference to `esp_bt_hid_device_send_report'e:/espressif/tools/riscv32-esp-elf/esp-2021r2-patch2-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: esp-idf/main/libmain.a(main.c.obj): in function `esp_bt_hidd_cb':C:UsersAdministratorDesktopesp32c3bt_hid_mouse_devicebuild/../main/main.c:241: undefined reference to `esp_bt_gap_set_scan_mode'e:/espressif/tools/riscv32-esp-elf/esp-2021r2-patch2-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: C:UsersAdministratorDesktopesp32c3bt_hid_mouse_devicebuild/../main/main.c:244: undefined reference to `esp_bt_hid_device_connect'e:/espressif/tools/riscv32-esp-elf/esp-2021r2-patch2-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: C:UsersAdministratorDesktopesp32c3bt_hid_mouse_devicebuild/../main/main.c:230: undefined reference to `esp_bt_hid_device_register_app'e:/espressif/tools/riscv32-esp-elf/esp-2021r2-patch2-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: C:UsersAdministratorDesktopesp32c3bt_hid_mouse_devicebuild/../main/main.c:266: undefined reference to `esp_bt_gap_set_scan_mode'e:/espressif/tools/riscv32-esp-elf/esp-2021r2-patch2-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: C:UsersAdministratorDesktopesp32c3bt_hid_mouse_devicebuild/../main/main.c:283: undefined reference to `esp_bt_gap_set_scan_mode'e:/espressif/tools/riscv32-esp-elf/esp-2021r2-patch2-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: C:UsersAdministratorDesktopesp32c3bt_hid_mouse_devicebuild/../main/main.c:305: undefined reference to `esp_bt_hid_device_send_report'e:/espressif/tools/riscv32-esp-elf/esp-2021r2-patch2-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: C:UsersAdministratorDesktopesp32c3bt_hid_mouse_devicebuild/../main/main.c:307: undefined reference to `esp_bt_hid_device_send_report'e:/espressif/tools/riscv32-esp-elf/esp-2021r2-patch2-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: C:UsersAdministratorDesktopesp32c3bt_hid_mouse_devicebuild/../main/main.c:340: undefined reference to `esp_bt_gap_set_scan_mode'e:/espressif/tools/riscv32-esp-elf/esp-2021r2-patch2-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: esp-idf/main/libmain.a(main.c.obj): in function `app_main':C:UsersAdministratorDesktopesp32c3bt_hid_mouse_devicebuild/../main/main.c:387: undefined reference to `esp_bt_gap_register_callback'e:/espressif/tools/riscv32-esp-elf/esp-2021r2-patch2-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: C:UsersAdministratorDesktopesp32c3bt_hid_mouse_devicebuild/../main/main.c:406: undefined reference to `esp_bt_gap_set_cod'e:/espressif/tools/riscv32-esp-elf/esp-2021r2-patch2-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: C:UsersAdministratorDesktopesp32c3bt_hid_mouse_devicebuild/../main/main.c:413: undefined reference to `esp_bt_hid_device_register_callback'e:/espressif/tools/riscv32-esp-elf/esp-2021r2-patch2-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: C:UsersAdministratorDesktopesp32c3bt_hid_mouse_devicebuild/../main/main.c:416: undefined reference to `esp_bt_hid_device_init'e:/espressif/tools/riscv32-esp-elf/esp-2021r2-patch2-8.4.0/riscv32-esp-elf/bin/../lib/gcc/riscv32-esp-elf/8.4.0/../../../../riscv32-esp-elf/bin/ld.exe: C:UsersAdministratorDesktopesp32c3bt_hid_mouse_devicebuild/../main/main.c:416: undefined reference to `esp_bt_gap_set_pin'collect2.exe: error: ld returned 1 exit statusninja: build stopped: subcommand failed.终端进程“C:WindowsSystem32WindowsPowerShellv1.0powershell.exe -Command ninja ”已终止,退出代码: 1。 |
|
相关推荐
1个回答
|
|
根据您提供的信息,您在使用ESP-IDF编译bt_hid_mouse_device例程时遇到了问题。这个问题可能是由于以下几个原因导致的:
1. **ESP-IDF版本不兼容**:您使用的ESP-IDF版本可能与ESP32-S3和ESP32-C3不兼容。请尝试升级到最新版本的ESP-IDF,或者查看ESP-IDF的文档以获取与您的目标硬件兼容的版本。 2. **组件依赖问题**:可能是由于某些组件或库在ESP32-S3和ESP32-C3上不可用或不兼容。检查bt_hid_mouse_device例程的依赖项,并确保它们在您的目标硬件上可用。 3. **配置问题**:在编译过程中,可能存在一些配置问题。请检查您的sdkconfig文件,确保所有必要的配置项都已正确设置。 4. **代码问题**:可能是bt_hid_mouse_device例程中的代码在ESP32-S3和ESP32-C3上存在问题。检查代码,看看是否有任何特定于ESP32的部分需要修改以适应新的硬件。 5. **编译器问题**:您使用的编译器版本可能与ESP32-S3和ESP32-C3不兼容。尝试更新编译器或使用ESP-IDF推荐的编译器版本。 为了解决这个问题,您可以尝试以下步骤: 1. 确保您使用的是最新版本的ESP-IDF。 2. 检查bt_hid_mouse_device例程的依赖项,并确保它们在ESP32-S3和ESP32-C3上可用。 3. 检查您的sdkconfig文件,确保所有必要的配置项都已正确设置。 4. 仔细检查bt_hid_mouse_device例程的代码,看看是否有任何特定于ESP32的部分需要修改。 5. 更新编译器或使用ESP-IDF推荐的编译器版本。 希望这些建议能帮助您解决问题。如果问题仍然存在,请提供更详细的错误信息,以便我们能够更好地帮助您。 |
|
|
|
只有小组成员才能发言,加入小组>>
527浏览 6评论
438浏览 5评论
有没有办法在不使用混杂模式的情况下实现Wifi驱动程序接收缓冲区访问中断呢?
425浏览 5评论
421浏览 4评论
396浏览 4评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-5 10:40 , Processed in 0.645517 second(s), Total 79, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号