S32K116 dev board - SPI slave examples does not work

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

S32K116 dev board - SPI slave examples does not work

430 Views
ravi00ei51
Contributor II

Hi All, 

 

I am trying to implement an application on S32K116 which involves receiving data from another microcontroller(Say microA) over SPI. microA acts SPI master and whenever data is available sends it to S32K116 dev board. I tried various s32studio examples for s32k116 SPI slave (lspi_dma_slave and lspi_transfer slave) but s32k116 board cant receive data as SPI slave. 

With S32K116 I have tried various SPI speeds from master(4MBPS, 1MBPS, 500KBPS, 250KBPS) but nothing works.

I also tried microA with s32k144 dev board as SPI slave. With s32k144 SPI slave examples data from microA is received successfully. 

So my question is that has anyone got a working example for s32k116 dev board as SPI slave? 

0 Kudos
1 Reply

422 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi ravi00ei51,

Please tell us the version of your S32DS and SDK or RTD. I try to program lpspi_dma_master_s32k116 on one S32K116EVB-Q048 and lpspi_dma_slave_s32k116 on another S32K116EVB-Q048. (Note The Slave device should be listening for data coming from the Master before the Master device starts sending the data.) Power the slave board first. The Green LED is light on my board, which mean transfer is successful.

LPSPI DMA Slave RTM4.0.2 lpspi_dma_slave_s32k116.png

If you are using S32K116EVB2Q048, since the schematic diagram is different please connect 2-3 J109 for RGB_GREEN.

S32K116EVB2Q048 J109.png


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos