I wonder what causes the program is not working consistently. I worked on SPI camera, but sometimes it runs and sometimes it doesn't. Even I used the Teensy 3.6 board or Leonardo board and it happens the same. I also changed the camera but it still the issue. Any advice?