VL53L5 + Nucleo-401RE: I2C communication buggy
Hi,
I'm using CubeIDE 1.9.0 with X-Cube-TOF1 package 3.0 on a Nucleo-F401RE with VL53L5A1 expansion.
I want to create the simple ranging example application with additional crosstalk calibration. I followed the steps from software package user manual UM2974, chapter 4.2.1 to create the application and enabled crosstalk calibration. No other changes are done. The instructions are written for CubeMX, not CubeIDE, but I think I've done it right.
But the serial connection always shows sensor init failed. Even disabling crosstalk calibration doesn't show any effect - this setup should reflect exactly the same as the provided pre-compiled binary, I assume.
Debugging into the application shows bus acknowledge failure. Also, trying to communicate with the VL53L5 using the ULD driver (not using anything from the TOF1 package) doesn't work reliable, the I2C interface often hangs.
There are no modifications to the hardware. I've no idea why nothing from example source codes or Cube packages works out of the box. Only the pre-compiled binaries seem to work. So, I assume there's something wrong with my MCU configuration. Any ideas what might be wrong?
Regards
