硬汉嵌入式论坛

 找回密码
 立即注册
查看: 1901|回复: 8
收起左侧

[STM32CubeIDE] eclipse +arm-gcc编译失败

[复制链接]

74

主题

1202

回帖

1424

积分

至尊会员

积分
1424
发表于 2021-12-31 22:07:50 | 显示全部楼层 |阅读模式
大佬好,我自己下载了eclipse-embedcpp-2021-12-R-win32-x86_64 gcc-arm-none-eabi-10.3-2021.10-win32
xpack-windows-build-tools-4.2.1-3-win32-x64
该配置也配置了。但是新建stm32工程就是报错,不知道怎么解决。。

  1. 22:05:33 **** Incremental Build of configuration Debug for project cm3 ****
  2. make -j8 all
  3. Building file: ../system/src/stm32f1-hal/stm32f1xx_hal.c
  4. Building file: ../system/src/stm32f1-hal/stm32f1xx_hal_cortex.c
  5. Building file: ../system/src/stm32f1-hal/stm32f1xx_hal_flash.c
  6. Invoking: GNU Arm Cross C Compiler
  7. arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -Wunused -Wuninitialized -Wall -Wextra -Wmissing-declarations -Wconversion -Wpointer-arith -Wshadow -Wlogical-op -Waggregate-return -Wfloat-equal  -g3 -DDEBUG -DUSE_FULL_ASSERT -DSTM32F103xB -DUSE_HAL_DRIVER -DHSE_VALUE=8000000 -I"../include" -I"../system/include" -I"../system/include/cmsis" -I"../system/include/stm32f1-hal" -std=gnu11 -Wmissing-prototypes -Wstrict-prototypes -Wbad-function-cast -Wno-unused-parameter -Wno-conversion -Wno-sign-conversion -Wno-bad-function-cast -Wno-unused-variable -Wno-implicit-function-declaration -MMD -MP -MF"system/src/stm32f1-hal/stm32f1xx_hal.d" -MT"system/src/stm32f1-hal/stm32f1xx_hal.o" -c -o "system/src/stm32f1-hal/stm32f1xx_hal.o" "../system/src/stm32f1-hal/stm32f1xx_hal.c"
  8. Invoking: GNU Arm Cross C Compiler
  9. Invoking: GNU Arm Cross C Compiler
  10. arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -Wunused -Wuninitialized -Wall -Wextra -Wmissing-declarations -Wconversion -Wpointer-arith -Wshadow -Wlogical-op -Waggregate-return -Wfloat-equal  -g3 -DDEBUG -DUSE_FULL_ASSERT -DSTM32F103xB -DUSE_HAL_DRIVER -DHSE_VALUE=8000000 -I"../include" -I"../system/include" -I"../system/include/cmsis" -I"../system/include/stm32f1-hal" -std=gnu11 -Wmissing-prototypes -Wstrict-prototypes -Wbad-function-cast -Wno-unused-parameter -Wno-conversion -Wno-sign-conversion -Wno-bad-function-cast -Wno-unused-variable -Wno-implicit-function-declaration -MMD -MP -MF"system/src/stm32f1-hal/stm32f1xx_hal_cortex.d" -MT"system/src/stm32f1-hal/stm32f1xx_hal_cortex.o" -c -o "system/src/stm32f1-hal/stm32f1xx_hal_cortex.o" "../system/src/stm32f1-hal/stm32f1xx_hal_cortex.c"
  11. arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -Wunused -Wuninitialized -Wall -Wextra -Wmissing-declarations -Wconversion -Wpointer-arith -Wshadow -Wlogical-op -Waggregate-return -Wfloat-equal  -g3 -DDEBUG -DUSE_FULL_ASSERT -DSTM32F103xB -DUSE_HAL_DRIVER -DHSE_VALUE=8000000 -I"../include" -I"../system/include" -I"../system/include/cmsis" -I"../system/include/stm32f1-hal" -std=gnu11 -Wmissing-prototypes -Wstrict-prototypes -Wbad-function-cast -Wno-unused-parameter -Wno-conversion -Wno-sign-conversion -Wno-bad-function-cast -Wno-unused-variable -Wno-implicit-function-declaration -MMD -MP -MF"system/src/stm32f1-hal/stm32f1xx_hal_flash.d" -MT"system/src/stm32f1-hal/stm32f1xx_hal_flash.o" -c -o "system/src/stm32f1-hal/stm32f1xx_hal_flash.o" "../system/src/stm32f1-hal/stm32f1xx_hal_flash.c"
  12. make: *** [system/src/stm32f1-hal/subdir.mk:42: system/src/stm32f1-hal/stm32f1xx_hal.o] Error -1073741819
  13. make: *** Waiting for unfinished jobs....
  14. Building file: ../system/src/stm32f1-hal/stm32f1xx_hal_flash_ex.c
  15. make: *** [system/src/stm32f1-hal/subdir.mk:42: system/src/stm32f1-hal/stm32f1xx_hal_cortex.o] Error -1073741819
  16. make: *** [system/src/stm32f1-hal/subdir.mk:43: system/src/stm32f1-hal/stm32f1xx_hal_flash.o] Error -1073741819
  17. Invoking: GNU Arm Cross C Compiler
  18. arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -Wunused -Wuninitialized -Wall -Wextra -Wmissing-declarations -Wconversion -Wpointer-arith -Wshadow -Wlogical-op -Waggregate-return -Wfloat-equal  -g3 -DDEBUG -DUSE_FULL_ASSERT -DSTM32F103xB -DUSE_HAL_DRIVER -DHSE_VALUE=8000000 -I"../include" -I"../system/include" -I"../system/include/cmsis" -I"../system/include/stm32f1-hal" -std=gnu11 -Wmissing-prototypes -Wstrict-prototypes -Wbad-function-cast -Wno-unused-parameter -Wno-conversion -Wno-sign-conversion -Wno-bad-function-cast -Wno-unused-variable -Wno-implicit-function-declaration -MMD -MP -MF"system/src/stm32f1-hal/stm32f1xx_hal_flash_ex.d" -MT"system/src/stm32f1-hal/stm32f1xx_hal_flash_ex.o" -c -o "system/src/stm32f1-hal/stm32f1xx_hal_flash_ex.o" "../system/src/stm32f1-hal/stm32f1xx_hal_flash_ex.c"
  19. make: *** [system/src/stm32f1-hal/subdir.mk:44: system/src/stm32f1-hal/stm32f1xx_hal_flash_ex.o] Error -1073741819
  20. "make -j8 all" terminated with exit code 2. Build might be incomplete.

  21. 22:05:33 Build Failed. 5 errors, 0 warnings. (took 301ms)

