This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SPI slave Rx Buffer read

Hi, I'm using the nRF51822 and pCA10001 as SPI slave. For reasons beyond my control I have to read the Rx Buffer before the CSN is released. Yes, I know I shouldn´t do it this way, but I have no option (as far as I know).

I have the shortest while-loop running to check for incoming data on the first byte in the receive buffer. As soon as it finds the correct data there it continues to look for the next byte.

My problem is that if I put a break-point on the first loop then the receive fails. I guess the reason is that the break-point stops all execution including SPI. Is this true and if so, is there any way to get around it?

Best regards /Håkan

Parents Reply Children
No Data
Related