I am trying to write to an SD card. My code passes all the hardware tests before it goes into the loop, but when read_fifo_burst() is called, it never goes into any of the if statements, meaning that nothing gets written to the SD card.

In addition, the amount of frames to be written is never handled, meaning that if the SD was being written to, it would write an infinite amount of frames to the SD card.


Not sure what to do.

Thank you!



Which board are you using? Please attach me some pictures for your hardware connection.

I advise you test it using Arduino UNO board and our MUlti-Adapter board.

The SD driver and camera driver share the SPI bus. In our code, we use the different CS to enable the SD and camera.