Skip to main content
Associate II
August 23, 2024
Solved

Modifying I2C speed in X Cube TOF1 for VL53L1

  • August 23, 2024
  • 1 reply
  • 696 views

HI,

I am working on VL53L1 sensor using X CUBE TOF1 software. I want to change the I2C speed to 1MHz. Can somebody guide me how to do it?

Thank you

This topic has been closed for replies.
Best answer by John E KVAM

Don't know how this got by me for so long. 

The X CUBE ToF1 software does not do much with the I2C configuration. The I2C is configured in the connectivity section and then referenced in the ToF section. 

JohnEKVAM_0-1725473090272.pngJohnEKVAM_1-1725473126750.png

So that tells the I2C which pins, but then you have to click on the parameter settings to get:

JohnEKVAM_2-1725473208528.png

Once that's set up, you can go to the ToF1 section and associate the ToF code with the I2C1. 

JohnEKVAM_3-1725473426286.png

It's not simple, and it takes some screwing around, but it can be done. 

It's a matter of eliminating those pesky yellow yield signs. When those are all eliminated, you will be good.

- john

 

 

1 reply

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

Don't know how this got by me for so long. 

The X CUBE ToF1 software does not do much with the I2C configuration. The I2C is configured in the connectivity section and then referenced in the ToF section. 

JohnEKVAM_0-1725473090272.pngJohnEKVAM_1-1725473126750.png

So that tells the I2C which pins, but then you have to click on the parameter settings to get:

JohnEKVAM_2-1725473208528.png

Once that's set up, you can go to the ToF1 section and associate the ToF code with the I2C1. 

JohnEKVAM_3-1725473426286.png

It's not simple, and it takes some screwing around, but it can be done. 

It's a matter of eliminating those pesky yellow yield signs. When those are all eliminated, you will be good.

- john

 

 

If this or any post solves your issue, please mark them as 'Accept as Solution' It really helps. And if you notice anything wrong do not hesitate to 'Report Inappropriate Content'. Someone will review it.