Content originally posted in LPCWare by Superfred on Thu Jul 02 01:23:27 MST 2015
Hello,
the microcontroller im master mode simply sends out the SPI packet on the MOSI pin, but cannot tell if the data is well received.
Even with no SPI device connected the transfer will work.
But many SPI devices send some data back during the transfer (or respond to commands) on the MISO pin, so you can analyze this response, maybe by logging it out via UART.
Or connect an oscilloscope or a logic analyzer to the CLK and MOSI pins....
Wihout more information about the type of SPI device you want to communicate I cannot help you more.
Fred