Home Forums Software LIN communication in flexcase E

Viewing 6 reply threads
  • Author
    Posts
    • AkhilaAkhila
      Participant
      Post count: 4

      I am working on LIN, in which I am stuck at some point
      the pins PTC8 and PTC9 (LIN TX and RX), PTB18 and PTB19 (enable and commander/receiver)are configured as per the datasheet.
      1) Currently have configured FLexcase E as master, Can I get LIN frames sent by the master, if slave is not connected?
      2) If slave is required, can PLIN hardware be configured as slave?
      3) I am not able to get any status on freemaster by accessing the datastores.
      I am attaching the files
      kindly check what modifications have to be made in the file or provide example Lin file in which lin frame can be received from PIN(O1).

      Attachments:
      You must be logged in to view attached files.
    • AmirFAmirF
      Moderator
      Post count: 25

      Hi Akhila,
      I didn’t see your mex file in the attached zip. If you have configured the pins correctly in the mex file, please consider checking the following points:
      1. To enable the transceiver, you need to drive the LIN_EN pin(PTB19) HIGH. You also need to drive PTB18 high to have the transceiver in Master(commander) mode. If FlexCase is in LIN slave, there is no need to drive the PTB18.
      2. Every LIN bus should have only one master. Slave devices can be more than one. You can use Peak-Lin in both Master and Slave modes.
      3. Which MBDT version are you using? And how are you connecting to MCU for FreeMaster?

    • AkhilaAkhila
      Participant
      Post count: 4

      Hi Amir,
      I am working on MBDT version 1.5. The transceiver configuration is done as per suggested. Moreover, the
      LIN bus is having only one master and Peak-LIN as slave. Monitoring of datastores is done in freemaster via Jtag debugger probe.
      The issue is, no frame is visible in PLIN view pro interface.
      The test file is being attached to this thread
      Kindly check the model/configuration for any modification or provide example Lin file in which lin frame can be received from PIN(O1)
      Thanks.

    • AmirFAmirF
      Moderator
      Post count: 25

      Hi Akhila,

      There has been an error with the uploaded file. Could you please upload the file again?
      Thanks.

    • AkhilaAkhila
      Participant
      Post count: 4

      Hi Amir,
      kindly check if the attached file is accessible

      Attachments:
      You must be logged in to view attached files.
    • rhyse.maryniukRhyse Maryniuk
      Keymaster
      Post count: 10

      Hi Akhila,

      Please see the linked guide and sample code to help you get LIN working correctly:

      Guide:

      Sample file:
      Go to the FlexCase E downloads page Resources>FlexCase E>Downloads>MCU Example Files

      Please respond here if you are unable to fix your issue.

    • AkhilaAkhila
      Participant
      Post count: 4

      Thank you, Amir. The guide was helpful.

Viewing 6 reply threads
  • You must be logged in to reply to this topic.