The child nodes of the I2C device tree cannot be parsed.

I am not using the nrf5340DK development board; instead, I am using the nrf5340 chip, and the SDK version I'm using is V3.1.0. I defined the I2C child node "lt3582" in the device tree, and this child node is also visible under the "i2c1" node. However, the function I2C_DT_SPEC_GET in the main function keeps indicating that this child node is not defined. Could anyone please help me with this?

Parents Reply
  • In the tutorial, it's possible to add one's own device tree files, but in my current device tree setup, there doesn't seem to be a place to add device tree files. Currently, there are two device tree files: nrf5340dk_nrf5340_cpuapp_ns.dts and app.overlay. The app.overlay file is the one I modified to configure device tree pins, and I'm not sure if app.overlay is my custom device tree file.

Children
Related