I'm Building the S32K148 LIN example in MBD MATLAB, but I'm not getting any output at the LIN receiver side. I tried with LIN1 and LIN2 both and on the hardware side we connect LIN serial analyzer i.e. S32K148 is the master and LIN serial analyzer is a slave.
Hello,Has this problem been solved.
Hello, @saurabhkulkarni123
The main reason that LIN peripheral could not work is not powering the evk with an external source. Did you power the S32K148 board with an external 12V DC power supply? LIN peripheral is working via SBC UJA113x chip and it needs an external power. To power up the board from the external source, you have to move the J8 jumper to 1-2 and let the default ones.
Also, please keep in mind that for S32K148-EVK, LIN1 instance is connected to the LPUART0 and LIN2 instance is connected to the LPUART2, as depicted below.
So, in order to use J13 pins for LIN1, you have to set inside the LIN configuration block for your model instance 0 and to make sure that pins for LPUART0_Tx and LPUART0_Rx are configured as PTA3 and PTA2, according to schematics.
Hope this will help you!
Let me know if it worked.
Regards,
Stefan.
Hello @stefancinipeanu
I'm tired of all configurations like LIN0 as master and LIN2 as a slave. and connect 12v power and put J8 jumper to 1-2 also but I'm not getting any output it shows every and the frame id is 0, here I'm using S32K 148 NXP wit REV-B, I'm also attaching the model here. Please check it once.
From this post turns out that there is a hardware issue with S32K148 RevB evaluation boards.
Currently, we do not have available this revision and cannot test it, but we are looking deeper into this issue.
Regards,
Stefan.
Hello @stefancinipeanu
I'm tired of all configurations like LIN0 as master and LIN2 as a slave. and connect 12v power also but I'm not getting any output. I am checking it with LIN ISR is data transmitted or not but its not work I'm also attaching the model here. Please check it once
Hello @stefancinipeanu
I'm tired of all configurations like LIN0 as master and LIN2 as a slave. and connect 12v power also but I'm not getting any output.
I'm also attaching the model here. Please check it once