你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

stm32 vs code extension 无法编译成功

[复制链接]
da1s1s 提问时间:2024-10-21 23:12 / 未解决
[main] 正在生成文件夹: C:/Users/Administrator/Desktop/HK_STM32_PLC_vscode/build/Debug 
[main] 正在配置项目: HK_STM32_PLC_vscode 
[proc] 执行命令: F:\programs\STM32CubeCLT_1.16.0\CMake\bin\cmake.EXE -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=C:/Users/Administrator/Desktop/HK_STM32_PLC_vscode/cmake/gcc-arm-none-eabi.cmake -SC:/Users/Administrator/Desktop/HK_STM32_PLC_vscode -BC:/Users/Administrator/Desktop/HK_STM32_PLC_vscode/build/Debug -G Ninja
[cmake] Build type: Debug
[cmake] -- Configuring done (0.1s)
[cmake] -- Generating done (0.0s)
[cmake] -- Build files have been written to: C:/Users/Administrator/Desktop/HK_STM32_PLC_vscode/build/Debug
[build] 正在启动生成
[proc] 执行命令: F:\programs\STM32CubeCLT_1.16.0\CMake\bin\cmake.EXE --build C:/Users/Administrator/Desktop/HK_STM32_PLC_vscode/build/Debug --
[build] [1/1] Linking C executable HK_STM32_PLC.elf
[build] FAILED: HK_STM32_PLC.elf 
[build] C:\Windows\system32\cmd.exe /C "cd . && F:\programs\STM32CubeCLT_1.16.0\GNU-tools-for-STM32\bin\arm-none-eabi-gcc.exe -mcpu=cortex-m3  -Wall -Wextra -Wpedantic -fdata-sections -ffunction-sections -O0 -g3 -mcpu=cortex-m3  -Wall -Wextra -Wpedantic -fdata-sections -ffunction-sections -O0 -g3 -g -mcpu=cortex-m3  -T "C:/Users/Administrator/Desktop/HK_STM32_PLC_vscode/STM32F103VETx_FLASH.ld" --specs=nano.specs -Wl,-Map=HK_STM32_PLC.map -Wl,--gc-sections -Wl,--start-group -lc -lm -Wl,--end-group -Wl,--print-memory-usage  CMakeFiles/HK_STM32_PLC.dir/Core/Src/main.c.obj CMakeFiles/HK_STM32_PLC.dir/Core/Src/gpio.c.obj CMakeFiles/HK_STM32_PLC.dir/Core/Src/freertos.c.obj CMakeFiles/HK_STM32_PLC.dir/Core/Src/adc.c.obj CMakeFiles/HK_STM32_PLC.dir/Core/Src/dac.c.obj CMakeFiles/HK_STM32_PLC.dir/Core/Src/dma.c.obj CMakeFiles/HK_STM32_PLC.dir/Core/Src/tim.c.obj CMakeFiles/HK_STM32_PLC.dir/Core/Src/usart.c.obj CMakeFiles/HK_STM32_PLC.dir/Core/Src/stm32f1xx_it.c.obj CMakeFiles/HK_STM32_PLC.dir/Core/Src/stm32f1xx_hal_msp.c.obj CMakeFiles/HK_STM32_PLC.dir/Core/Src/stm32f1xx_hal_timebase_tim.c.obj CMakeFiles/HK_STM32_PLC.dir/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio_ex.c.obj CMakeFiles/HK_STM32_PLC.dir/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.c.obj CMakeFiles/HK_STM32_PLC.dir/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc_ex.c.obj CMakeFiles/HK_STM32_PLC.dir/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.c.obj CMakeFiles/HK_STM32_PLC.dir/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc.c.obj CMakeFiles/HK_STM32_PLC.dir/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_rcc_ex.c.obj CMakeFiles/HK_STM32_PLC.dir/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_gpio.c.obj CMakeFiles/HK_STM32_PLC.dir/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.c.obj CMakeFiles/HK_STM32_PLC.dir/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.c.obj CMakeFiles/HK_STM32_PLC.dir/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_pwr.c.obj CMakeFiles/HK_STM32_PLC.dir/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash.c.obj CMakeFiles/HK_STM32_PLC.dir/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_flash_ex.c.obj CMakeFiles/HK_STM32_PLC.dir/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_exti.c.obj CMakeFiles/HK_STM32_PLC.dir/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dac.c.obj CMakeFiles/HK_STM32_PLC.dir/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dac_ex.c.obj CMakeFiles/HK_STM32_PLC.dir/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim.c.obj CMakeFiles/HK_STM32_PLC.dir/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_tim_ex.c.obj CMakeFiles/HK_STM32_PLC.dir/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_uart.c.obj CMakeFiles/HK_STM32_PLC.dir/Core/Src/system_stm32f1xx.c.obj CMakeFiles/HK_STM32_PLC.dir/Middlewares/Third_Party/FreeRTOS/Source/croutine.c.obj CMakeFiles/HK_STM32_PLC.dir/Middlewares/Third_Party/FreeRTOS/Source/event_groups.c.obj CMakeFiles/HK_STM32_PLC.dir/Middlewares/Third_Party/FreeRTOS/Source/list.c.obj CMakeFiles/HK_STM32_PLC.dir/Middlewares/Third_Party/FreeRTOS/Source/queue.c.obj CMakeFiles/HK_STM32_PLC.dir/Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c.obj CMakeFiles/HK_STM32_PLC.dir/Middlewares/Third_Party/FreeRTOS/Source/tasks.c.obj CMakeFiles/HK_STM32_PLC.dir/Middlewares/Third_Party/FreeRTOS/Source/timers.c.obj CMakeFiles/HK_STM32_PLC.dir/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS_V2/cmsis_os2.c.obj CMakeFiles/HK_STM32_PLC.dir/Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c.obj CMakeFiles/HK_STM32_PLC.dir/Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM3/port.c.obj CMakeFiles/HK_STM32_PLC.dir/Core/Src/sysmem.c.obj CMakeFiles/HK_STM32_PLC.dir/Core/Src/syscalls.c.obj CMakeFiles/HK_STM32_PLC.dir/startup_stm32f103xe.s.obj -o HK_STM32_PLC.elf   && cd ."
[build] F:/programs/STM32CubeCLT_1.16.0/GNU-tools-for-STM32/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe:C:/Users/Administrator/Desktop/HK_STM32_PLC_vscode/STM32F103VETx_FLASH.ld:56: syntax error
[build] collect2.exe: error: ld returned 1 exit status
[build] ninja: build stopped: subcommand failed.
[proc] 命令“F:\programs\STM32CubeCLT_1.16.0\CMake\bin\cmake.EXE --build C:/Users/Administrator/Desktop/HK_STM32_PLC_vscode/build/Debug --”已退出,代码为 1
[driver] 生成完毕: 00:00:00.110
[build] 生成已完成,退出代码为 1
收藏 评论1 发布时间:2024-10-21 23:12

举报

1个回答
STMCU-管管 回答时间:2024-10-23 11:37:03

论坛搜一下vs code看看有类似的笔记

所属标签

相似问题

官网相关资源

关于
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
意法半导体官网
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
官方最新发布
STM32N6 AI生态系统
STM32MCU,MPU高性能GUI
ST ACEPACK电源模块
意法半导体生物传感器
STM32Cube扩展软件包
关注我们
st-img 微信公众号
st-img 手机版