ssue Description:
When attempting to run a Python script utilizing the VL53L1X ToF distance sensor on a Radxa Zero SBC, a segmentation fault occurs.
Hardware Configuration:
Radxa Zero V1.51 SBC
4GB RAM
16GB eMMC
VL53L0/1XV2 ToF distance sensor connected via I2C interface (enabled at /dev/i2c-4)
Software Environment:
OS: Debian Buster 10
Python Version: 3.7.4
Example Script:
import VL53L1X
Initialize VL53L1X sensor
tof = VL53L1X.VL53L1X(i2c_bus=4, i2c_address=0x29)
tof.open()
Start ranging
tof.start_ranging(1)
Get distance
distance_in_mm = tof.get_distance()
Stop ranging
tof.stop_ranging()
print(“Distance:”, distance_in_mm, “mm”)
Cleanup
tof.close()
VL53L1X Start Ranging Address 0x29
VL53L0X_GetDeviceInfo:
Device Name : VL53L1 cut1.1
Device Type : VL53L1
Device ID :
ProductRevisionMajor : 1
ProductRevisionMinor : 15
Segmentation fault
I am facing issue in segmentation fault how to sort this problem?