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
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