We do not have an existing example for USB-Serial SPI master and slave implementation.
I will try to make one.
You can use the existing spimaster example from the USB-Serial SDK and alter it to communicate between two SCBs, one as master and another as slave.
SPI master application can be easily made from the existing spimaster by removing the read part and the verify part.
For SPI slave application, the configuration should be changed to make it a slave device and
cySPIConfig.isMaster = false;
and the write part can be removed from the existing example code while keeping the read part.
I have made a SPI test application to send data from SCB0 (SPI master) of CY7C65215 and receive it in SCB1 (SPI slave) using the available spimaster example project as a base for both master and slave.
Please find the projects in the attached zip file.
1. configure CY7C65215, SCB0 as master and SCB1 as slave.
2. make the appropriate connections between the two SCBs.
3. run the SPI slave application. It will wait to receive 260 bytes of data.
4. run the SPI master application, This will write 260 bytes of incremental data on the MOSI line and will be captured on the Slave application.
SPI_master_slave.zip 1,002.5 K
For the SCB connections, please refer to configuration tables (sheet 6) in CYUSBS236 DVK schematic: https://www.cypress.com/file/123486/download
On the DVK you can connect pin 2 of