复制代码




回复

使用道具 举报

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
107128
QQ
发表于 2022-1-1 00:25:21 | 显示全部楼层
帮顶下。
回复

使用道具 举报

74

主题

1202

回帖

1424

积分

至尊会员

积分
1424
 楼主| 发表于 2022-1-2 09:20:25 | 显示全部楼层
本帖最后由 wdliming 于 2022-1-2 09:30 编辑

stm32-start-master.zip (748.65 KB, 下载次数: 3)
硬汉哥,有空看看,我直接在cmd下make可以编译,但是导入到eclipse件编译出错,不知道为啥了,

微信截图_20220102092641.png 微信截图_20220102092741.png 微信截图_20220102092754.png 微信截图_20220102092819.png 微信截图_20220102092832.png
cmd编译是可以的,如下:
  1. D:\eclipse-embedcpp-workspace-2012-12\stm32-start-master\stm32F103_blinky_serial\Debug>make -j8  all
  2. 'Building file: ../system/src/stm32f1-stdperiph/misc.c'
  3. 'Building file: ../system/src/stm32f1-stdperiph/stm32f10x_rcc.c'
  4. 'Building file: ../system/src/stm32f1-stdperiph/stm32f10x_gpio.c'
  5. 'Building file: ../system/src/stm32f1-stdperiph/stm32f10x_usart.c'
  6. 'Building file: ../system/src/newlib/_cxx.cpp'
  7. 'Building file: ../system/src/newlib/_exit.c'
  8. 'Invoking: Cross ARM C Compiler'
  9. 'Invoking: Cross ARM C Compiler'
  10. 'Invoking: Cross ARM C Compiler'
  11. 'Invoking: Cross ARM C++ Compiler'
  12. 'Invoking: Cross ARM C Compiler'
  13. arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-mov'Building file: ../system/src/newlib/_sbrk.c'
  14. e-loop-'Building file: ../system/src/newlib/_startup.c'
  15. invariants -Wall -Wextra  -g3 -DDEBUG -DU'Invoking: Cross ARM C Compiler'
  16. SE_FULL_ASSERT -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=8000000 -I"../include" -I"../system/include" -I"../system/include/cmsis" -I"../system/include/stm32f1-stdperiph" -std=gnu11 -MMD -MP -MF"system/src/stm32f1-stdperiph/misc.d" -MT"system/src/stm32f1-stdperiph/misc.o" -c -o "system/src/stm32f1-stdperiph/misc.o" "../system/src/stm32f1-stdperiph/misc.c"
  17. arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -Wall -Wextra  -g3 -DDEBUG -DUSE_FULL_ASSERT -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=8000000 -I"../include" -I"../system/include" -I"../system/include/cmsis" -I"../system/include/stm32f1-stdperiph" -std=gnu11 -MMD -MP -MF"system/src/stm32f1-stdperiph/stm32f10x_gpio.d" -MT"system/src/stm32f1-stdperiph/stm32f10x_gpio.o" -c -o "system/src/stm32f1-stdperiph/stm32f10x_gpio.o" "../system/src/stm32f1-stdperiph/stm32f10x_gpio.c"
  18. arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -Wall -Wextra  -g3 -DDEBUG -DUSE_FULL_ASSERT -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=8000000 -I"../include" -I"../system/include" -I"../system/include/cmsis" -I"../system/include/stm32f1-stdperiph" -std=gnu11 -MMD -MP -MF"system/src/stm32f1-stdperiph/stm32f10x_rcc.d" -MT"system/src/stm32f1-stdperiph/stm32f10x_rcc.o" -c -o "system/src/stm32f1-stdperiph/stm32f10x_rcc.o" "../system/src/stm32f1-stdperiph/stm32f10x_rcc.c"
  19. arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -Wall -Wextra  -g3 -DDEBUG -DUSE_FULL_ASSERT -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=8000000 -I"../include" -I"../system/include" -I"../system/include/cmsis" -I"../system/include/stm32f1-stdperiph" -std=gnu11 -MMD -MP -MF"system/src/stm32f1-stdperiph/stm32f10x_usart.d" -MT"system/src/stm32f1-stdperiph/stm32f10x_usart.o" -c -o "system/src/stm32f1-stdperiph/stm32f10x_usart.o" "../system/src/stm32f1-stdperiph/stm32f10x_usart.c"
  20. arm-none-eabi-g++ -mcpu=cortex-m3 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -Wall -Wextra  -g3 -DDEBUG -DUSE_FULL_ASSERT -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=8000000 -I"../include" -I"../system/include" -I"../system/include/cmsis" -I"../system/include/stm32f1-stdperiph" -std=gnu++11 -fabi-version=0 -fno-exceptions -fno-rtti -fno-use-cxa-atexit -fno-threadsafe-statics -MMD -MP -MF"system/src/newlib/_cxx.d" -MT"system/src/newlib/_cxx.o" -c -o "system/src/newlib/_cxx.o" "../system/src/newlib/_cxx.cpp"
  21. arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invari'Invoking: Cross ARM C Compiler'
  22. ants -Wall -Wextra  -g3 -DDEBUG -DUSE_FULL_ASSERT -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=8000000 -I'Invoking: Cross ARM C Compiler'
  23. "../include" -I"../system/include" -I"../system/include/cmsis" -I"../system/include/stm32f1-stdperiph" -std=gnu11 -MMD -MP -MF"system/src/newlib/_exit.d" -MT"system/src/newlib/_exit.o" -c -o "system/src/newlib/_exit.o" "../system/src/newlib/_exit.c"
  24. arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -Wall -Wextra  -g3 -DDEBUG -DUSE_FULL_ASSERT -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=8000000 -I"../include" -I"../system/include" -I"../system/include/cmsis" -I"../system/include/stm32f1-stdperiph" -std=gnu11 -MMD -MP -MF"system/src/newlib/_sbrk.d" -MT"system/src/newlib/_sbrk.o" -c -o "system/src/newlib/_sbrk.o" "../system/src/newlib/_sbrk.c"
  25. arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -Wall -Wextra  -g3 -DDEBUG -DUSE_FULL_ASSERT -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=80000'Finished building: ../system/src/stm32f1-stdperiph/misc.c'
  26. 00 -I"../include" -I"../system/include" -I"../system/include/cmsis" -I"../system/include/stm32f1-stdperiph" -std=gnu11 -MMD -MP -MF"system/src/newlib/_startup.d" -MT"system/src/newlib/_startup.o" -c -o "system/src/newlib/_startup.o" "../system/src/newlib/_startup.c"
  27. ' '
  28. 'Finished building: ../system/src/newlib/_cxx.cpp'
  29. 'Building file: ../system/src/newlib/_syscalls.c'
  30. ' '
  31. 'Finished building: ../system/src/stm32f1-stdperiph/stm32f10x_gpio.c'
  32. 'Invoking: Cross ARM C Compiler'
  33. 'Building file: ../system/src/newlib/assert.c'
  34. 'Finished building: ../system/src/newlib/_exit.c'
  35. arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -Wall -Wextra  -g3 -DDEBUG -DUSE_FULL_ASSERT -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -DHSE_VALUE='Finished building: ../system/src/stm32f1-stdperiph/stm32f10x_rcc.c'
  36. 8000000 -I"../include" -I"../sys'Finished building: ../system/src/newlib/_sbrk.c'
  37. tem/include" -I"../system/include/cmsis" -I"../system/include/stm32f1-stdperiph" -std=gnu11 -MMD -MP -MF"system/src/newlib/_syscalls.d" -MT"system/src/newlib/_syscalls.o" -c -o "system/src/newlib/_syscalls.o" "../system/src/newlib/_syscalls.c"
  38. ' '
  39. 'Finished building: ../system/src/stm32f1-stdperiph/stm32f10x_usart.c'
  40. 'Invoking: Cross ARM C Compiler'
  41. ' '
  42. ' '
  43. arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Og -fmessage-length=0 -fsigned-char'Finished building: ../system/src/newlib/_startup.c'
  44. ' '
  45. -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -Wall -Wextra  -g3 -DDEBUG -DUSE_FULL_ASSERT -DTRACE -DOS_USE_TRACE_SEMIHO' '
  46. 'Building file: ../system/src/diag/Trace.c'
  47. STING_DEBUG -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=8000000 -I"../include" -I"../system/include" -I"../system/include/cmsis" -I"../system/include/stm32f1-stdperiph" -std=gnu11 -MMD -MP -MF"system/src/newlib/assert.d" -MT"system/src/newlib/assert.o" -c -o "system/src/newlib/assert.o" "../system/src/newlib/assert.c"
  48. ' '
  49. 'Invoking: Cross ARM C Compiler'
  50. arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Og -fmessage-length=0 -fsi'Building file: ../system/src/diag/trace_impl.c'
  51. gned-char -ffunction-sections -fdata-sections -ffre'Building file: ../system/src/cortexm/_initialize_hardware.c'
  52. 'Building file: ../system/src/cortexm/exception_handlers.c'
  53. 'Building file: ../system/src/cortexm/_reset_hardware.c'
  54. 'Building file: ../system/src/cmsis/system_stm32f10x.c'
  55. estanding -fno-move-loop-invariants -Wall -Wextra  -g3 -DDEBUG -DUSE_FULL_ASSERT -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=8000000 -I"../include" -I"../system/include" -I"../system/include/cmsis" -I"../system/include/stm32f1-stdperiph" -std=gnu11 -MMD -MP -MF"system/src/diag/Trace.d" -MT"system/src/diag/Trace.o" -c -o "system/src/diag/Trace.o" "../system/src/diag/Trace.c"
  56. 'Finished building: ../system/src/newlib/_syscalls.c'
  57. 'Invoking: Cross ARM C Compiler'
  58. arm-none-eabi-gcc -'Invoking: Cross ARM C Compiler'
  59. 'Invoking: Cross ARM C Compiler'
  60. mcpu=cortex-m3 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreest'Invoking: Cross ARM C Compiler'
  61. an'Invoking: Cross ARM C Compiler'
  62. ding -fno-move-loop-invariants -Wall -Wextra  -g3 -DDEBUG -DUSE_FULL_ASSERT -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=8000000 -I"../include" -I"../system/include" -I"../system/include/cmsis" -I"../system/include/stm32f1-stdperiph" -std=gnu11 -MMD -MP -MF"system/src/diag/trace_impl.d" -MT"system/src/diag/trace_impl.o" -c -o "system/src/diag/trace_impl.o" "../system/src/diag/trace_impl.c"
  63. arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -Wall -Wextra  -g3 -DDEBUG -DUSE_FULL_ASSERT -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=8000000 -I"../include" -I"../system/include" -I"../system/include/cmsis" -I' '
  64. "../system/include/stm32f1-stdperiph" -std=gnu11 -MMD -MP -MF"system/src/cortexm/_initialize_hardware.d" -MT"system/src/cortexm/_initialize_hardw'Finished building: ../system/src/newlib/assert.c'
  65. are.o" -c -o "system/src/cortexm/_initialize_hardware.o" "../system/src/cortexm/_initialize_hardware.c"
  66. arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -Wall -Wextra  -g3 -DDEBUG -DUSE_FULL_ASSERT -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=8000000 -I"../include" -I"../system/include" -I"../system/include/cmsis" -I"../system/include/stm32f1-stdperiph" -std=gnu11 -MMD -MP -MF"system/src/cortexm/_reset_hardware.d" -MT"system/src/cortexm/_reset_hardware.o" -c -o "system/src/cortexm/_reset_hardware.o" "../system/src/cortexm/_reset_hardware.c"
  67. arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -Wall -Wextra  -g3 -DDEBUG -DUSE_FULL_ASSERT -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=8000000 -I"../include" -I"../system/include" -I"../system/include/cmsis" -I"../system/include/stm32f1-stdperiph'Finished building: ../system/src/diag/Trace.c'
  68. " -std=gnu11 -MMD -MP -MF"system/src/cortexm/exception_handlers.d" -MT"system/src/cortexm/exception_handlers.o" -c -o "system/src/cortexm/exception_handlers.o" "../system/src/cortexm/exception_handlers.c"
  69. arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -Wall -Wextra  -g3 -DDEBUG -DUSE_FULL_ASSERT -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=8000000 -I"../include" -I"../system/include" -I"../system/include/cmsis" -I"../system/include/stm32f1-stdperiph" -std=gnu11 -MMD -MP -MF"system/src/cmsis/system_stm32f10x.d" -MT"system/src/cmsis/system_stm32f10x.o" -c -o "system/src/cmsis/system_stm32f10x.o" "../system/src/cmsis/system_stm32f10x.c"
  70. ' '
  71. 'Building file: ../system/src/cmsis/vectors_stm32f10x.c'
  72. ' '
  73. 'Invoking: Cross ARM C Compiler'
  74. arm-none-eabi-gcc -mcpu=cortex-m'Building file: ../src/main.c'
  75. 3 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -Wall -Wextra  -g3 -DDEBUG -DUSE_FULL_ASSERT -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=8000000 -I"../include" -I"../system/include" -I"../system/include/cmsis" -I"../system/include/stm32f1-stdperiph" -std=gnu11 -MMD -MP -MF"system/src/cmsis/vectors_stm32f10x.d" -MT"system/src/cmsis/vectors_stm32f10x.o" -c -o "system/src/cmsis/vectors_stm32f10x.o" "../system/src/cmsis/vectors_stm32f10x.c"
  76. 'Finished building: ../system/src/diag/trace_impl.c'
  77. 'Finished building: ../system/src/cortexm/_initialize_hardware.c'
  78. 'Invoking: Cross ARM C Compiler'
  79. arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -Wall -Wextra  -g3 -DDEBUG -DUSE_FULL_ASSERT -DTRACE -DOS_USE_TRACE_SEMIHOSTING_DEBUG -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=8000000 -I"../include" -I"../system/include" -I"../system/include/cm' '
  80. sis" -I"../system/include/stm32f1-stdperiph" -std=gnu11 -MMD -MP -MF"src/main.d' '
  81. " -MT"src/main.o" -c -o "src/main.o" "../src/main.c"
  82. 'Finished building: ../system/src/cortexm/_reset_hardware.c'
  83. ' '
  84. 'Finished building: ../system/src/cmsis/vectors_stm32f10x.c'
  85. ' '
  86. 'Finished building: ../system/src/cortexm/exception_handlers.c'
  87. 'Finished building: ../system/src/cmsis/system_stm32f10x.c'
  88. ' '
  89. ' '
  90. 'Finished building: ../src/main.c'
  91. ' '
  92. 'Building target: stm32F103_blinky_serial.elf'
  93. 'Invoking: Cross ARM C++ Linker'
  94. arm-none-eabi-g++ -mcpu=cortex-m3 -mthumb -Og -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -fno-move-loop-invariants -Wall -Wextra  -g3 -T mem.ld -T libs.ld -T sections.ld -nostartfiles -Xlinker --gc-sections -L"../ldscripts" -Wl,-Map,"stm32F103_blinky_serial.map" --specs=nano.specs -o "stm32F103_blinky_serial.elf"  ./system/src/stm32f1-stdperiph/misc.o ./system/src/stm32f1-stdperiph/stm32f10x_gpio.o ./system/src/stm32f1-stdperiph/stm32f10x_rcc.o ./system/src/stm32f1-stdperiph/stm32f10x_usart.o  ./system/src/newlib/_cxx.o ./system/src/newlib/_exit.o ./system/src/newlib/_sbrk.o ./system/src/newlib/_startup.o ./system/src/newlib/_syscalls.o ./system/src/newlib/assert.o  ./system/src/diag/Trace.o ./system/src/diag/trace_impl.o  ./system/src/cortexm/_initialize_hardware.o ./system/src/cortexm/_reset_hardware.o ./system/src/cortexm/exception_handlers.o  ./system/src/cmsis/system_stm32f10x.o ./system/src/cmsis/vectors_stm32f10x.o  ./src/main.o
  95. 'Finished building target: stm32F103_blinky_serial.elf'
  96. ' '
  97. 'Invoking: Cross ARM GNU Create Flash Image'
  98. arm-none-ea'Invoking: Cross ARM GNU Print Size'
  99. bi-objcopy -O ihex "stm32F103_blinky_serial.elf"  "stm32F103_blinky_serial.hex"
  100. arm-none-eabi-size --format=berkeley "stm32F103_blinky_serial.elf"
  101.    text    data     bss     dec     hex filename
  102.    7308     196     420    7924    1ef4 stm32F103_blinky_serial.elf
  103. 'Finished building: stm32F103_blinky_serial.hex'
  104. 'Finished building: stm32F103_blinky_serial.siz'
  105. ' '
  106. ' '

  107. D:\eclipse-embedcpp-workspace-2012-12\stm32-start-master\stm32F103_blinky_serial\Debug>
