board:DEVKIT-MPC5748G
IDE:S32DS PA 2.1
now ,i use the MPC5748G LIN0 interface ,i need to receive all message in the bus ;
so i nned set it to Identifier mask mode ,if there has some demo code?
the "MPC5748G-LINFlex-LIN-Master-Slave-test-GHS616" code is in Identifier list mode , not fit me
can you help me?
Hi,
you should be able to modify a code for your need. Check chapter 45.4.2.6 Identifier filtering of the device RM and change IFER, IFMR, and IFCRn accordingly.
BR, Petr
HI,
i use Lin0 in slave mode and i set filter as follow:
Hi,
this is proper behavior. It is described in the RM
if there is match with filter then DFL, CCS, DIR is given by value set in IFCR.
In case of no filter match and BF is set then you get RXI interrupt upon header reception and you can specify BIDR.
BR, Petr
thank reply
but ,when get into RXI ,i still don't know how many bytes data will come in,may be 1 byte ,maybe 2 ,maybe 6...
so when into RXI ,what should write to BIDR?
Hi,
on LIN systems this must be know in advance, during system specification, thus the ID specify payload, direction, CCS.
You cannot receive unknown payload using LINflexD.
BR, Petr