Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

MOTIX™ MCU Forum Discussions

liuyang
Level 1
5 questions asked 5 sign-ins First question asked
Level 1
我通过配置config wizard ,配置了串口波特率为9600,配置了lin的 mode为low -10.4kbaud,Master Baudrate为19200,然后检测波特率仍然为19200,并未改成9600,这是怎么回事,该怎么设置,才能实现主机波特率为9600呢
0 Likes
1 Reply
LinGuohui
Moderator
Moderator First like given 25 sign-ins 5 solutions authored
Moderator

你好,

参考代码中,初始化时LIN_LLD_Init()对UART1的波特率有重新赋值,所以单纯修改config wizard中的值,直接修改的是Device的.c .h文件。此处波特率需要在代码里修改:

LinGuohui_0-1659336031519.png

 

0 Likes