Eclipse C、OpenSTM32 Systems Workbench:在项目上运行构建器“CDT Builder”时出错

问题描述 投票:0回答:1

我正在尝试使用 DWM3000EVB 板和 STM32F429ZI Nucleo 板运行一些示例代码。我正在使用 M1 mac(不确定这是否重要)。

DWM3000EVB模块的API: https://www.qorvo.com/products/p/DWM3000

文档如下:https://github.com/foldedtoad/dwm3000/blob/master/docs/Guide_for_bulding_API_Examples.pdf

按照文档,我下载了 Eclipse C/C++ 和 ARM GNU 工具链并设置了 OpenSTM32 Systems Workbench。

将 ARM GNU Toolchain 添加到 Eclipse 中的 PATH 后,我尝试构建该项目。编译进度条到65%左右就弹出错误窗口:

我尝试从工作区中删除该项目并重新导入,但弹出了相同的错误。

我对构建过程不太了解,所以我可能会错过一些非常明显的东西。任何建议表示赞赏。

编辑: STMCubeIDE 的眨眼示例成功构建并按预期与我的 Nucleo 板配合使用,这让我相信 Cube 的工具链正在工作。

然后,我尝试在 Cube 中打开 OpenSTM32 项目。出现一个对话框,表明转换为 Cube 项目已成功,并包含以下 EVK3000_F429_CubeMX_converter.log 文件:

Project: EVK3000_F429_CubeMX
Converter: ST System Workbench for STM32 project converter
Date: 20240118

Unknown value type "" for id gnu.c.link.option.libs on tool fr.ac6.managedbuild.tool.gnu.cross.c.linker
Option fr.ac6.managedbuild.tool.gnu.cross.cpp.linker.noexceptions is no longer supported
Option fr.ac6.managedbuild.tool.gnu.cross.cpp.linker.nortti is no longer supported
Unrecognized tool command 'as' for tool id fr.ac6.managedbuild.tool.gnu.cross.assembler
Unknown value type "" for id gnu.both.asm.option.include.paths on tool fr.ac6.managedbuild.tool.gnu.cross.assembler

然后,我尝试在 STMCubeIDE 中构建并得到以下错误对话框(省略了一些行以保持在字符限制以下):

02:28:31 **** Build of configuration API_tests_examples for project EVK3000_F429_CubeMX ****
make -j7 all 
arm-none-eabi-gcc -mcpu=cortex-m4 -g3 -c -x assembler-with-cpp -MMD -MP -MF"startup/startup_stm32f429xx.d" -MT"startup/startup_stm32f429xx.o"  -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -o "startup/startup_stm32f429xx.o" "../startup/startup_stm32f429xx.s"
arm-none-eabi-gcc "../platform/deca_mutex.c" -mcpu=cortex-m4 -std=c11 -g3 '-D__weak=__attribute__((weak))' '-D__packed=__attribute__((__packed__))' -DUSE_HAL_DRIVER -DSTM32F429xx -DALL_TESTS_COMPILED -c -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Shared/dwt_uwb_driver/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/examples/examples_info" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/examples/shared_data" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Drivers/CMSIS/Device/ST/STM32F4xx/Include" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Drivers/CMSIS/Include" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Drivers/STM32F4xx_HAL_Driver/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/MAC_802_15_4" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/MAC_802_15_8" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/platform" -O0 -ffunction-sections -Wall -Wextra -pedantic -fstack-usage -MMD -MP -MF"platform/deca_mutex.d" -MT"platform/deca_mutex.o"  -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -o "platform/deca_mutex.o"


(more .o files created, no errors or warnings)


