cancel
Showing results for 
Search instead for 
Did you mean: 

i am trying to merge vl53l1x API to nrf52....it is giving me an errors to files "vl53l1_platform_user_data.h" "vl53l1_wait.h" the errors are unknown type name 'VL53L1_DevData_t'

Apati.17
Associate

request for member 'CurrentParameters' in something not a structure or union

request for member 'LLData' in something not a structure or union

request for member 'PalState' in something not a structure or union

i am using nrf52832 and vl53l1x sensor

3 REPLIES 3
John E KVAM
ST Employee

There are two API's supported by ST. Our 'standard' driver is more complex, but full featured(ST. The UltraLite driver is really small, but leaves out some of the more esoteric functions of the chip.

The full driver is:

https://my.st.com/content/my_st_com/en/products/embedded-software/proximity-sensors-software/stsw-img007.html

The UltraLite driver is

https://my.st.com/content/my_st_com/en/products/embedded-software/proximity-sensors-software/stsw-img009.html

Determine if you really need the full driver. If the UltraLite driver works for you, it's a lot easier - and smaller.

There are lots of ways to get our code, but if you start with these, I don't think you will be missing any files.

(At least you will have the two you say are missing.)

Give that a try.


If this or any post solves your issue, please mark them as 'Accept as Solution' It really helps. And if you notice anything wrong do not hesitate to 'Report Inappropriate Content'. Someone will review it.
Apati.17
Associate

i am using those files itself..original TOF vl53l1 files are used...but still the same error...why...?? i am using segger embedded studio and nrf52832 development board.

Julien NGUYEN
ST Employee

​Hi,

Since you are familiar with MBED IDE, perhaps it is more suitable for you to check out the VL53L1X examples or libraries from MBED

https://os.mbed.com/teams/ST-Expansion-SW-Team/code/VL53L1X_Simple_Ranging_MbedOS/

Thanks,

Julien


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.