cancel
Showing results for 
Search instead for 
Did you mean: 

Modifying I2C speed in X Cube TOF1 for VL53L1

vishnusf
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions
John E KVAM
ST Employee

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.

View solution in original post

1 REPLY 1
John E KVAM
ST Employee

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.