On board S32G-VNP-RDB2 with BSP 42.0.
I got the LIN UART device:
FLEX_LIN: /dev/ttyLF2
LLCE_LIN: ttyLF3 ttyLF4 ttyLF5 ttyLF6
then How can I know the LIN port is in Master or Slave mode?
In Linux user space, for example, with tools like stty or some others.
and How can I set the LIN port mode, master or slave?
Hello, @liujialu_2024
Yes, from hardware view, the LIN could be supported, since described clearly from the S32G2 RM and schematic(both LLCE LIN and LINFlexD).
But from BSP perspective, LIN are not officially supported by the BSP software.
BR
Chenyin
Hi, @liujialu_2024
Thanks for your post.
From BSP UM, the LINFlexD on S32G is configured to UART mode in the BSP, it is not supported as LIN mode(both master and slave) in the BSP.
As a result, there is no such examples/implementation for your requirement.
Sorry for your inconvenience.
BR
Chenyin