Other Parts Discussed in Thread: Z-STACK
Z-STACK home1.2.2a协议栈默认串口带奇偶校验位,我用串口助手查看串口打印信息的时候,必须设置奇或偶校验才能打印正确。我查看了串口初始化函数MT_UartInit()和HalUARTInit(),都没看到哪里配置的奇偶校验位。如要去掉奇偶检验,请问应该如何修改配置?
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.
Other Parts Discussed in Thread: Z-STACK
谢谢Susan的解答,
问题已解决,原因是因为在初始化的时候,同时进行了MT_UartInit();和HalUARTInit();,去除HalUARTInit();后就好了。现在串口助手无论设置无校验位或奇偶校验位,都能正确显示。