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
  • Hi 

    It seems the best overview of the process of making a custom driver we have at the moment is an answer from one of my colleagues, available here.

    Can you look over those steps and make sure you have followed them all?

    If you still can't figure out the issue just let me know, and I will take a look at it (if you can also share your files that would be helpful). 

    Best regards
    Torbjørn 

  • Thanks, this is what I did and sent in the zip.
    In zip:
    Kconfig & Cmakelists added in zephyr/drivers
    In Application, this my project (the sub folder).
    st,vl53l1x.yaml added in dts/bindings/sensor/vl53l1x
    And folder vl53l1x added in zephyr/drivers/sensor
  • I found my mistake.

    An unconfigured dependency and the sensor driver was not built.

    I can now initialize my sensor !

    Next step, make it work properly Smiley

    Thanks for help !

Reply Children
No Data
Related