..\CMSIS\stm32f4xx.h(122): error: #35: #error directive: "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
#error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
..\HARDWARE\LED.c: 0 warnings, 1 error
".\Objects\Test.axf" - 46 Error(s), 0 Warning(s).
Target not created.
#error "Please select first the target STM32F4xx device used in your application (in stm32f4xx.h file)"
请首先选择应用程序中使用的目标STM32F4xx设备(在STM32F4xx.h文件中
解决方案:
找到你的设备型号:我这里是STM32F40_41xxx,
点击options for Target,
选择C/C++
填入你的设备:STM32F40_41xxx,USE_STDPERIPH_DRIVER
点编译:
成功!!!!!!