renesas / fsp

Flexible Software Package (FSP) for Renesas RA MCU Family
https://renesas.github.io/fsp/
Other
191 stars 82 forks source link

FSP5.4 RA8D1 LIN BUG with uart TX idle state low #367

Open FloHomi opened 1 month ago

FloHomi commented 1 month ago

Hi, I discovered a bug in the LIN Library of the FSP 5.4 The Idle state of the Uart TX is low, but should be hight. There are missing bits in the CCR2 Reg inside r_sci_b_lin.c see picture for blue line fix: image

renesas-abigail commented 1 month ago

Hello @FloHomi,

The reason for the low level is that an external pull up resistor is required on TXD for sci_b_lin.

While basic LIN communication may seem to work after setting the bits you mentioned, other features of the SCI LIN, including bus conflict detection, will not work correctly. This is because SPB2DT may be used in Asynchronous mode and Manchester modes only. Operation in other modes (including Simple LIN mode, which is what sci_b_lin uses) is not guaranteed.

If you have any further questions, feel free to ask.

Abigail

References: