I am working my way through the Beginner course on Dev Academy, and am trying my hand at using my own accelerometer breakout board communicating over I2C for lesson 6.
I am using the nrf52DK evaluation board. I can't get past the build stage.
I am getting the following error:
```
C:/embeddedProjects/ncs-fund/v2.8.x-v2.7.0/l6/l6_e1/build/l6_e1/zephyr/include/generated/zephyr/devicetree_generated.h:8394:33: error: 'DT_N_S_soc_S_i2c_40003000_S_mysensor_68' undeclared (first use in this function); did you mean 'DT_N_S_soc_S_i2c_40003000_S_mysensor_68_BUS'?
8394 | #define DT_N_NODELABEL_mysensor DT_N_S_soc_S_i2c_40003000_S_mysensor_68
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/embeddedProjects/ncs-fund/v2.8.x-v2.7.0/l6/l6_e1/build/l6_e1/zephyr/include/generated/zephyr/devicetree_generated.h:8394:33: note: in definition of macro 'DT_N_NODELABEL_mysensor'
8394 | #define DT_N_NODELABEL_mysensor DT_N_S_soc_S_i2c_40003000_S_mysensor_68
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.9.0/zephyr/include/zephyr/devicetree.h:200:29: note: in expansion of macro 'DT_CAT'
200 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
| ^~~~~~
C:/embeddedProjects/ncs-fund/v2.8.x-v2.7.0/l6/l6_e1/src/main.c:32:19: note: in expansion of macro 'DT_NODELABEL'
32 | #define I2C0_NODE DT_NODELABEL(mysensor)
| ^~~~~~~~~~~~
C:/embeddedProjects/ncs-fund/v2.8.x-v2.7.0/l6/l6_e1/src/main.c:36:22: note: in expansion of macro 'I2C0_NODE'
36 | printk("%s", I2C0_NODE);
| ^~~~~~~~~
C:/embeddedProjects/ncs-fund/v2.8.x-v2.7.0/l6/l6_e1/build/l6_e1/zephyr/include/generated/zephyr/devicetree_generated.h:8394:33: note: each undeclared identifier is reported only once for each function it appears in
8394 | #define DT_N_NODELABEL_mysensor DT_N_S_soc_S_i2c_40003000_S_mysensor_68
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/embeddedProjects/ncs-fund/v2.8.x-v2.7.0/l6/l6_e1/build/l6_e1/zephyr/include/generated/zephyr/devicetree_generated.h:8394:33: note: in definition of macro 'DT_N_NODELABEL_mysensor'
8394 | #define DT_N_NODELABEL_mysensor DT_N_S_soc_S_i2c_40003000_S_mysensor_68
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/ncs/v2.9.0/zephyr/include/zephyr/devicetree.h:200:29: note: in expansion of macro 'DT_CAT'
200 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
| ^~~~~~
C:/embeddedProjects/ncs-fund/v2.8.x-v2.7.0/l6/l6_e1/src/main.c:32:19: note: in expansion of macro 'DT_NODELABEL'
32 | #define I2C0_NODE DT_NODELABEL(mysensor)
| ^~~~~~~~~~~~
C:/embeddedProjects/ncs-fund/v2.8.x-v2.7.0/l6/l6_e1/src/main.c:36:22: note: in expansion of macro 'I2C0_NODE'
36 | printk("%s", I2C0_NODE);
| ^~~~~~~~~
```
I am using the following overlay file under boards\nrf52dk_nrf52832.overlay:
```
```
The I2C device's address is 0x68.
Here is my code:
```
```
I am new to the whole concept of describing hardware through DTB files so any help would be appreciated!