Hello,
I'm trying to configure the TWIM for a nRF52832 microcontroller. I have created the following *overlay file:
&i2c1 { /* a */ compatible = "nordic,nrf-twim"; /* b */ status = "okay"; /* c */ clock-frequency = <100000>; /* d */ twis_device1:nRF52832@40004000 { /* e */ // device compatible /* f */ label = "i2c nRF52832 addr 0x28"; /* g */ reg = <0x40004000>; /* h */ }; };
I have the following error in line "e" ('twis_device1:nRF52832@40004000'):
Node nRF52832 should have "compatible" property Node should only occur on the undefined bus. /soc/i2c@40004000/nRF52832@40004000/
And after a build I get the following error:
/ncs/central_uart/build/zephyr/include/generated/devicetree_generated.h:12568:37: error: 'DT_N_S_soc_S_i2c_40004000_P_sda_pin' undeclared (first use in this function); did you mean 'DT_N_S_soc_S_i2c_40004000_P_status'? 12568 | #define DT_N_NODELABEL_i2c1 DT_N_S_soc_S_i2c_40004000
Could you please explain me what I'm not configuring correctly and how to solve it? Thanks for your attention.