Skip to main content
Visitor II
September 19, 2024
Solved

VL53l8CX SPI not working

  • September 19, 2024
  • 2 replies
  • 1783 views

Hi,

I am using VL53L8CX sensor from Pololu and connected it with Nucleo-F411RE board. I am using Arduino IDE 2.3 where I have downloaded STM32duino VL53L8CX library. When I run HelloWorld_I2C example with the wire  connections as mentioned with (SPI/I2c-->GND, Lpn-->A3), I am getting the distance result. But when I do the same with the HelloWorld_SPI example with mentioned connection (SPI/I2c-->3v3, Lpn-->3v3), I am getting nothing. When I put the breaker in between, the initialization itself fails saying sensor initialization status 1. 

I would be a great relief if you could help me with this.

Thank you

Best answer by John E KVAM

This problem is the same as:

 
Basically, the manufacturer thought he would save some money and switched a part on the board. 
- john
 
 

2 replies

John E KVAM
John E KVAMBest answer
ST Employee
September 23, 2024

This problem is the same as:

 
Basically, the manufacturer thought he would save some money and switched a part on the board. 
- john
 
 
256
Associate
February 4, 2025

I am having the same problem here, but I know that I have the correct chips on my board (at least, the level shifters are labeled that they are both PI4ULS3V204s). After set up, it seems that the VL53L8CX's status is 0, but any calls to communicate with the sensor are left hanging, and no response is ever recieved. If anyone has SPI working with their VL53L8CX, could you share your pin assignments with me?