arm-none-eabi-gcc "../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.c" -mcpu=cortex-m4 -std=c11 -g3 '-D__weak=__attribute__((weak))' '-D__packed=__attribute__((__packed__))' -DUSE_HAL_DRIVER -DSTM32F429xx -DALL_TESTS_COMPILED -c -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Shared/dwt_uwb_driver/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/examples/examples_info" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/examples/shared_data" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Drivers/CMSIS/Device/ST/STM32F4xx/Include" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Drivers/CMSIS/Include" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Drivers/STM32F4xx_HAL_Driver/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/MAC_802_15_4" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/MAC_802_15_8" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/platform" -O0 -ffunction-sections -Wall -Wextra -pedantic -fstack-usage -MMD -MP -MF"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.d" -MT"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.o"  -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -o "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.o"
arm-none-eabi-gcc "../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c" -mcpu=cortex-m4 -std=c11 -g3 '-D__weak=__attribute__((weak))' '-D__packed=__attribute__((__packed__))' -DUSE_HAL_DRIVER -DSTM32F429xx -DALL_TESTS_COMPILED -c -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Shared/dwt_uwb_driver/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/examples/examples_info" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/examples/shared_data" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Drivers/CMSIS/Device/ST/STM32F4xx/Include" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Drivers/CMSIS/Include" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Drivers/STM32F4xx_HAL_Driver/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/MAC_802_15_4" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/MAC_802_15_8" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/platform" -O0 -ffunction-sections -Wall -Wextra -pedantic -fstack-usage -MMD -MP -MF"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.d" -MT"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o"  -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -o "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.o"
arm-none-eabi-gcc "../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.c" -mcpu=cortex-m4 -std=c11 -g3 '-D__weak=__attribute__((weak))' '-D__packed=__attribute__((__packed__))' -DUSE_HAL_DRIVER -DSTM32F429xx -DALL_TESTS_COMPILED -c -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Shared/dwt_uwb_driver/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/examples/examples_info" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/examples/shared_data" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Drivers/CMSIS/Device/ST/STM32F4xx/Include" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Drivers/CMSIS/Include" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Drivers/STM32F4xx_HAL_Driver/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/MAC_802_15_4" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/MAC_802_15_8" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/platform" -O0 -ffunction-sections -Wall -Wextra -pedantic -fstack-usage -MMD -MP -MF"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.d" -MT"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o"  -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -o "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.o"
arm-none-eabi-gcc "../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.c" -mcpu=cortex-m4 -std=c11 -g3 '-D__weak=__attribute__((weak))' '-D__packed=__attribute__((__packed__))' -DUSE_HAL_DRIVER -DSTM32F429xx -DALL_TESTS_COMPILED -c -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Shared/dwt_uwb_driver/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/examples/examples_info" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/examples/shared_data" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Drivers/CMSIS/Device/ST/STM32F4xx/Include" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Drivers/CMSIS/Include" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Drivers/STM32F4xx_HAL_Driver/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/MAC_802_15_4" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/MAC_802_15_8" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/platform" -O0 -ffunction-sections -Wall -Wextra -pedantic -fstack-usage -MMD -MP -MF"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.d" -MT"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o"  -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -o "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.o"
arm-none-eabi-gcc "../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c" -mcpu=cortex-m4 -std=c11 -g3 '-D__weak=__attribute__((weak))' '-D__packed=__attribute__((__packed__))' -DUSE_HAL_DRIVER -DSTM32F429xx -DALL_TESTS_COMPILED -c -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Shared/dwt_uwb_driver/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/examples/examples_info" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/examples/shared_data" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Drivers/CMSIS/Device/ST/STM32F4xx/Include" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Drivers/CMSIS/Include" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Drivers/STM32F4xx_HAL_Driver/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/MAC_802_15_4" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/MAC_802_15_8" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/platform" -O0 -ffunction-sections -Wall -Wextra -pedantic -fstack-usage -MMD -MP -MF"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.d" -MT"Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o"  -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -o "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.o"
arm-none-eabi-gcc "../main.c" -mcpu=cortex-m4 -std=c11 -g3 '-D__weak=__attribute__((weak))' '-D__packed=__attribute__((__packed__))' -DUSE_HAL_DRIVER -DSTM32F429xx -DALL_TESTS_COMPILED -c -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Shared/dwt_uwb_driver/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/examples/examples_info" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/examples/shared_data" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Drivers/CMSIS/Device/ST/STM32F4xx/Include" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Drivers/CMSIS/Include" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Drivers/STM32F4xx_HAL_Driver/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/MAC_802_15_4" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/MAC_802_15_8" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/platform" -O0 -ffunction-sections -Wall -Wextra -pedantic -fstack-usage -MMD -MP -MF"main.d" -MT"main.o"  -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -o "main.o"
arm-none-eabi-gcc "../stm32f4xx_hal_msp.c" -mcpu=cortex-m4 -std=c11 -g3 '-D__weak=__attribute__((weak))' '-D__packed=__attribute__((__packed__))' -DUSE_HAL_DRIVER -DSTM32F429xx -DALL_TESTS_COMPILED -c -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Shared/dwt_uwb_driver/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/examples/examples_info" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/examples/shared_data" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Drivers/CMSIS/Device/ST/STM32F4xx/Include" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Drivers/CMSIS/Include" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Drivers/STM32F4xx_HAL_Driver/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/MAC_802_15_4" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/MAC_802_15_8" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/platform" -O0 -ffunction-sections -Wall -Wextra -pedantic -fstack-usage -MMD -MP -MF"stm32f4xx_hal_msp.d" -MT"stm32f4xx_hal_msp.o"  -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -o "stm32f4xx_hal_msp.o"
../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c: In function 'USB_WritePacket':
../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c:886:7: warning: 'packed' attribute ignored for type 'uint32_t *' {aka 'long unsigned int *'} [-Wattributes]
  886 |       USBx_DFIFO(ch_ep_num) = *((__packed uint32_t *)src);
      |       ^~~~~~~~~~
