1、报错信息
"Start\stm32f10x.h", line 96: Error: #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
#error "Please select first the target STM32F10x device used in your application"
2、解决
原因:stm32f10x.h中没有对应的宏定义
查找使用芯片对应需要配置的宏,比如F103c8t6对应的是STM32F10X_MD
在stm32f10x.h中打开对应的宏定义即可