I didn't change nrf5340_cpuapp_common.dts, and I saw the macro definition of "i2c1" in "devicetree_unfixed.h," but I called device_get_binding (DT_LABEL (DT_NODELABEL (i2c1)) and did return NULL
I didn't change nrf5340_cpuapp_common.dts, and I saw the macro definition of "i2c1" in "devicetree_unfixed.h," but I called device_get_binding (DT_LABEL (DT_NODELABEL (i2c1)) and did return NULL
Try setting CONFIG_I2C=y in prj.conf. Then it should work. I just tested it. It is not enought to enable I2C in dts (hardware), you have to enable the software part/drivers as well.
Best regards,
Simon
Try setting CONFIG_I2C=y in prj.conf. Then it should work. I just tested it. It is not enought to enable I2C in dts (hardware), you have to enable the software part/drivers as well.
Best regards,
Simon