Become a leader in the IoT community!
New DevHeads get a 320-point leaderboard boost when joining the DevHeads IoT Integration Community. In addition to learning and advising, active community leaders are rewarded with community recognition and free tech stuff. Start your Legendary Collaboration now!
what error are you facing? Its possible to use CMSIS
You are missing the start condition and proper addressing for the device. The VL53L0X expects a start condition and the 7bit address followed by the R/W bit
After finishing the transaction , you should generate a stop condition“`
I2C1->CR1 |= I2C_CR1_STOP;
“`
Nice nice, your suggestion worked out pretty fine for me… Thanks @marveeamasi
Glad it was fixed
@superbike_z Specifically, when I send a command (like reading the distance measurement from the sensor), the responses seem to be incorrect or don’t match the expected format.
But the issue lied with improper addressing for the device, of which has been resolved
Do you have a logic analyzer? Because that would have told you your issue very early on.
CONTRIBUTE TO THIS THREAD