SPI receive buffer doesn't equal send buffer when connecting SIN with SOUT. Help!

cancel
Showing results for 
Search instead for 
Did you mean: 

SPI receive buffer doesn't equal send buffer when connecting SIN with SOUT. Help!

172 Views
Contributor I

I have initialized an SPI instance, configured both slave and master configurations (same phase, polarity and everything), than connected SIN (PTB3) with SOUT (PTB1).

 

I am expecting to receive what I send when calling LPSPI_DRV_MasterTransfer() but for some reason that doesn't happen. Project is attached below. Please help.

Original Attachment has been moved to: lpspi_transfer_example.zip

Labels (2)
0 Kudos
1 Reply

4 Views
NXP Employee
NXP Employee

Hi Samer, 

in your project you setup once SPI_0 as a master device and as a next step you setup the very same peripheral as a slave device. In attachment is fixed project - it is working with direct connection between pins PTB3 and PTB1 (J2 pin 9 and J4 pin 7 on EVB).  For more details you can look at this tutorial related to SPI basic usage/architecture.

Jiri 

0 Kudos