S32K116-EVB2 LIN communications doesn´t work

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K116-EVB2 LIN communications doesn´t work

Jump to solution
871 Views
davara
Contributor I

Hi, i´m trying the demo project lin_slave_s32k116 in a S32K116EVB2Q048 and the board doesn´t receive nor transmit any message. I´ve used an oscilloscope to check if the signal was corrrectly arriving to the LIN-associated pin, and that´s ok.

During the first attempts, as it comes configured by default in the demo, the LIN Rx/Tx  pin were PTC6/PTC7. The communications doesn´t work, so that i changed these pins to PTC8/PTC9 and communications are not working yet.

I guess the problem may be in the transceiver wake-up process, but i don´t know. The instructions to wake-up the transceiver are the following:

```` 

/* Set LIN transceiver sleep pin direction */
PINS_DRV_SetPinsDirection(PTA, (0x1u << 7UL));
/* Wake up LIN transceiver */
PINS_DRV_SetPins(PTA, (0x1u << 7UL));

```


Thanks for your help, regards.

0 Kudos
Reply
1 Solution
845 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @davara 

This example demonstrates the LIN communication between S32K116 Master and Slave using unconditional frames.

So, it is necessary to have one board as slave and the other as master.

View solution in original post

0 Kudos
Reply
4 Replies
509 Views
Haffman
Contributor I

Hello, sir. Have you resolved the LIN communication issue now?

0 Kudos
Reply
857 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @davara 

To run the example you will need to have the following items:

  • 2 S32K116 boards
  • 1 Power Adapter 12V
  • 2 Dupont female to female cable
  • 1 Personal Computer
  • 1 Jlink Lite Debugger (optional, users can use Open SDA)

Be sure to have this before running the project.

 

B.R.

VaneB

0 Kudos
Reply
853 Views
davara
Contributor I

¿Must i flash in one board the slave demo program and the master demo program in the other one? ¿Or the slave demo in both?

Thank you.

0 Kudos
Reply
846 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @davara 

This example demonstrates the LIN communication between S32K116 Master and Slave using unconditional frames.

So, it is necessary to have one board as slave and the other as master.

0 Kudos
Reply