The USB block has 16 bytes of hardware FIFO. So, if the RX buffer size is set more than sixteen, the SPI_Master component provides a software FIFO code using interrupts.
You call the function SingleByteWrite() using SPI APIs from main() prior to invoking CyGlobalIntEnable. These SPI APIs would not work because all interrupts are disabled. Please try to move the CyGlobalIntEnable line before the SingleByteWrite() function.
I don't know the reason of the issue number 2.
Thank you ! !
Noriaki my first issue is solved but second issue still persists.