如题,在进行sx1278驱动移植时报错很多个"IRQn" has already been declared in the current scope,

发现问题是在stm32f10x.h和stm32f103xe.h中重复定义了很多个这样的中断向量,为什么会同时调用这两个头文件呢?

原来是在这两个文件中包含的头文件写错了

sx1278驱动移植时报错多个"IRQn" has already been declared in the current scope
sx1278驱动移植时报错多个"IRQn" has already been declared in the current scope

我使用的单片机芯片为STM32F103RCT6,而要包含的头文件并不是stm32f10x.h

而是stm32f1xx.h,

修改后,报错消失

STM32F103RCT6芯片,属于F1XX系列的芯片,此次选择错误,需要注意

相关文章:

  • 2022-12-23
  • 2021-11-02
  • 2021-11-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-25
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-16
  • 2022-01-21
  • 2022-12-23
  • 2021-04-29
  • 2021-09-16
  • 2021-08-17
相关资源
相似解决方案