- Set CC_CTRL.CC_EN and CC_CTRL.CC_FRAME_TRIG bits to 0, thus stopping the data flow from the image sensor.
- Clear the interrupt by writing 1 to the CC_IRQSTATUS.FIFO_OF_IRQ bit.
- If the CC_CTRL_DMA.DMA_EN bit is set to 0, the CPU may keep reading the FIFO_DATA register, or stop reading. If the CC_CTRL_DMA.EN bit is set to 1, the CPU may stop the DMA, or let it run until there are no more DMA requests.
- Reset FIFO pointers and internal camera core state machines by writing 1 to the CC_CTRL.CC_RST bit.
- Set the CC_CTRL.CC_EN bit to 1, to re-enable the data flow from the image sensor.
If an overflow occurs, the entire data flow path must be reset to restart cleanly.