Skip to main content
Apati.17
Associate
August 27, 2019
Question

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'

  • August 27, 2019
  • 3 replies
  • 868 views

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

This topic has been closed for replies.

3 replies

John E KVAM
ST Employee
August 27, 2019

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.

Apati.17
Apati.17Author
Associate
August 28, 2019

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
September 9, 2019

​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