Skip to main content
Associate II
Question

VL53L9CX, Using the post processing lib on a RPI5

I am using a STEVAL-VL53L9 on a RPI5.  I have made fairly good progress.  I have been able  to bring up the STEVAL-VL53L9 on the RPI5 just using the CSI-2 flex cable interface without any extra cabling.  At this point I can initialize, configure the vl53l9 using the CSI-2 i2c subdev and GPIO for XSHUT, capture frames through the CSI-2 interface and correctly extract the raw frame data.
I am working on implementing this into a ROS2 device node and a Qt Widget diagnostic app.


In the STSW-IMG054 there is a post processing lib for processing the raw frame data.  This is also described in ST techincial note TN1641.  Are there any issues/limitations foreseen or to be aware of in attempting to use this library on the RPI5? 

1 reply

SBgolMkAuthor
Associate II

So far the initial issue I see, which is easy to account for,  is the v4l2 has a 12 byte stride per row of the raw frame.  The input to the post processing lib uses buffering without the 12 byte stride per row.  The 12 byte stride is because the vl4l2 layer on the RPI5 allocates rows using a 16 byte chunks this results in 100 byte row allocating 112 bytes.