Skip to main content
YChen.9
Associate II
March 17, 2021
Solved

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

  • March 17, 2021
  • 1 reply
  • 750 views

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.

This topic has been closed for replies.
Best answer by John E KVAM

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.

1 reply

John E KVAM
John E KVAMBest answer
ST Employee
August 19, 2021

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.