xWRL6432 MMWAVE-L-SDK  05.04.00.01
LIN External Commander Transmit

Introduction

This example is a application which demonstrates the LIN message communication to external PC via PLIN-USB (from PEAK Systems -> IPEH-004052) Instance LIN1 is set as a Commander in Transmit Mode.

The LIN1 instance initiates the transmission by sending LINID followed by message. The size of the message is also increased with increasing id.

Supported Combinations

Parameter Value
CPU + OS r5fss0-0 freertos
r5fss0-0 nortos
Toolchain ti-arm-clang
Boards xWRL6432-evm
Example folder examples/drivers/lin/lin_external

Using SDK with SysConfig

A GUI tool SysConfig is used to configure different modules and peripherals of the example. Using this tool, users can select and customize different modules and peripherals. The SysConfig tool will generate the code for initializing and configuring these modules. This configuration is saved to a file called example.syscfg for every example. To know more about how to use SDK with SysConfig, Visit this page

Using SDK with SysConfig

Steps to Run the Example

  • Board Configuration, change the switch 3 on S4 to OFF mode.
    LIN switch 3 on S4 set to OFF
  • Hardware Connectivity, 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.
  • 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

Sample Output

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

[LIN] LIN mode external, application started ...
[LIN] : New Data Sent = 12
[LIN] : New Data Sent = 34
[LIN] : New Data Sent = 56
[LIN] : New Data Sent = 78
[LIN] : New Data Sent = 9a
[LIN] : New Data Sent = ab
[LIN] : New Data Sent = cd
[LIN] : New Data Sent = ef
All tests have passed!!

Shown below is a sample output on PLIN-View Pro

Output on PLIN-View Pro