Introduction
This example demonstrates LIN Commander mode data read operation where the Instance LIN1 is set as a commander. The massage is initiated by LIN1 instance and PLIN-USB(from PEAK Systems -> IPEH-004052) responds with data.
The LIN1 instance initiates the transmission by sending ID 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_read |
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
- Create A new Frame with following configuration.
LIN Responder Frame
- Finally make sure the Publish Frame is sent at-least once.
- 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 Read Application Started ...
[I2C] LIN Voltage Level Shifter started ...
[LIN] Commander Read ... !!!
Received Message Data:
a1
a2
a3
a4
All tests have passed!!
Shown below is a sample output on PLIN-View Pro
Output on PLIN-View Pro