显示错误…\CORE\core_cm3.h(1502):错误:#20:identifier “IRQn_Type” is undefined
static __INLINE void NVIC_EnableIRQ(IRQn_Type IRQn)
翻译:…\CORE\core_cm3.h(1515):错误:#20:标识符“IRQn_Type”是未定义的
static __INLINE void NVIC_DisableIRQ(IRQn_Type IRQn)
解决方案:
特别注意要将#include "stm32f10x.h"放在#include "core_cm3.h"的前面。
2.串口调试助手显示搜索不到任何串口的时候;
可能是学习板的连接USB_232数据线有问题,建议换数据线尝试;