Hey,
I was exploring SPI peripheral on S32k118 evaluation board. I flashed the spi_pal_s32k118 example on the board, and made the connections according to the user manual, and checked the same using pinmux.
Here, in this code, the master(FLEXIO peripheral on the same board) sends data in an array -{1,2,3,4,5,6,7,8,9,10}, and so does the slave(LPSPI0), if the data matches on both sides, the LED is OFF, and if it doesn't , the LED remains on.
In my case the LED was ON, then i debugged it and saw the values received by the master and the slave, then I found that the Slave was receiving the correct data, while the master was receiving 0xFF or 0x00.
Later I modified code to check only if the mastersend data is the same as slave receive data, and this time the LED remained OFF and it was working properly.
My question is that, why is the master not receiving the right data? Can anybody help me out ?
I am pretty sure that the connections are right.
I am attaching the screenshots.

