Skip to main content
Visitor II
August 17, 2026
Question

IMX219 driver for x-cube-n6-camera-capture on NUCLEO-N657X0-Q — seeking guidance

  • August 17, 2026
  • 0 replies
  • 2 views

Hi,

I'm trying to bring up an IMX219 (Raspberry Pi Camera Module v2) on the “x-cube-n6-camera-capture” reference project for nucleo657x0q, 

I first tried this under Zephyr and got working capture, but only at reduced resolution.  I've since moved to writing a native driver for “stm32-mw-camera” instead, using “imx335.c” “cmw_imx335.c” as a structural reference template but only at the code/flow level since IMX335's actual register map isn't in any public datasheet I could find. For register values, PLL chain, and gain formula I relied entirely on the official Sony IMX219 datasheet instead, since the two sensors don't share a register layout.

My questions are:


1. Is there any official guidance for integrating a third-party sensor into `stm32-mw-camera` — driver/BSP side?

2. Beyond the lane count and PHY bitrate, is there anything else specific to porting from a 4-lane sensor (IMX335) to a 2-lane one (IMX219) that I should watch out for?

 

If writing a custom driver isn't the recommended path here, I'd appreciate pointers to a supported alternative instead.

Thanks