S32K148EVB SDK LIN example

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

S32K148EVB SDK LIN example

跳至解决方案
4,163 次查看
milos_lovric
Contributor II

Hello everyone!

I am new to LIN communication and I wanted to test the LIN master and slave SDK example. I followed the instructions given in SDK documentation:

for master example:

-Generated PE code

-Built the project

-Downloaded to flash via USB1 (open SDA)

for slave example:

-Generated PE code

-Built the project

-Debug in RAM via USB2 (open SDA)

I connected LIN and GND pins of J17 connectors, connected the boards to 12V input via J9 connector. I set the J12 jumper for master option on master board, and left open J12 on slave board.

After running the examples, both master and slave nodes go to sleep mode due to LIN bus inactivity timeout. Is there anything I forgot to do to make the examples work?

Tested board types are S32K148EVB-Q176. SDK example is for Q144 type, but the pin configuration for UJA1332 transciever is the same, so it should not be the problem?

标签 (1)
1 解答
3,792 次查看
milos_lovric
Contributor II

Hi Tai,

Thank you for your answer. I found the error, the example is made for REV A of the evaluation board (which had hardware error, SDI and SDO switched), and I tested it on REV B.

在原帖中查看解决方案

5 回复数
3,792 次查看
milos_lovric
Contributor II

Update: no activity on PTA27 pin (SPI_DOUT line) while sending transciever configuration.

yellow: SCK

blue: DOUT

DSC_0313[138].JPG

0 项奖励
回复
3,792 次查看
taibuivan
NXP Employee
NXP Employee

Hi Milos Lovric,

If no activity on PTA27, you can check again config pin and clock for LPSPI. 

If it is true, please give me which S32K148 rev is you used for testing?

And could you give me signal on SDI, SDO, SCK?

Previous I received an error connect between SDI and SDO on board.

Thanks,

Tai Bui Van

3,793 次查看
milos_lovric
Contributor II

Hi Tai,

Thank you for your answer. I found the error, the example is made for REV A of the evaluation board (which had hardware error, SDI and SDO switched), and I tested it on REV B.

2,856 次查看
Sushi0443
Contributor I

Hello,

Could you provide more details on how you were able to get this to work on your "Rev B" boards? 

I am using the Lin_master/Lin_Slave example for S32K148 boards which uses LIN 2. Please advice.

0 项奖励
回复
3,740 次查看
port
Contributor I

Hi, Milos

I am trying to test LIN communication on Rev B board.

Also, currently, I am suffering same problem on rev board B.

The error you found means version problem?

Is there any other example projects which operate on Rev B board.

Thanks

0 项奖励
回复