技术支持提问请严格按照以下格式提供对应信息,否则会影响回复时效,一定要描述清楚,以免一次回复无法解决问题
(提问前请先自查自己是否很仔细看过教程了,教程中的每句话都很重要,教程都是经过验证的,不会有问题的)
一、描述你遇到的问题
scons: *** [application.elf] Failed to build!
二、你具体做的所有步骤结果截图
三、当前开发板状态全景照片
四、开发板串口所有日志
- 正在执行任务: D:\Program\DevEco-Device-Tool\core\deveco-venv\Scripts\hos.exe run --target clean --target buildprog --project-dir D:\work\BearPi-Pico H2821\bearpi-h2821_pico-master\bearpi-h2821_pico-master --environment BS21-N1100-STANDARD
Processing BS21-N1100-STANDARD (platform: vendorcfbb; board: custom; framework: cmake)
PLATFORM: vendorcfbb 0.0.1 > custom
HARDWARE: BS21 900MHz,
Building in debug mode
clean success: D:\work\BearPi-Pico H2821\bearpi-h2821_pico-master\bearpi-h2821_pico-master\output
======================================================================================= [SUCCESS] Took 1.38 seconds =======================================================================================
Processing BS21-N1100-STANDARD (platform: vendorcfbb; board: custom; framework: cmake)
PLATFORM: vendorcfbb 0.0.1 > custom
HARDWARE: BS21 900MHz,
Building in debug mode
Verbose mode can be enabled via -v, --verbose
option
builder(["application.elf"], [])
pip installed.
cmake installed.
kconfiglib installed.
windowscurses installed.
pycparser installed.
pyserial installed.
D:\work\BearPi-Pico H2821\DevTools_CFBB_V1.0.12\thirdparty\python\python.exe ./build.py standard-bs21-n1100
warning: default on the choice symbol SUPPORT_SLE_PERIPHERAL (defined at application/samples/products/sle_uart/Kconfig:55, protocol/Kconfig:8) will have no effect, as defaults do not affect choice symbols
warning: default on the choice symbol SUPPORT_SLE_CENTRAL (defined at application/samples/products/sle_uart/Kconfig:60, protocol/Kconfig:10) will have no effect, as defaults do not affect choice symbols
warning: default on the choice symbol SUPPORT_SLE_PERIPHERAL (defined at application/samples/products/sle_uart/Kconfig:55, protocol/Kconfig:8) will have no effect, as defaults do not affect choice symbols
warning: default on the choice symbol SUPPORT_SLE_CENTRAL (defined at application/samples/products/sle_uart/Kconfig:60, protocol/Kconfig:10) will have no effect, as defaults do not affect choice symbols
Not searching for unused variables given on the command line.
-- BUILD_PLATFORM: windows
-- BUILD_PLATFORM: windows
-- The C compiler identification is GNU 7.3.0
-- The ASM compiler identification is GNU
-- Found assembler: D:/work/BearPi-Pico H2821/bearpi-h2821_pico-master/bearpi-h2821_pico-master/tools/bin/compiler/riscv/cc_riscv32_musl_b010/cc_riscv32_musl_fp_win/bin/riscv32-linux-musl-gcc.exe
-- The CXX compiler identification is GNU 7.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/work/BearPi-Pico H2821/bearpi-h2821_pico-master/bearpi-h2821_pico-master/tools/bin/compiler/riscv/cc_riscv32_musl_b010/cc_riscv32_musl_fp_win/bin/riscv32-linux-musl-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: D:/work/BearPi-Pico H2821/bearpi-h2821_pico-master/bearpi-h2821_pico-master/tools/bin/compiler/riscv/cc_riscv32_musl_b010/cc_riscv32_musl_fp_win/bin/riscv32-linux-musl-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
LOSCFG_PLATFORM is set to bs21
LOSCFG_COMPILER_GNU_BINUTILS is set to y
LOSCFG_COMPILER_GCC is set to y
LOSCFG_COMPILER_TOOLCHAIN_UNKNOWN is set to y
LOSCFG_COMPILER_RISCV_GCC_UNKNOWN is set to y
LOSCFG_RISCV_COMPILER_OPTIONS_USER_DEFINED is set to --short-enums;-ffreestanding;-fdata-sections;-ffunction-sections;-pipe;-fno-tree-scev-cprop;-fno-common;-mpush-pop;-msmall-data-limit=0;-fno-ipa-ra;-Wtrampolines;-Wlogical-op;-Wjump-misses-init;-Wa,-enable-c-lbu-sb;-Wa,-enable-c-lhu-sh;-fimm-compare;-femit-muliadd;-fmerge-immshf;-femit-uxtb-uxth;-femit-lli;-femit-clz;-fldm-stm-optimize;-madjust-regorder;-madjust-const-cost;-freorder-commu-args;-fimm-compare-expand;-frmv-str-zero;-mfp-const-opt;-mswitch-jump-table;-frtl-sequence-abstract;-frtl-hoist-sink;-fsafe-alias-multipointer;-finline-optimize-size;-fmuliadd-expand;-mlli-expand;-Wa,-mcjal-expand;-foptimize-reg-alloc;-fsplit-multi-zero-assignments;-floop-optimize-size;-mpattern-abstract;-foptimize-pro-and-epilogue
LOSCFG_RISCV_COMPILER_OPTIONS_LDM_STM is set to y
LOSCFG_RISCV_COMPILER_OPTIONS_EMIT_LLI is set to y
LOSCFG_RISCV_COMPILER_OPTIONS_PUSH_POP is set to y
LOSCFG_COMPILER_OPTIMIZE_SIZE is set to y
LOSCFG_FAMILY_AIOT is set to y
LOSCFG_FAMILY is set to aiot
LOSCFG_PLATFORM is set to bs21
LOSCFG_PLATFORM_BS21 is set to y
LOSCFG_USING_BOARD_LD is set to y
LOSCFG_USING_BOARD_RESET_VECTOR is set to y
LOSCFG_ARCH_FPU_ENABLE is set to y
LOSCFG_ARCH_PMU is set to y
LOSCFG_ARCH_RISCV32 is set to y
LOSCFG_ARCH_RISCV_RV32IMC is set to y
LOSCFG_ARCH_RISCV_ISA_F is set to y
LOSCFG_ARCH_LINXCORE_131 is set to y
LOSCFG_KERNEL_MIN is set to y
LOSCFG_SCHED is set to y
LOSCFG_SCHED_SQ is set to y
LOSCFG_BASE_CORE_TSK_MONITOR is set to y
LOSCFG_TASK_STACK_DYNAMIC_ALLOCATION is set to y
LOSCFG_BASE_CORE_TSK_LIMIT is set to 15
LOSCFG_BASE_CORE_TSK_MIN_STACK_SIZE is set to 512
LOSCFG_BASE_CORE_TSK_DEFAULT_STACK_SIZE is set to 2048
LOSCFG_BASE_CORE_TSK_SWTMR_STACK_SIZE is set to 1536
LOSCFG_BASE_CORE_TSK_IDLE_STACK_SIZE is set to 1024
LOSCFG_BASE_CORE_TSK_DEFAULT_PRIO is set to 10
LOSCFG_BASE_CORE_TICK_PER_SECOND is set to 1000
LOSCFG_BASE_CORE_USE_SINGLE_LIST is set to y
LOSCFG_STARTUP_STACK_SIZE is set to 0x4000
LOSCFG_KERNEL_MEM_ALLOC is set to y
LOSCFG_KERNEL_MEM_BESTFIT_LITTLE is set to y
LOSCFG_ARCH_INTERRUPT_TAKEOVER is set to y
LOSCFG_ARCH_INTERRUPT_PREEMPTION is set to y
LOSCFG_HWI_PRE_POST_PROCESS is set to y
LOSCFG_HWI_WITH_ARG is set to y
LOSCFG_IRQ_STACK_SIZE is set to 0x2000
LOSCFG_NMI_STACK_SIZE is set to 0x800
LOSCFG_PLATFORM_HWI_LIMIT is set to 90
LOSCFG_HWI_PRIO_LIMIT is set to 7
LOSCFG_EXC_SIMPLE_INFO is set to y
LOSCFG_EXC_STACK_SIZE is set to 0x800
LOSCFG_BASE_CORE_SWTMR is set to y
LOSCFG_BASE_CORE_SWTMR_LIMIT is set to 16
LOSCFG_BASE_IPC_QUEUE is set to y
LOSCFG_QUEUE_DYNAMIC_ALLOCATION is set to y
LOSCFG_BASE_IPC_QUEUE_LIMIT is set to 10
LOSCFG_BASE_IPC_EVENT is set to y
LOSCFG_BASE_IPC_MUX is set to y
LOSCFG_MUTEX_WAITMODE_PRIO is set to y
LOSCFG_BASE_IPC_MUX_LIMIT is set to 20
LOSCFG_BASE_IPC_SEM is set to y
LOSCFG_BASE_IPC_SEM_LIMIT is set to 10
LOSCFG_KERNEL_PRINTF is set to y
LOSCFG_KERNEL_PRINTF_SIZE_EXTEND is set to y
LOSCFG_BASE_CORE_SYS_RES_CHECK is set to y
LOSCFG_LIB_LIBC is set to y
LOSCFG_LIB_LIBM is set to y
LOSCFG_LIB_FORMAT is set to y
LOSCFG_COMPAT_CMSIS is set to y
LOSCFG_COMPAT_CMSIS_VER_2 is set to y
LOSCFG_DRIVERS_BASE is set to y
LOSCFG_RISCV_HIMIDEERV200_PLIC is set to y
LOSCFG_TIMER_VENDOR is set to y
LOSCFG_DRIVERS_UART_VENDOR is set to y
LOSCFG_DRIVERS_SIMPLE_UART is set to y
LOSCFG_DRIVERS_USB_DEVICE_NO_DRIVER_BASE is set to y
LOSCFG_CC_STACKPROTECTOR_STRONG is set to y
CMAKE_TOOLCHAIN_FILE is defined ahead, skip auto-config compiler
CMAKE_TOOLCHAIN_FILE is defined ahead, skip auto-config compiler
OUT:D:/work/BearPi-Pico H2821/bearpi-h2821_pico-master/bearpi-h2821_pico-master/output/bs21/acore/standard-bs21-n1100/kernel/liteos/liteos_v208.6.0_b017
LITEOS_MODULE_DEP_LIBS_PATH:
LITEOS_DEP_LIBS_INT:
LITEOS_DEP_LIBS_EXT:gcc
LITEOS_BASELIB:m;interrupt;base;riscv;cmsisuser;cmsiskernel;driverbase;init;csysdeps;targets;m;gcc;riscv;targets;init
LOS_INTF_DEP_TARGETS:
-- COM_HEADER-includeD:/work/BearPi-Pico H2821/bearpi-h2821_pico-master/bearpi-h2821_pico-master/output/bs21/acore/standard-bs21-n1100/kernel/liteos/liteos_v208.6.0_b017/menuconfig/include/menuconfig.h
-- D:/work/BearPi-Pico H2821/bearpi-h2821_pico-master/bearpi-h2821_pico-master/drivers/drivers/driver/usb_unified/controller/usb_device/dwc_otg_pcd_intr.c is not found, finding libusb_unified.a in D:/work/BearPi-Pico H2821/bearpi-h2821_pico-master/bearpi-h2821_pico-master/drivers/drivers/driver/usb_unified/standard-bs21-n1100
-- D:/work/BearPi-Pico H2821/bearpi-h2821_pico-master/bearpi-h2821_pico-master/drivers/chips/bs2x/rom/rom_info/acore/output/rom_callback.S is not found, finding librom_callback.a in D:/work/BearPi-Pico H2821/bearpi-h2821_pico-master/bearpi-h2821_pico-master/drivers/chips/bs2x/rom/rom_info/standard-bs21-n1100
BGTP_PROJECT=bs21
BGTP_ROM_VERSION=true
BGTP_DEVICE_ONLY=false
BG COMMON BTH_ROM_LIST:null
BTH_ROM_LIST:null
BTH_ROM_LIST:null
BTH_PUBLIC_HEADER_LIST=
-- ======= current project : bs21_CFBB - =======
-- D:/work/BearPi-Pico H2821/bearpi-h2821_pico-master/bearpi-h2821_pico-master/protocol/nfc/controller/null is not found, finding libnfc_controller.a in D:/work/BearPi-Pico H2821/bearpi-h2821_pico-master/bearpi-h2821_pico-master/protocol/nfc/controller/standard-bs21-n1100
-- Configuring done
-- Generating done
-- Build files have been written to: D:/work/BearPi-Pico H2821/bearpi-h2821_pico-master/bearpi-h2821_pico-master/output/bs21/acore/standard-bs21-n1100
[1/23] Building C object CMakeFiles/application.dir/temp/null_.c.obj
[2/23] Building ASM object application/bs21/standard/CMakeFiles/standard_porting.dir/startup.S.obj
[3/23] Building C object application/samples/CMakeFiles/samples.dir/peripheral/blinky/blinky_cmsis.c.obj
[4/23] Building C object application/bs21/standard/CMakeFiles/standard_porting.dir/main.c.obj
[5/23] Linking C static library application\samples\libsamples.a
[6/23] Linking C static library application\bs21\standard\libstandard_porting.a
[7/23] Linking C executable application.elf
Memory region Used Size Region Size %age Used
ROM: 0 GB 171 KB 0.00%
ITCM: 48496 B 80 KB 59.20%
DTCM: 12384 B 65280 B 18.97%
PRESERVE: 252 B 256 B 98.44%
FLASH_STARTUP: 520 B 768 B 67.71%
FLASH_PROGRAM: 393792 B 428544 B 91.89%
CPUTRACE_RAM: 1020 B 1020 B 100.00%
[8/23] cmd.exe /C "cd /D "D:\work\BearPi-Pico H2821\bearpi-h2821_pico-master\bearpi-h2821_pico-master\output\bs21\acore\standard-bs21-n1100" && "D:\work\BearPi-Pico H2821\bearpi-h2821_pico-master\bearpi-h2821_pico-master\tools\bin\compiler\riscv\cc_riscv32_musl_b010\cc_riscv32_musl_fp_win\bin\riscv32-linux-musl-nm.exe" -S -n --format=sysv application.elf > application.nm"
[9/23] post_build:gen rom and ram bin file
[10/23] cmd.exe /C "cd /D "D:\work\BearPi-Pico H2821\bearpi-h2821_pico-master\bearpi-h2821_pico-master\output\bs21\acore\standard-bs21-n1100" && "D:\work\BearPi-Pico H2821\bearpi-h2821_pico-master\bearpi-h2821_pico-master\tools\bin\compiler\riscv\cc_riscv32_musl_b010\cc_riscv32_musl_fp_win\bin\riscv32-linux-musl-objcopy.exe" -O ihex application.elf application_std.hex"
[11/23] cmd.exe /C "cd /D "D:\work\BearPi-Pico H2821\bearpi-h2821_pico-master\bearpi-h2821_pico-master\output\bs21\acore\standard-bs21-n1100" && "D:\work\BearPi-Pico H2821\DevTools_CFBB_V1.0.12\thirdparty\python\python.exe" "D:/work/BearPi-Pico H2821/bearpi-h2821_pico-master/bearpi-h2821_pico-master/build/script/utils/create_hex.py" application_rom.bin application_rom.hex"
[12/23] cmd.exe /C "cd /D "D:\work\BearPi-Pico H2821\bearpi-h2821_pico-master\bearpi-h2821_pico-master\middleware\chips\bs21\nv\nv_config\bs21_nv_default" && "D:\work\BearPi-Pico H2821\DevTools_CFBB_V1.0.12\thirdparty\python\python.exe" "D:/work/BearPi-Pico H2821/bearpi-h2821_pico-master/bearpi-h2821_pico-master/build/script/nv/generate_utils.py" NV include "D:/work/BearPi-Pico H2821/bearpi-h2821_pico-master/bearpi-h2821_pico-master/output/bs21/acore/standard-bs21-n1100/nv_config/etypes/acore.c" && "D:\work\BearPi-Pico H2821\bearpi-h2821_pico-master\bearpi-h2821_pico-master\tools\bin\compiler\riscv\cc_riscv32_musl_b010\cc_riscv32_musl_fp_win\bin\riscv32-linux-musl-gcc.exe" -o "D:/work/BearPi-Pico H2821/bearpi-h2821_pico-master/bearpi-h2821_pico-master/output/bs21/acore/standard-bs21-n1100/nv_config/etypes/acore.etypes" "-ID:/work/BearPi-Pico H2821/bearpi-h2821_pico-master/bearpi-h2821_pico-master/include" "-ID:/work/BearPi-Pico H2821/bearpi-h2821_pico-master/bearpi-h2821_pico-master/middleware/utils/common_headers/native" "-ID:/work/BearPi-Pico H2821/bearpi-h2821_pico-master/bearpi-h2821_pico-master/middleware/chips/bs21/nv/nv_config/bs21_nv_default/include" -DCONFIG_NV_SUPPORT_SINGLE_CORE_SYSTEM -E "D:/work/BearPi-Pico H2821/bearpi-h2821_pico-master/bearpi-h2821_pico-master/output/bs21/acore/standard-bs21-n1100/nv_config/etypes/acore.c""
[13/23] update partition bin
Build params success!
[14/23] cmd.exe /C "cd /D "D:\work\BearPi-Pico H2821\bearpi-h2821_pico-master\bearpi-h2821_pico-master\output\bs21\acore\standard-bs21-n1100" && "D:\work\BearPi-Pico H2821\DevTools_CFBB_V1.0.12\thirdparty\python\python.exe" "D:/work/BearPi-Pico H2821/bearpi-h2821_pico-master/bearpi-h2821_pico-master/build/script/utils/create_hex.py" application.bin application.hex"
[15/23] cmd.exe /C "cd /D "D:\work\BearPi-Pico H2821\bearpi-h2821_pico-master\bearpi-h2821_pico-master\output\bs21\acore\standard-bs21-n1100" && "D:\work\BearPi-Pico H2821\DevTools_CFBB_V1.0.12\thirdparty\python\python.exe" "D:/work/BearPi-Pico H2821/bearpi-h2821_pico-master/bearpi-h2821_pico-master/build/script/patch/patch_riscv.py" application.bin application_rom.bin application.nm "D:/work/BearPi-Pico H2821/bearpi-h2821_pico-master/bearpi-h2821_pico-master/build/config/target_config/bs21/patch_config" acore standard-bs21-n1100 "D:/work/BearPi-Pico H2821/bearpi-h2821_pico-master/bearpi-h2821_pico-master/output/bs21/acore/standard-bs21-n1100""
Generating application.bin...
[16/23] sign file:gen boot sign file
[17/23] update nv bin
build nv bin success!!
[18/23] cmd.exe /C "cd /D "D:\work\BearPi-Pico H2821\bearpi-h2821_pico-master\bearpi-h2821_pico-master\output\bs21\acore\standard-bs21-n1100" && "D:\work\BearPi-Pico H2821\bearpi-h2821_pico-master\bearpi-h2821_pico-master\tools\bin\compiler\riscv\cc_riscv32_musl_b010\cc_riscv32_musl_fp_win\bin\riscv32-linux-musl-objdump.exe" -d -m riscv application.elf > application.asm"
[19/23] copy bin file
[20/23] copy bin file
[21/23] cmd.exe /C "cd /D "D:\work\BearPi-Pico H2821\bearpi-h2821_pico-master\bearpi-h2821_pico-master\tools\bin\compiler\riscv\cc_riscv32_musl_b010\cc_riscv32_musl_fp_win\bin" && "D:\work\BearPi-Pico H2821\bearpi-h2821_pico-master\bearpi-h2821_pico-master\tools\bin\compiler\riscv\cc_riscv32_musl_b010\cc_riscv32_musl_fp_win\bin\riscv32-linux-musl-objcopy.exe" --enable_sec "D:/work/BearPi-Pico H2821/bearpi-h2821_pico-master/bearpi-h2821_pico-master/output/bs21/acore/standard-bs21-n1100/application_sign.bin""
FAILED: CMakeFiles/GENERAT_SEC_IMAGE
cmd.exe /C "cd /D "D:\work\BearPi-Pico H2821\bearpi-h2821_pico-master\bearpi-h2821_pico-master\tools\bin\compiler\riscv\cc_riscv32_musl_b010\cc_riscv32_musl_fp_win\bin" && "D:\work\BearPi-Pico H2821\bearpi-h2821_pico-master\bearpi-h2821_pico-master\tools\bin\compiler\riscv\cc_riscv32_musl_b010\cc_riscv32_musl_fp_win\bin\riscv32-linux-musl-objcopy.exe" --enable_sec "D:/work/BearPi-Pico H2821/bearpi-h2821_pico-master/bearpi-h2821_pico-master/output/bs21/acore/standard-bs21-n1100/application_sign.bin""
(null): error: sign image failed : invalid operation
[22/23] cmd.exe /C "cd /D "D:\work\BearPi-Pico H2821\bearpi-h2821_pico-master\bearpi-h2821_pico-master\output\bs21\acore\standard-bs21-n1100" && "D:\work\BearPi-Pico H2821\bearpi-h2821_pico-master\bearpi-h2821_pico-master\tools\bin\compiler\riscv\cc_riscv32_musl_b010\cc_riscv32_musl_fp_win\bin\riscv32-linux-musl-objdump.exe" -x -S -l application.elf > application.lst"
ninja: build stopped: subcommand failed.
[Warning]:sdk libs import failed.
build reload D:\work\BearPi-Pico H2821\bearpi-h2821_pico-master\bearpi-h2821_pico-master\build\config\target_config\bs21\menuconfig\acore\standard_bs21_n1100.config
D:\work\BearPi-Pico H2821\bearpi-h2821_pico-master\bearpi-h2821_pico-master\build\script.....\config.in
D:\work\BearPi-Pico H2821\bearpi-h2821_pico-master\bearpi-h2821_pico-master
No change to configuration in 'D:\work\BearPi-Pico H2821\bearpi-h2821_pico-master\bearpi-h2821_pico-master\build\script.....\build\config\target_config\bs21\menuconfig\acore\standard_bs21_n1100.config'
D:\work\BearPi-Pico H2821\bearpi-h2821_pico-master\bearpi-h2821_pico-master\build\script.....\config.in
D:\work\BearPi-Pico H2821\bearpi-h2821_pico-master\bearpi-h2821_pico-master
Kconfig header saved to 'D:\work\BearPi-Pico H2821\bearpi-h2821_pico-master\bearpi-h2821_pico-master\output\bs21\acore\standard-bs21-n1100\mconfig.h'
######### Build target:standard_bs21_n1100 failed
scons: *** [application.elf] Failed to build!
please check the compilation log: C:\Users\13688.deveco-device-tool\logs\build\build.log
======================================================================================= [FAILED] Took 9.55 seconds =======================================================================================
Environment Target Status Duration
BS21-N1100-STANDARD clean SUCCESS 00:00:01.378
BS21-N1100-STANDARD buildprog FAILED 00:00:09.550
================================================================================== 1 failed, 1 succeeded in 00:00:10.928 ==================================================================================
- 终端进程“D:\Program\DevEco-Device-Tool\core\deveco-venv\Scripts\hos.exe 'run', '--target', 'clean', '--target', 'buildprog', '--project-dir', 'D:\work\BearPi-Pico H2821\bearpi-h2821_pico-master\bearpi-h2821_pico-master', '--environment', 'BS21-N1100-STANDARD'”已终止,退出代码: 1。
- 终端将被任务重用,按任意键关闭。