S32K148-Q176 LPSPI communication

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

S32K148-Q176 LPSPI communication

1,059 Views
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 Kudos
2 Replies

568 Views
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 Kudos

992 Views
raresvasile
NXP Employee
NXP Employee

Hi,

Please restart S32DS, it will work afterwards.

Thanks,

Rares

0 Kudos