LIN non_SDK S32k146 Error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LIN non_SDK S32k146 Error

826 Views
bhushangs101
Contributor I

Hi team,

I am using s32k146 Example non SDK LIN Communication. I have created new project for s32k142 and did necessary changes  in example. For 100 ms timer interrupt generated for transmitting LIN command,  I am attaching my project ZIP with LDF used.

I am sending Command From Code, the first command is receiving in CANOe tool  after that gives an error RcvError and TransmError .

Please Guide me to resolve this errors ASAP.

bhushangs101_0-1722507609136.png

Thank you,
Bhushan

0 Kudos
Reply
3 Replies

783 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

originally this example was done to run with other board working as slave and this master code transmits 2 frames, first publish 2 bytes, second request 2 bytes. 
A schedule table in LDF you shared is expecting 2 frames too, but below ones
- publish 1 byte with ID 0x30
- request 6 bytes with ID 0x33
So you should modify your code accordingly, or modify LDF to follow what you want to sent/receive.
Also you should comment code for TX from main while loop. Use just timer interrupt to trigger new transmission. 

BR, Petr

0 Kudos
Reply

625 Views
bhushangs101
Contributor I

zip file shared for above problem.

0 Kudos
Reply

628 Views
bhushangs101
Contributor I
Hello Team,
1. I am trying to run 3 way valve but , from code i am getting slave not responding error and
at next iteration time getting slave response as shown in LOG file.
2. i have two log files attached ,
A) One from TLIN PRo software when shedule table is run it runs normally without any errors,
B) when i am running from software code (Attached LIN zip ) it gives response some times and some times gives error - slave not responding., receive Frames drop inconsistently.
please verify the LPUART1_IRQ_handler in LIN.c file

Can you please help to feedback on the same.

1.All Components are giving correct response except response from TWVheatcore (0x33) .
2.Above LOG from CVTMS TACO software is written for only TWVheatcore (0x32) and reading response (0x33).
3.From TACO Software and running from TLINPro software delay are same as per given in LDF.
4.Observation : At start 3 way valve is moving from 100% ->127%->100%->0% , itakes 15 second's to complete its init sequence After that it follows command inputs given from user.
5.Is there any special case we need to read for TWVheatcore response(0x33) ? and Delay adjustments?
0 Kudos
Reply