S32K358 SPI example code not working

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

S32K358 SPI example code not working

564 Views
Rnk7
Contributor III

The LPSPI half duplex example code provided for S32K358 board is not functioning properly. The example is attached, is from the latest RTD. The on-board configurations are done as shown in the description. Does it need some additional configuration?

I get the following output for it, where I expect to receive {1,2,...10}.

SPI Example Error.png

0 Kudos
Reply
3 Replies

549 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Rnk7 

Are you using a custom board? If you oscilloscope the SPI signals, did you see any irregularity?

 

B.R.

VaneB

0 Kudos
Reply

543 Views
Rnk7
Contributor III

Hi @VaneB ,

I am using S32K358EVB-Q289.

I don't see any outputs on the protocol probe for this example. I suspect the LPSPI master functionality has issues since when running the LPSPI+FLEXIO example, the FLEXIO Tx info reached the LPSPI Rx correctly, but the LPSPI Tx info doesn't reach the FLEXIO Rx. However, even in this other example, used as provided in the RTD, there seem to be something lacking in the configuration and setup.

0 Kudos
Reply

498 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @Rnk7 

Could you share the connections made? Also, could you please check the SPI0 signals? For this board, these are connected to the FS26.

0 Kudos
Reply