cancel
Showing results for 
Search instead for 
Did you mean: 

Can't use STM32N6 DCMIPP continuous mode after snapshot mode

Mikk Leini
Senior III

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.

1 REPLY 1
Saket_Om
ST Employee

Hello @Mikk Leini 

The issue has been resolved internally and will be released as soon as possible. 

Internal ticket number: 220344 (This is an internal tracking number and is not accessible or usable by customers).

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Saket_Om