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.

Using LIN on TMS570LS1227 Development Kit

Other Parts Discussed in Thread: HALCOGEN

Hello everybody,

we are trying to use the LIN Module of the TMS570 MCU. We already connected an external LIN Transceiver from Elmos to the development kit of the TMS570.

LIN Frames sent from an external USB2LIN Device (As Master) are shown on the RX Line of the Transceiver. But the MCU do not register any interrupts due to any received LIN Frame.

In the opposite direction the MCU could not send a LIN Frame on the LIN Bus.

Any suggestions?

Thanks

Charbel

  • Assume that LIN on MCU operates as a slave with a predetermined ID.

    (1) Make sure that the external master send message with correct slave ID.
    (2) Make sure that the baudrate is the same for master and slave or enable adaptive mode on slave.

    Thanks and regards,

    Zhaohong
  • Hello Zhaohong,

    thanks for your answer.

    External master and slave (MCU) has the same baudrate. The ID sent by external Master is correct.

    We could find any setting to change MCU operation mode (Master/Slave) with predetermined ID.
    We are using HalcoGen.
    Any Idea?

    Thanks for your support
    Charbel
  • LIN master initiates a LIN messaging by sending a sync byte and ID byte. A LIN ID interrupt will be generated in Hercules LIN slave if (1) ID value matches to the value in LINID register and (2) ID interrupt is enabled. I do not see HALCoGen is setting up the LINID register. You may need to set up your self. You can also check the SCIFLR register (offset 0x1c) to see if any flag gets set. Please check the LIN section in the TRM for more details. HALCoGen cannot do everything. You may need to add your own code.

    Thanks and regards,

    Zhaohong