S32K311 LPSPI Master Mode not working

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

S32K311 LPSPI Master Mode not working

跳至解决方案
7,636 次查看
MickMick
Contributor II

Hi,

I tried to communicate with LPSPI, but it doesn't work.

I use RTD and its parameters are set with EB Tresos.
The attached files are the parameters for SPI Driver.

In my source code, I call the functions, Spi_SetupEB() and Spi_AsyncTransmit().
Then the interruption occurs and LPSPI SR register suggests the transmission completes, however, any data is not received nor sent.

In the oscilloscope waves, SIN, SOUT, SCLK, and CS keep low level.

Is there something missing from my setting for RTD?

Could you give me some advice?

Thank you!

标记 (3)
0 项奖励
回复
1 解答
7,594 次查看
cuongnguyenphu
NXP Employee
NXP Employee

Did you config for Pin and Port module for SPI's pins ?
We provided examples for EB Tresos and S32DS for SPI module in installed package already, you can consider it as a reference:

cuongnguyenphu_0-1700635078885.png

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
7,585 次查看
MickMick
Contributor II

I checked the port settings and realized that the sss setting was incorrect.

Thank you very much!

0 项奖励
回复
7,595 次查看
cuongnguyenphu
NXP Employee
NXP Employee

Did you config for Pin and Port module for SPI's pins ?
We provided examples for EB Tresos and S32DS for SPI module in installed package already, you can consider it as a reference:

cuongnguyenphu_0-1700635078885.png

 

0 项奖励
回复