Skip to main content
NKuma.10
Visitor II
November 26, 2018
Question

Why the VL53L1 sensor VL53L1_Dev_t object consumes 5.43KB(Kilo Bytes) RAM in api ver 1.1.37.12156 where as the same object consumes 932B in api ver 1.2.11.1840 ?

  • November 26, 2018
  • 1 reply
  • 970 views

Hi,

I am porting the one of legacy VL53L1 stack (STM api ver 1.1.37.12156 ) for one of the project. This stack is stable and well tested. However, i am surprised to see the RAM consumption(5.43KB) of the VL53L1_Dev_t  object. This is different in new STM api ver 1.2.11.1840 (932B). I can understand that new api might have optimized or deprecated some of implementations.

Why is VL53L1_Dev_t  object consuming RAM memory of 5.43KB? It will really help me if any change list file is available to download or can provide here.

This topic has been closed for replies.

1 reply

John E KVAM
ST Employee
April 24, 2019

​In the file:

vl53l1_platform_user_config.h

is the line:

#define VL53L1_MAX_USER_ZONES 16

By lowering the number of zones, the data structure is GREATLY reduced.

What you are seeing is the result of the lower number of zones.