[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
|
论坛搜一下vs code看看有类似的笔记