../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c: In function 'USB_ReadPacket':
../Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c:912:5: warning: 'packed' attribute ignored for type 'uint32_t *' {aka 'long unsigned int *'} [-Wattributes]
  912 |     *(__packed uint32_t *)dest = USBx_DFIFO(0U);
      |     ^
arm-none-eabi-gcc "../stm32f4xx_hal_timebase_TIM.c" -mcpu=cortex-m4 -std=c11 -g3 '-D__weak=__attribute__((weak))' '-D__packed=__attribute__((__packed__))' -DUSE_HAL_DRIVER -DSTM32F429xx -DALL_TESTS_COMPILED -c -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Shared/dwt_uwb_driver/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/examples/examples_info" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/examples/shared_data" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Drivers/CMSIS/Device/ST/STM32F4xx/Include" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Drivers/CMSIS/Include" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/Drivers/STM32F4xx_HAL_Driver/Inc" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/MAC_802_15_4" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Src/MAC_802_15_8" -I"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Build_Platforms/STM_Nucleo_F429/platform" -O0 -ffunction-sections -Wall -Wextra -pedantic -fstack-usage -MMD -MP -MF"stm32f4xx_hal_timebase_TIM.d" -MT"stm32f4xx_hal_timebase_TIM.o"  -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -o "stm32f4xx_hal_timebase_TIM.o"


(more .o files created, no errors or warnings)


arm-none-eabi-gcc -o "DW3000_API_CubeMX.elf" @"objects.list"   -mcpu=cortex-m4 -T"../STM32F429ZITx_FLASH.ld" -Wl,-Map="DW3000_API_CubeMX.map" -Wl,--gc-sections -static -L"/Users/jeffreyyang/Desktop/DW3xxx_XR6.0C_24Feb2022/Release_XR6.0C/Software/DW3XXX_API/Sources/DW3XXX_API_rev9p3/API/Shared/dwt_uwb_driver/lib" --specs=rdimon.specs  -Wl,--whole-archive -ldwt_uwb_driver-m4-sfp-6.0.7 -Wl,--no-whole-archive  -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
Finished building target: DW3000_API_CubeMX.elf
 
arm-none-eabi-size   DW3000_API_CubeMX.elf 
arm-none-eabi-objdump -h -S  DW3000_API_CubeMX.elf  > "DW3000_API_CubeMX.list"
   text    data     bss     dec     hex filename
 102552    2856   16812  122220   1dd6c DW3000_API_CubeMX.elf
Finished building: default.size.stdout
 
Finished building: DW3000_API_CubeMX.list
 
arm-none-eabi-objcopy -O binary "DW3000_API_CubeMX.elf" "DW3000_API_CubeMX.bin"
arm-none-eabi-size "DW3000_API_CubeMX.bin"
arm-none-eabi-size: DW3000_API_CubeMX.bin: file format not recognized
make[1]: *** [makefile:135: post-build] Error 3
make: *** [makefile:107: all] Error 2
"make -j7 all" terminated with exit code 2. Build might be incomplete.

02:28:36 Build Failed. 2 errors, 2 warnings. (took 4s.576ms)
embedded stm32 eclipse-cdt
1个回答
0
投票

构建后命令:

arm-none-eabi-objcopy -O binary "DW3000_API_CubeMX.elf" "DW3000_API_CubeMX.bin"

毫无意义。原始 .bin 文件不包含确定大小信息所需的节信息。这就是错误的原因。尽管代码已成功构建并包含

DW3000_API_CubeMX.elf
/
DW3000_API_CubeMX.bin
在这个不必要且错误的构建后步骤之前。

无论如何,信息已经由

objdump
输出了:

   text    data     bss     dec     hex filename
 102552    2856   16812  122220   1dd6c DW3000_API_CubeMX.elf

删除不必要的构建后步骤。无论如何,您应该能够加载并运行 .elf 文件(或 .bin 映像),错误出现在构建后的“仅信息”步骤中。

© www.soinside.com 2019 - 2024. All rights reserved.