Hi,
I have make a demo on TWR-K40X256 boards with [SPISlave_LDD] & [SPIMaster_LDD], which could use TWR-K40X256 J4 jumper.
J4-1 PTA16 SPI0_SOUT (ALT2)
J4-4 PTA15 SPI0_SCK (ALT2)
J4-6 PTA14 SPI0_PCS0 (ALT2)
J4-7 PTA17 SPI0_SIN (ALT2)
J4-8 GND
I also attached my test project for your reference.
Both SPI slave and master can receive the data.
Wish it helps.