S32K148EVB SDK LIN example

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

S32K148EVB SDK LIN example

Jump to solution
4,165 Views
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?

Labels (1)
1 Solution
3,794 Views
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.

View solution in original post

5 Replies
3,794 Views
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 Kudos
Reply
3,794 Views
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,795 Views
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,858 Views
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 Kudos
Reply
3,742 Views
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 Kudos
Reply