S32K148-Q176 LPSPI communication

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

S32K148-Q176 LPSPI communication

516件の閲覧回数
carolineliu_wiw
Contributor II

Hello, guys!

Now i 'm trying to do lpspi communication on s32k148q176 EVB. I meet some problems.

I want to use one lpspi as Master,and two lpspi as Slave. so I find one example project "lpspi_dma_s32k148". This example project can do spi communcation successfully, lpspi0 acts as Master to send data, and lpspi1 acts as Slave to receive data. Then I change its configuration. I add one CHIP SELECT pin in lpspi0 “Component Inspector->Properties->Configurations”,also add another lpspi namely lpspi2 as Slave. I try to generate code, it shows many errors. I don't know how to solve it.TAT

Here is my lpspi0-Master Configuration.

pastedImage_1.png

Here is lpspi1 Configuration.

pastedImage_2.png

Here is lpspi2 Configuration.

pastedImage_3.png

Here is lpspi pin Configuration.

pastedImage_4.png

Here are errors.

pastedImage_5.png

Thanks.

Liu.

0 件の賞賛
2 返答(返信)

25件の閲覧回数
Nanettebreaux
Contributor I
The transfer on LPSPI is slightly different from I2C:
• Host will receive 1 byte after it sends out any byte.
• Received bytes should be ignored when host is sending out bytes to target
• Host starts reading bytes by sending 0x00s to target
• The byte 0x00 will be sent as response to host if target is under the following  MyGeorgiaSouthern
 
 
0 件の賞賛

449件の閲覧回数
raresvasile
NXP Employee
NXP Employee

Hi,

Please restart S32DS, it will work afterwards.

Thanks,

Rares

0 件の賞賛