Kerry:
The SPI clock is running at 12 mhz (it's the upper limit for the KL17).
Using two K micros I was able to keep the timing between the packets very small.
On the KL I had to increase the time delay between the packets by 4 times or the KL would miss packets.
For the test I was polling. Process was simply read 16 bits, write to buffer, inc buffer count, compare buffer count to max allowed, start again.
I was sending a group of 6 - 16 bit packets. The issue was the reception of the sixth packet -- it was being missed. I had to extend the gap size to finally acquire the last packet.
Timing for the reception of 16 bits at 12 mhz is 1.3 usec.
The KL runs really slow at 48 mhz. The SPI on the KL does not have any kind of an overflow flag.
I had not thought of it at the time but maybe the KL is just not fast enough. Had I considered it, I would have toggled a pin before and after the capture process and compared it to the timing of the spi packets. Maybe my 6 packet test was the boundary condition where it takes more time to process the packet compared to packet timing and over 5 packets .. it skipped one.
I'll have to go back and re-look at this. The issue may be my expectations of a KL working with a 12MHZ SPI ... might not be possible.
Joe