S32K358 SPI example code not working

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

S32K358 SPI example code not working

1,883 次查看
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 项奖励
回复
4 回复数

1,868 次查看
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 项奖励
回复

1,862 次查看
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 项奖励
回复

1,270 次查看
sonumishra1
Contributor I

Hi,

 

Can you also share the code, if your problem is resolved? I am also working with S32K358 board with Contactors.

 

Regards,

Sonu Mishra

0 项奖励
回复

1,817 次查看
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 项奖励
回复