Question
Can't use STM32N6 DCMIPP continuous mode after snapshot mode
There's a bug in STM32N6 HAL DCMIPP driver function DCMIPP_SetConfig.
It only sets capture mode bits for PIPE0 to PIPE2, but does not clear them:
/* Set the capture mode */
hdcmipp->Instance->P0FCTCR |= CaptureMode;CaptureMode options are:
#define DCMIPP_MODE_CONTINUOUS 0U /*!< DCMIPP continuous mode (preview) */
#define DCMIPP_MODE_SNAPSHOT DCMIPP_P0FCTCR_CPTMODE /*!< DCMIPP snapshot mode */As a result, after having DCMIPP in snapshot mode it is not possible to re-configure DCMIPP into continuous mode using HAL.
Workaround is to manually clear CPTMODE bit.
