KEIL 4 迁移到KEIL5工程报错


Build target 'ST_DEMO'
compiling main.c...
"no source": Error: command-line:  #992: invalid macro definition: STM32F10X_HD.USE_STDPERIPH_DRIVER
..\..\USER\SRC\main.c: 0 warnings, 1 error
compiling stm32f10x_it.c...
"no source": Error: command-line:  #992: invalid macro definition: STM32F10X_HD.USE_STDPERIPH_DRIVER
..\..\USER\SRC\stm32f10x_it.c: 0 warnings, 1 error
compiling system_stm32f10x.c...
"no source": Error: command-line:  #992: invalid macro definition: STM32F10X_HD.USE_STDPERIPH_DRIVER
..\..\USER\SRC\system_stm32f10x.c: 0 warnings, 1 error
compiling led.c...
"no source": Error: command-line:  #992: invalid macro definition: STM32F10X_HD.USE_STDPERIPH_DRIVER
..\..\HARDWARE\led\led.c: 0 warnings, 1 error
compiling spi.c...
"no source": Error: command-line:  #992: invalid macro definition: STM32F10X_HD.USE_STDPERIPH_DRIVER
..\..\HARDWARE\spi\spi.c: 0 warnings, 1 error
compiling delay.c...
"no source": Error: command-line:  #992: invalid macro definition: STM32F10X_HD.USE_STDPERIPH_DRIVER
..\..\Public_Fun\delay\delay.c: 0 warnings, 1 error
compiling stm32f10x_rcc.c...
"no source": Error: command-line:  #992: invalid macro definition: STM32F10X_HD.USE_STDPERIPH_DRIVER
..\..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_rcc.c: 0 warnings, 1 error
compiling misc.c...
"no source": Error: command-line:  #992: invalid macro definition: STM32F10X_HD.USE_STDPERIPH_DRIVER
..\..\Libraries\STM32F10x_StdPeriph_Driver\src\misc.c: 0 warnings, 1 error
compiling stm32f10x_gpio.c...
"no source": Error: command-line:  #992: invalid macro definition: STM32F10X_HD.USE_STDPERIPH_DRIVER
..\..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_gpio.c: 0 warnings, 1 error
compiling stm32f10x_usart.c...
"no source": Error: command-line:  #992: invalid macro definition: STM32F10X_HD.USE_STDPERIPH_DRIVER
..\..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_usart.c: 0 warnings, 1 error
compiling stm32f10x_spi.c...
"no source": Error: command-line:  #992: invalid macro definition: STM32F10X_HD.USE_STDPERIPH_DRIVER
..\..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_spi.c: 0 warnings, 1 error
compiling core_cm3.c...
"no source": Error: command-line:  #992: invalid macro definition: STM32F10X_HD.USE_STDPERIPH_DRIVER
..\..\Libraries\CMSIS\CM3\CoreSupport\core_cm3.c: 0 warnings, 1 error
linking...
..\OBJ\ST_DEMO_value.axf: error: L6002U: Could not open file ..\obj\main.o: No such file or directory
Finished: 0 information, 0 warning, 0 error and 1 fatal error messages.

将STM32F10X_HD删除就可以了。
KEIL 4 迁移到KEIL5工程报错_第1张图片




你可能感兴趣的:(STM32)