AnsweredAssumed Answered

LIN_Stack Package for Kinetis

Question asked by Hani Samara on Nov 28, 2017
Latest reply on Jan 4, 2018 by Hui_Ma

Hello all,

 

i just installed the Lin_stack_package FSL_LIN_2.x_STACK_Package_4.5.9 and generate the code for my TRK Kinetis EA64. I can compile the code with codewarrior and flash the mcu. I built a CANoe Simulation to simulate the Master. I use the Lin connector on the TRK to connect with LIN/CANoe. My Master has a single frame with 2 signals. The Slave (TRK) has on Frame with 2 signals. I need just to turn the LEDs On and OFF with Lin. But my Slave is not responding!! The master plays the schedule table periodically. I can see the Master frame on the bus, and the master puts the Header of the Slave frame on the bus too, but the Slave do not answer!! 

 

LIN 2.0

Slave Mode

UART_LIN 0

speed 19.2 kbps

 

find attached the LDF and NPF files and the main.c file. In the main i just chek the two Lin Signals and switch the LEDs on or off according to the received signal. The application is toggle the LED0 every 125ms just to know that the applicaion is running.

 

Thank you

Hani

Attachments

Outcomes