S32K116-EVB2 LIN communications doesn´t work

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

S32K116-EVB2 LIN communications doesn´t work

跳至解决方案
928 次查看
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 项奖励
回复
1 解答
902 次查看
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 项奖励
回复
4 回复数
566 次查看
Haffman
Contributor I

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

0 项奖励
回复
914 次查看
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 项奖励
回复
910 次查看
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 项奖励
回复
903 次查看
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 项奖励
回复