S32K311 LPSPI Master Mode not working

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K311 LPSPI Master Mode not working

ソリューションへジャンプ
7,501件の閲覧回数
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,459件の閲覧回数
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,450件の閲覧回数
MickMick
Contributor II

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

Thank you very much!

0 件の賞賛
返信
7,460件の閲覧回数
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 件の賞賛
返信