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.


In order 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. It helps the next guy.

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.


In order 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. It helps the next guy.