Hie,
I am using the TMS570 HDK, And I want to Transmit and Receive LIN messages, over a LIN bus.
Is there any code example for LIN communication, in a similar way there are example codes for CAN?
An example would really help.
Cheers, Ishan
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hie,
I am using the TMS570 HDK, And I want to Transmit and Receive LIN messages, over a LIN bus.
Is there any code example for LIN communication, in a similar way there are example codes for CAN?
An example would really help.
Cheers, Ishan
Ishan,
You can use the HALCoGen tool to generate the software you need. I am also attaching some example code for your reference.
Thanks and regards,
Zhaohong
Hi,
Thanks a lot for this example.
But it would be more helpful if you could provide me an example code for the sys_main.c file after the module is configured using HALCOGEN.
similar to the examples given for CANComm,I2C etc in the Halcogen Examples.
Awaiting Your Reply,
Regards,
Ishan
Hi,
Thanks a lot for this example.
But it would be more helpful if you could provide me an example code for the sys_main.c file after the module is configured using HALCOGEN.
similar to the examples given for CANComm,I2C etc in the Halcogen Examples.
Awaiting Your Reply,
Regards,
Ishan
----------
Hi,
I want to ask same question. Can you reply please?
Hi Charles,
I am using the latest version of Halcogen - 04.05.02
Its not there in this halcogen version.
Can you please attach the code file along with the instructions on how to generate halcogen code ?
Thanks and Regards,
Neeraj
The example is in internal loopback mode. Perhaps this is the reason that you don't see the tx signal. Once you are familiar with the LIN example you can modify it to be in non-loopback mode. You should see LIN tx/rx signals on the booster pack expansion connector once you connect to your transceiver. See below J6 connector for LIN1TX/LIN1RX.