You can be sure that the SPIM sends the data, so you might wait for it. There is no reason thinkable (except a blown PSoC) why the data will not be sent out. In SPI (as opposed to I2C) there is no acknowledgement following a transfer of data.
Hello Bob. Can you comment further on this subject. Using PSOC5, I have run into a situation where the done flag does not get set after sending data via SPI. It happens so rarely that I have not been able to discover much about the problem. (maybe once in a million write cycles). The SPI is sending 24 bits (in 3 transfers) to a synthesizer chip. The synthesizer frequency is set continuously in this band scanning application. I send all 3 bytes and then wait for the done flag before exiting the routine. As I said, very rarely it hangs waiting for done. I put a counter on it and in normal conditions it always gets the done flag within 3 read cycles.
I guess my question is, would it be acceptable to not wait for done, as you indicate above? Does your understanding of the SPI component really indicate that it is impossible that the bytes were not sent? (On entry to the write routine the TX buffer is cleared, so the next data would not be corrupted if the buffer still contained data.)
This problem has occurred on 2 out of 3 boards, The third board may not have enough usage for the problem to appear as yet.