stm32 keil 软件调试,使用虚拟串口错误代码*** error 30: undefined name of virtual register

在配置虚拟串口跟Keil通信的时候,如果移植的是Keil4的工程,打开DEBUG之后会提示:

error 30: undefined name of virtual register,这是,打开Options for target,进行配置

箭头处填写错误,复制其他程序的正确配置。

错误过程分析,查看串口配置,发现波特率配置与其他正确程序不一样,


猜你喜欢

转载自blog.csdn.net/weixin_42445727/article/details/80745386