Hello,
I am trying to receive data (as a slave) from another mcu(master) via SPI. I am using SPI_SlaveTransferNonBlocking function call to read the received data. When i print the received data on the console it is always 255. The data i am sending from master is 170(0xAA).
I checked the signal output from MOSI and SCK from master end, the data 0xAA is displayed properly along with clock signal on the DSO.
Important thing is, i did not configure SSEL pin on slave mcu(LPC82x) since we did not have enough pins and also we use only one slave to communicate.
I enabled slave on spi_slave_config_t struct, both clock phase and polarity are same configuration on both sides.
polarity - KSPI_ClockPolarityActiveHigh
phase - KSPI_ClockPhaseFirstEdge
The wiring connection between master and slave is,
Master slave
MOSI ---------> MISO
MISO ---------> MOSI
SCK ---------> SCK
Please help me if you know where i am going wrong.