用keil4添加头文件时,为了图方便把创建的头文件放在桌面

stm32编译时出现 error: #35: #error directive: "Please select first the target STM32F10x device used

编译的时候就出现了#error directive: "Please select first the target STM32F10x device used

这时候应该在你的c/c++(stm32编译时出现 error: #35: #error directive: "Please select first the target STM32F10x device used这里找c/c++)里面的Define输入:  USE_STDPERIPH_DRIVER,STM32F10X_MD

其中MD根据你选择的机种更换为LD或HD

stm32编译时出现 error: #35: #error directive: "Please select first the target STM32F10x device used

相关文章:

  • 2021-11-18
  • 2021-06-07
  • 2021-09-25
  • 2022-02-04
  • 2021-06-05
  • 2021-04-10
猜你喜欢
  • 2022-12-23
  • 2021-06-22
  • 2021-05-06
  • 2021-12-08
  • 2022-12-23
  • 2021-08-30
  • 2021-11-27
相关资源
相似解决方案