cancel
Showing results for 
Search instead for 
Did you mean: 

[VL53L3CX]The RAM DATA is too big in STSW-IMG015's example code

YChen.9
Associate II

The VL53L3CX API‘s example code use 12KB of RAM, which makes it impossible for me to try to use the program with a smaller RAM MPU.The example for L1X,L0 are not the same, they only use about 2KB of RAM.I would like to know if it is necessary to use such a large amount of RAM to use the VL53L3CX API or if this is a software bug.

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
John E KVAM
ST Employee

It's not a bug, but a different way of working. The L3 uses histograms. But the sensor is too small to process the histograms. So the raw data is uploaded to your MCU and all the math is done there. And unfortuately that's why that stucture is so large.

Sorry about that.


If this or any post solves your issue, please mark them as 'Accept as Solution' It really helps. And if you notice anything wrong do not hesitate to 'Report Inappropriate Content'. Someone will review it.

View solution in original post

1 REPLY 1
John E KVAM
ST Employee

It's not a bug, but a different way of working. The L3 uses histograms. But the sensor is too small to process the histograms. So the raw data is uploaded to your MCU and all the math is done there. And unfortuately that's why that stucture is so large.

Sorry about that.


If this or any post solves your issue, please mark them as 'Accept as Solution' It really helps. And if you notice anything wrong do not hesitate to 'Report Inappropriate Content'. Someone will review it.