This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

VL53L1X - Custom driver not found

Hi,

I'm trying to set up a custom driver for the VL53L1X Sensor. (nRF9160 + Icarus Board + NCS 1.7.1)

I placed a new folder in drivers/sensor + modify CmakeLists.fr & Kconfig files.

However when i perform a build with VSC, it does not seem to find and put the driver on application. (I can't init my sensor -> VL53L1X not found)

After debugging, i see in build/include/autoconf.h file, there is no trace of my call to CONFIG_VL53L1X (CONFIG_VL53L1X=y in prj.conf).

If i do exactly the same procedure with de VL53L0X driver (already in drivers/sensor), no problem, everything works (CONFIG_VL53L1X is present in autoconf, all is ok, sensor detected).

When adding a custom driver, do any special handling have to be done ?

Thanks

Parents
  • I was trying the same thing with a different sensor.  The sensor would never show up on the Device list when I debugged the load devices.  Also the Driver init was never called by the OS.

    What you are saying sheds some more light on this problem. 

Reply
  • I was trying the same thing with a different sensor.  The sensor would never show up on the Device list when I debugged the load devices.  Also the Driver init was never called by the OS.

    What you are saying sheds some more light on this problem. 

Children
No Data
Related