Hi,
I am working with the LPC1768 SSP peripheral in SPI master-slave mode. I am facing an issue with transmitted data when using ISR-based SPI transfers. Here’s the behavior I observe:
Expected behavior:
Observed behavior:
When I run the code continuously, MOSI is transmitted incorrectly in some cases. For example, the last bytes appear corrupted or repeated, and only 23 bytes are sent instead of 32. and some bytes are meant to sent 0x55 but its transmitting 0x00.
When I put breakpoints and step through, the data is transmitted correctly.
Setup:
Questions:
Has anyone seen similar SPI transmission issues on LPC1768 where data gets corrupted or incomplete during continuous ISR-based transfers? Could this be related to FIFO timing, clock phase settings, or ISR handling?
Is there an errata or known issue with LPC1768 SSP that could cause this behavior?
Could this also be related to the board itself or how it handles SPI signals?
I have attached the ISR code file.
Thank you