This driver sometimes freezes. To replicate, run example 2 for a a few minutes.
From memory (haven't looked at this in a while), it was freezing around here. Not sure if the same DMA channel that the camera uses is being claimed by the SPI driver, or if there's something else going on.