LIN Slave error in S9KEAZ128ACLH

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

LIN Slave error in S9KEAZ128ACLH

583 Views
gordonli
Contributor I

Hi NXP expert,

We are using S9KEAZ128ACLH with LIN2.x and SAE J2602 Stack (REV v4.5.9). Our module works as LIN slave. And we only call two functions: ret_8 = l_sys_init() and ret_8 = l_ifc_init(LII0) to initialize the LIN stack. No other LIN stack functions are called in our software. The watchdog is also disabled. 

We halted the slave program in debug mode with CodeWarrior and resume it after about 1 second. The connection with LIN master is lost. But if we did the same operation to the master program, the system can still work fine. Could you help to give some suggestion for these two different behaviors in master and slave node?

When the connection was lost in LIN slave, we try to re-execute the initialization functions: l_sys_init() and l_ifc_init() and the connection cannot be setup again. How can the slave node reconnect to the LIN network without reset the whole slave node?

Thanks

Gordon Li

Labels (1)
0 Kudos
1 Reply

406 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi

Sorry for the delay reply.

For the LIN bus is master/slave mode, the LIN master control the bus communication.

The LIN bus error handling at application layer, please check how the Lin master handle when the slave node without any response.

The LIN slave node doesn't response the master will cause the slave no response error.

Please check the LIN master code how to handle this kind of error.

Wish it helps.


Have a great day,
Mike

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos