I'm having an issue running the BF561 in SPI slave move in release mode via the debugger vs stand alone. I'm handling the byte transfer interrupts manually (no DMA) and noticed that I get a good transfer every time when I run via the debugger but compiled for release and running from the parallel flash on my board I don't receive every byte sent by the master.
I've traced it to being a problem with the interrupt consistency. Apparently the ISR is inconsistent when running stand alone, but uniform when using the debugger. I was wondering if anyone knows why that is and what I can do to stabilize the stand alone operation.
I've attached two pictures. The first is the operation with the debugger, the second is without. The traces are:
2) Slave Select
4) GPIO which toggles at beginning of SPI ISR.
Thanks in Advance.