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.


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.