在做SBL时,发现usr code的串口功能有问题。目前怀疑是在SBL程序中串口被PC占用,芯片跳转到USR code执行了,导致USR CODE里面串口初始化失败了。我想要判断一下串口是否被占用,应该怎么实现呢?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
在做SBL时,发现usr code的串口功能有问题。目前怀疑是在SBL程序中串口被PC占用,芯片跳转到USR code执行了,导致USR CODE里面串口初始化失败了。我想要判断一下串口是否被占用,应该怎么实现呢?