Skip to main content
Associate II
September 8, 2025
Question

How to Enable HDR on MB1854B Camera with STM32N6570-DK using DCMIPP_ContinuousMode Example

  • September 8, 2025
  • 2 replies
  • 387 views

Hello,

I am working with the STM32N6570-DK board and the MB1854B camera module.
I am using the ST-provided example code:

https://github.com/STMicroelectronics/STM32CubeN6/tree/main/Projects/STM32N6570-DK/Applications/DCMIPP/DCMIPP_ContinuousMode 


This example works fine — I can display the live camera feed on the LCD.
Now I want to enable the HDR (High Dynamic Range) feature of the MB1854B sensor.

My questions are:

  1. Which part of the example code needs to be modified to enable HDR?

  2. Is there a register configuration to switch the sensor to HDR mode?

  3. Is there an ST-provided driver or initialization sequence for HDR mode example?

I am looking for guidance or documentation on which registers to configure and where to modify the code so that the captured image is in HDR mode and displayed properly on the LCD.

Thanks in advance!

2 replies

ST Employee
September 8, 2025

Hello ,

the sensor capabilities are provided within the IMX335 driver. Could you please check?

GitHub - STMicroelectronics/stm32-imx335: Provides the IMX335 driver, part of the STM32Cube BSP Component for all STM32xx series

Best Regards,

saibAuthor
Associate II
June 24, 2026

Hello , ​@Ch_JE 

 

Thank you for the response.

While reviewing the IMX335 driver provided for the STM32N6 DK2 platform, I noticed that the current capabilities implementation does not expose any HDR-related configuration options:

Capabilities->Config_Gain          = 1;
Capabilities->Config_Exposure = 1;
Capabilities->Config_MirrorFlip = 1;
Capabilities->Config_SensorInfo = 1;
Capabilities->Config_TestPattern = 1;

There are no HDR-specific controls, APIs, or register configurations available in the driver.

I would like to enable and evaluate the HDR functionality of the Sony IMX335 sensor on the STM32N6 DK2 board. However, the sensor datasheet containing the HDR operating modes, register descriptions, and HDR configuration sequence does not appear to be included with the board documentation.

Could someone from ST please clarify the following:

  1. Is HDR mode supported by the IMX335 driver provided for STM32N6 DK2?

  2. If HDR is supported, is there any reference implementation or example showing how to configure the sensor registers for HDR operation?

  3. Can ST provide the required IMX335 documentation (or indicate how it can be obtained) that describes the HDR registers and configuration sequence?

  4. If the HDR implementation already exists internally, could the corresponding driver code or register settings be shared?

My goal is to capture Long Exposure (LE) and Short Exposure (SE) frames from the IMX335 and implement an HDR processing pipeline on STM32N6.

Any guidance from ST or users who have successfully enabled HDR on the STM32N6 DK2 platform would be greatly appreciated.

Thank you.