复制代码




回复

使用道具 举报

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
107128
QQ
发表于 2022-1-3 09:20:50 | 显示全部楼层
wdliming 发表于 2022-1-2 09:20
硬汉哥,有空看看,我直接在cmd下make可以编译,但是导入到eclipse件编译出错,不知道为啥了,

看看坛友有懂这个的帮你看看。
回复

使用道具 举报

74

主题

1202

回帖

1424

积分

至尊会员

积分
1424
 楼主| 发表于 2022-1-3 13:02:21 | 显示全部楼层
曲线救国,在vscode上面调试倒是配置成功了,
回复

使用道具 举报

74

主题

1202

回帖

1424

积分

至尊会员

积分
1424
 楼主| 发表于 2022-1-3 13:03:17 | 显示全部楼层
eric2013 发表于 2022-1-3 09:20
看看坛友有懂这个的帮你看看。

话说vscode所谓的轻量级,安装了插件后(有1G多)就不轻量了,但是有点好处,插件可以随便放。
回复

使用道具 举报

74

主题

1202

回帖

1424

积分

至尊会员

积分
1424
 楼主| 发表于 2022-1-4 10:13:09 | 显示全部楼层
搞定了,是make工具链有问题,使用xpack-windows-build-tools-4.2.1-2 版本即可~~~醉了
回复

使用道具 举报

210

主题

1045

回帖

1685

积分

至尊会员

More we do, more we can do.

积分
1685
发表于 2022-1-4 14:23:36 | 显示全部楼层
上午本来验证了,后来有事没回复。编译是正常的:
截屏_2022-01-04_09-01-50.png
回复

使用道具 举报

74

主题

1202

回帖

1424

积分

至尊会员

积分
1424
 楼主| 发表于 2022-1-4 15:38:22 | 显示全部楼层
emwin 发表于 2022-1-4 14:23
上午本来验证了,后来有事没回复。编译是正常的:

谢谢我也知道原因了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2024-5-20 01:14 , Processed in 0.208161 second(s), 28 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表