S32K311 LPSPI Master Mode not working

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

S32K311 LPSPI Master Mode not working

Jump to solution
1,062 Views
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!

Tags (3)
0 Kudos
1 Solution
1,020 Views
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

 

View solution in original post

0 Kudos
2 Replies
1,011 Views
MickMick
Contributor II

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

Thank you very much!

0 Kudos
1,021 Views
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 Kudos