lpspi_master_slave_s32k11x

cancel
Showing results for 
Search instead for 
Did you mean: 

lpspi_master_slave_s32k11x

569 Views
viet
Contributor II

i open the spi-slave-master example for S32k118 development kit.
but on the freeMaster, i saw the Slave doesnt receive any data. 

please help me have a look at the model. I have check my wires connection 5 times. 

viet_0-1627896666765.png

 

thanks for support

0 Kudos
2 Replies

514 Views
adriantudor
NXP Employee
NXP Employee

Hi @viet

 

It is possible to appear some problems with SPI communication for instance 0, due to an overlap of an SPI of onboard ic (sbc UJA1169) connected on the same CS pin of instance 0 (PTB5). 

 

The first solution for this problem is to connect J107 jumper to 2-3 position and be sure that the board is powered via USB cable not via J16 connector.

If that don't work properly try that: 

I modified the default example to use PTB0 instead of PTB5 and I added write high blocks to the PTB5 pin in order to disable SPI interface of UJA ic.

Please let me know if any of those solutions work for you.

 

Best regards,

Adrian

0 Kudos

549 Views
mariuslucianand
NXP Employee
NXP Employee

Hello @viet,

Unfortunately, I don't have access to the S32K118 mcu right now to test the model on real hardware. I had a look at the model and I see that whenever it transmits a byte on the SPI, the Green LED should toggle. Do you see this on the board?

Regards,

Marius

0 Kudos