Hi there,
the AWR1843 is an SPI slave. I am using SPI_transfer to receive messages. If the master stops sending, the task hangs up. Any suggestions to walk around?
Thanks, Ke
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi there,
the AWR1843 is an SPI slave. I am using SPI_transfer to receive messages. If the master stops sending, the task hangs up. Any suggestions to walk around?
Thanks, Ke
I'm not able to look through the code at the moment, but there should be a blocking and non-blocking driver mode so that the receiver can just check for data and continue.
Sorry for the delay - yes, you are correct. Only blocking mode is currently supported. The task will not continue because of the transfer complete semaphore that it is blocked on. Perhaps a simple work-around would be to isolate the SPI_transfer call to a separate task so that it can block without interfering with other tasks that should not be blocked. The SPI task could then either set a flag or use another OS object to indicate a transfer is received.
-dave