I'm new to the NCS/Zephyr environment. In the past I got the nRF52832 working with the VL53L0x. I ported arduino code of the VL53L0x and got it working well. But now I'm trying to move to the NCS/Zephyr tools.
I selected the peripheral_uart example and added I2C driver. It runs perfect and therefore time to move on with I2C devices.
I found in de zephyr directory the VL53L0x files and I found in the "Configure nRF Connect SDK Project" the Sensor and VL53L0x option.
But now I got stuck.
Running the code with only selected the VL53L0x option the code will not compile anymore. In devicetree.h
#define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
I got the following error:
ncs/v1.5.0/zephyr/include/devicetree.h:300:40: error: 'DT_N_INST_0_st_vl53l0x_BUS_P_label' undeclared (first use in this function) ncs/v1.5.0/zephyr/include/devicetree.h:300:40: error: 'DT_N_INST_0_st_vl53l0x_REG_IDX_0_VAL_ADDRESS' undeclared (first use in this function); did you mean 'DT_N_S_cpus_S_cpu_0_REG_IDX_0_VAL_ADDRESS'?
How can I solve these issues?