..\..\User\core_cm3.h(1569): error: #20: identifier "IRQn_Type" is undefined

出错是因为你当前运行的文件调用到了core_cm3.h,而core_cm3.h文件中包含了有IRQn_Type类型名,但是此类型名是在“stm32f10x.h”中定义的,所以你需要在当前文件包含#include "core_cm3.h"之前先包含#include "stm32f10x.h"

猜你喜欢

转载自blog.csdn.net/m0_37827405/article/details/82021289