AM263Px MCU+ SDK  11.00.00
LIN Responder Read HLD

Introduction

This example demonstrates LIN Responder mode data read operation where the Instance LIN1 is set as a Responder. The transfer is initiated by PLIN-USB (from PEAK Systems -> IPEH-004052) device connected to external PC.

The LIN1 instance waits for Reception of a Message from remote Commander.

Example Can be run in Polling, Interrupt and DMA mode, The Operating mode is configurable in SYSCONFIG.

Supported Combinations

Parameter Value
CPU + OS r5fss0-0 nortos
r5fss0-0 freertos
Toolchain ti-arm-clang
Boards am263px-cc
Example folder examples/drivers/lin/lin_responder_write

Steps to Run the Example

  • Board Configuration, Change the SW5 to ON state, and change the SW4 to 1-2.
    LIN SW5 and SW4 settings
  • Hardware Conectivity, Connect the PLIN-USB module to PC from USB and Serial Port to be connected as mentioned in the image below.
    LIN Hardware Connectivity with PLIN USB - J10 Header.
  • Software Setup, Download and Install the PLIN-View Pro from https://www.peak-system.com/PLIN-USB.485.0.html?&L=1
  • Click on LIN in the menu bar and connect to PLIN-USB. Make sure the LINMode for PLIN is Commander with Baud Rate of 19200.
    LIN Hardware Connectivity with PLIN USB
  • After successful connection with PLIN-USB, the status of connection is shown as the bottom of the screen.
    PLIN Connectivity status
  • Create A new Frame with following configuration.
    LIN Commander Frame
  • When using CCS projects to build, import the CCS project for the required combination and build it using the CCS project menu (see Using SDK with CCS Projects).
  • When using makefiles to build, note the required combination and build using make command (see Using SDK with Makefiles)
  • Launch a CCS debug session and run the executable, see CCS Launch, Load and Run

See Also

LIN HLD

Sample Output

Shown below is a sample output when the application is run,

[LIN] LIN Responder Read Application Started ...
[I2C] LIN Voltage Level Shifter started ...
[LIN] Responder Read ... !!!
Received Message ID: 0x1d
Received Message Frame Length: 8
Received Message Data:
0xa1
0xa2
0xa3
0xa4
0xa5
0xa6
0xa7
0xa8
All tests have passed!!

Shown below is a sample output on PLIN-View Pro

Output on PLIN-View Pro