groupgets / LeptonModule

Code for getting started with the FLIR Lepton breakout board
https://groupgets.com/manufacturers/flir/products/flir-lepton
BSD 2-Clause "Simplified" License
317 stars 197 forks source link

SPI out of sync - does not recover #40

Open jeff-b-w opened 7 years ago

jeff-b-w commented 7 years ago

Hi - I am using code based on the capture program (raspberry pi). After enough captures - the master and slave get out of sync (SPI wise - not video frame wise). The lepton data sheet says to hold chip select and clock high for > 185 msec and the device should reset. However, I cannot get the device to always recover/resync doing those steps. And once it goes off the rails, it never comes back. I have to pull the lepton module completely and reconnect.

When attempting resyncing with /CS and CLK high - I also redo all the SPI initialization on the pi side at that time. These steps are also found in the pi video code - so it seems this out-of-sync issue has come up and been handled in the example code. But for me it only recovers most of the time - not all of the time.

Any insights?

Thanks!