cancel
Showing results for 
Search instead for 
Did you mean: 

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 ?

NKuma.10
Associate

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.

1 REPLY 1
John E KVAM
ST Employee

​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.


Our community relies on fruitful exchanges and good quality content. You can thank and reward helpful and positive contributions by marking them as 'Accept as Solution'. When marking a solution, make sure it answers your original question or issue that you raised.

ST Employees that act as moderators have the right to accept the solution, judging by their expertise. This helps other community members identify useful discussions and refrain from raising the same question. If you notice any false behavior or abuse of the action, do not hesitate to 'Report Inappropriate Content'