AM263Px MCU+ SDK  11.00.00
LIN Commander Write HLD

Introduction

This example demonstrates LIN Commander mode data write operation where the Instance LIN1 is set as a commander. The massage is received by PLIN-USB (from PEAK Systems -> IPEH-004052) device connected to external PC.

The LIN1 instance initiates the transmission by sending ID followed by message in Blocking Mode.

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_commander_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 Responder 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
  • 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 Commander Write Application Started ...
[I2C] LIN Voltage Level Shifter started ...
[LIN] Commander Write ... !!!
All tests have passed!!

Shown below is a sample output on PLIN-View Pro

Output on PLIN-View Pro