Closed qianxiaojun1 closed 7 months ago
and the branch of project : xiaojunqian@xiaojun:/mnt/s1/esp_project/esp-idf/examples/bluetooth/blufi$ git branch
@qianxiaojun1 I had test it in version be06a6f5ffe36f9554cfc91fe2036e0fc85fea60, It seems like your environment hasn't been properly installed.
~/esp/esp-idf/examples/bluetooth/blufi$ idf.py build
Executing action: all (aliases: build)
Running ninja in directory /home/zhanghaipeng/esp/esp-idf/examples/bluetooth/blufi/build
Executing "ninja all"...
[15/1297] Generating ../../partition_table/partition-table.bin
Partition table binary generated. Contents:
*******************************************************************************
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,24K,
phy_init,data,phy,0xf000,4K,
factory,app,factory,0x10000,1500K,
*******************************************************************************
[490/1297] Performing configure step for 'bootloader'
-- Found Git: /usr/bin/git (found version "2.25.1")
-- Component directory /home/zhanghaipeng/esp/esp-idf/components/asio does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/zhanghaipeng/esp/esp-idf/components/cbor does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/zhanghaipeng/esp/esp-idf/components/coap does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/zhanghaipeng/esp/esp-idf/components/expat does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/zhanghaipeng/esp/esp-idf/components/libsodium does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/zhanghaipeng/esp/esp-idf/components/nghttp does not contain a CMakeLists.txt file. No component will be added
-- Component directory /home/zhanghaipeng/esp/esp-idf/components/tinyusb does not contain a CMakeLists.txt file. No component will be added
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/zhanghaipeng/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240305/xtensa-esp-elf/bin/xtensa-esp32s3-elf-gcc
-- Check for working C compiler: /home/zhanghaipeng/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240305/xtensa-esp-elf/bin/xtensa-esp32s3-elf-gcc
-- Check for working C compiler: /home/zhanghaipeng/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240305/xtensa-esp-elf/bin/xtensa-esp32s3-elf-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/zhanghaipeng/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240305/xtensa-esp-elf/bin/xtensa-esp32s3-elf-g++
-- Check for working CXX compiler: /home/zhanghaipeng/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20240305/xtensa-esp-elf/bin/xtensa-esp32s3-elf-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32s3
-- Project sdkconfig file /home/zhanghaipeng/esp/esp-idf/examples/bluetooth/blufi/sdkconfig
-- Compiler supported targets: xtensa-esp-elf
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/soc/esp32s3/ld/esp32s3.peripherals.ld
-- Bootloader project name: "bootloader" version: 1
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.ld
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.api.ld
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.libgcc.ld
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.wdt.ld
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.version.ld
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/esp_rom/esp32s3/ld/esp32s3.rom.newlib.ld
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/bootloader/subproject/main/ld/esp32s3/bootloader.ld
-- Adding linker script /home/zhanghaipeng/esp/esp-idf/components/bootloader/subproject/main/ld/esp32s3/bootloader.rom.ld
-- Components: bootloader bootloader_support efuse esp_app_format esp_bootloader_format esp_common esp_hw_support esp_rom esp_system esptool_py freertos hal log main micro-ecc newlib partition_table soc spi_flash xtensa
-- Component paths: /home/zhanghaipeng/esp/esp-idf/components/bootloader /home/zhanghaipeng/esp/esp-idf/components/bootloader_support /home/zhanghaipeng/esp/esp-idf/components/efuse /home/zhanghaipeng/esp/esp-idf/components/esp_app_format /home/zhanghaipeng/esp/esp-idf/components/esp_bootloader_format /home/zhanghaipeng/esp/esp-idf/components/esp_common /home/zhanghaipeng/esp/esp-idf/components/esp_hw_support /home/zhanghaipeng/esp/esp-idf/components/esp_rom /home/zhanghaipeng/esp/esp-idf/components/esp_system /home/zhanghaipeng/esp/esp-idf/components/esptool_py /home/zhanghaipeng/esp/esp-idf/components/freertos /home/zhanghaipeng/esp/esp-idf/components/hal /home/zhanghaipeng/esp/esp-idf/components/log /home/zhanghaipeng/esp/esp-idf/components/bootloader/subproject/main /home/zhanghaipeng/esp/esp-idf/components/bootloader/subproject/components/micro-ecc /home/zhanghaipeng/esp/esp-idf/components/newlib /home/zhanghaipeng/esp/esp-idf/components/partition_table /home/zhanghaipeng/esp/esp-idf/components/soc /home/zhanghaipeng/esp/esp-idf/components/spi_flash /home/zhanghaipeng/esp/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: /home/zhanghaipeng/esp/esp-idf/examples/bluetooth/blufi/build/bootloader
[112/113] Generating binary image from built executable
esptool.py v4.8.dev3
Creating esp32s3 image...
Merged 2 ELF sections
Successfully created esp32s3 image.
Generated /home/zhanghaipeng/esp/esp-idf/examples/bluetooth/blufi/build/bootloader/bootloader.bin
[113/113] cd /home/zhanghaipeng/esp/esp-idf/examples/bluetooth...p-idf/examples/bluetooth/blufi/build/bootloader/bootloader.bin
Bootloader binary size 0x5250 bytes. 0x2db0 bytes (36%) free.
[1296/1297] Generating binary image from built executable
esptool.py v4.8.dev3
Creating esp32s3 image...
Merged 3 ELF sections
Successfully created esp32s3 image.
Generated /home/zhanghaipeng/esp/esp-idf/examples/bluetooth/blufi/build/blufi_demo.bin
[1297/1297] cd /home/zhanghaipeng/esp/esp-idf/examples/bluetoo...peng/esp/esp-idf/examples/bluetooth/blufi/build/blufi_demo.bin
blufi_demo.bin binary size 0x10fb40 bytes. Smallest app partition is 0x177000 bytes. 0x674c0 bytes (28%) free.
Project build complete. To flash, run:
idf.py flash
or
idf.py -p PORT flash
or
python -m esptool --chip esp32s3 -b 460800 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 2MB --flash_freq 80m 0x0 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0x10000 build/blufi_demo.bin
or from the "/home/zhanghaipeng/esp/esp-idf/examples/bluetooth/blufi/build" directory
python -m esptool --chip esp32s3 -b 460800 --before default_reset --after hard_reset write_flash "@flash_args"
Please refer to the following document for installing the IDF environment: Please refer to: https://docs.espressif.com/projects/esp-idf/zh_CN/stable/esp32/get-started/linux-macos-setup.html
Please refer to the following document for installing the IDF environment: Please refer to: https://docs.espressif.com/projects/esp-idf/zh_CN/stable/esp32/get-started/linux-macos-setup.html
OK,I'll try to uninstall and retry。Maybe I use vscode extension to install and caused this problem。
Please refer to the following document for installing the IDF environment: Please refer to: https://docs.espressif.com/projects/esp-idf/zh_CN/stable/esp32/get-started/linux-macos-setup.html
Thank you! I have solve this problem。When I use vscode extesions,I find the environment will cause this problem。
Answers checklist.
IDF version.
v5.3-dev-2815-gbe06a6f5ff
Operating System used.
Linux
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
None
What is the expected behavior?
Build esp-idf/examples/bluetooth/blufi success
What is the actual behavior?
Build faild [1238/1245] Building C object esp-idf/main/CMakeFiles/idf_main.dir/blufi_init.c.obj FAILED: esp-idf/main/CMakeFiles/idf_main.dir/blufi_init.c.obj
Steps to reproduce.
Build or installation Logs.
More Information.
I can build example blink project success, but this project failed.