VL53L8CX SPI not working

Hi, I am trying to use SPI with the VL53L8CX but i just cant get it to work. I2C is working fine but SPI not at all. I read at the ST-Forum about a faulty level shifter… Solved: VL53L8CX SPI doesn't work properly - STMicroelectronics Community.
Any help is welcome.
Thanks!

Hello.

We test these the SPI communication on every unit, so the board itself is probably okay (or at least, it was probably okay at some point). However, as we note on the VL53L8CX carrier product page, the level shifter on this board is more sensitive to external loads than the circuit we typically use, so we recommend taking extra care to keep connected communication wires short (ideally under 3 inches or 8 cm) and limit other devices on the same I²C or SPI bus.

Can you provide more details about how you are trying to use the VL53L8CX (microcontroller, power supply, etc.) and post some pictures of your setup that show all of your connections? Also, can you look at the SPI signals with an oscilloscope and post captures of what you find?

- Patrick

I support the ST VL53 ToF products, and I know what is wrong.
The NXS0104 you used will not do the job - with ST’s Nucleo boards anyway.
We at ST had the same issue.
If you swap that part for a PI4ULS3204 it will work.
(Our supplier thought they were equivalent, but they are not.)

Hi, John.

We have tested our VL53L8CX carrier with SPI on several controllers and confirmed that it works, including with an ST Nucleo-F411RE running the CubeIDE_F401RE_Example_SPI code from the ULD API:

Our carrier board is intended to let people use the sensor with 3.3V and 5V controllers, and it was never intended to work at lower voltages. (The PI4ULS3V204 doesn’t seem to go up to 5V, and it’s not available in an 8-channel version, which is why we chose the NXS0108.)

Kevin

2 Likes