Hey guys,
A quick update here. I managed to receive the frames from Lepton V3, hooray !!!!!!!
Tips (that worked for me):
- use latest Raspbian (or any up-to-date unix distribution) -> it seems that the SPI drivers are better, especially starting with kernel 4.1
- do not ground the MOSI !!!! even though the documentation states that this pin should be grounded, if you use raspberry pi you should not do that (unclear for me why? it may be a limitation of SPI drivers on the raspberry pi). So, connect the MOSI pin to the Lepton V3.
- use 16 MHz SPI (which is actually 15.6MHz, due to the integer nature of the clock divisor)
- read more packets at a time. (please see Kurt's post above for more details)
Anyway, I still have a big issue :(
After few seconds, the synchronization with Lepton V3 is lost, and I'm not able to recover from that state.
So, the program is an "infinite loop" of trying to read a complete frame..... I also have a classic reset counter, that will force the SPI reset (close-wait-open) after 500 attempts of reading a complete frame.
Anyone experienced same issue before with Lepton V3 or V2 ?
Best,
Andrei