X-Nucleo 53L5A1 works fine with Windows GUI, but does not even init / is not alive using API
Hello,
the VL53L5CX is a really nice senor. I have done some measurements using the Windows GUI and was impressed, so I wanted to write a driver for the sensor and do some further evaluation.
I then tried to initialize the sensor using the ULD-API and my Nucleo-Board, but the sensor is not detected via I²C, I double checked with the Windows GUI - everything works just fine - so the Hardware should be alright.
I tried using the provided example in the API - same problem. I did not do anything fancy yet, are there some known issues? What is the Firmware in the Windows GUI doing different than the API? The init() loads the default firmware to the sensor, how long does that take?
Background:
- I am using the latest API V1.1.2
- I am using the platform.h and .c from the example
- I²C address is VL53L5CX_DEFAULT_I2C_ADDRESS
- before calling init() I set GPIOs PWR_EN_C, LPn_C, and reset I2C_RST_C
- I make sure to wait long enough for the power supply to be stable
What else could go wrong?
Thank You for Your help!
Kind regards,
Niklas
