Hi there,
I am studying the nRF9160 DK with the DHT sample from Zephyr, but I fail to build it as error of "'DT_N_INST_0_aosong_dht_P_label' undeclared (first use in this function)" comes up.
how to reproduce this issue:
1.copy the DHT folder to myapp folder inside ncs/v1.4.2
2.create nrf9160dk_nrf9160ns.overlay in myapp
/ {
dht22: &dht22{
compatible = "aosong,dht";
status = "okay";
label = "DHT22";
dio-gpios = <&gpio0 17 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
dht22;
};
};
I also deleted the original folder "boards".
3.build and run from SES, fail due to DT_N_INST_0_aosong_dht_P_label' undeclared.
This issue can also be reproduced directly with Zephyr sample folder:
1. From SES, FIle->Opne nRF Connect SDK Project -> select ncs\v1.4.2\zephyr\samples\sensor\dht, board is nrf9160dk_nrf9160ns
2. Build and run
Could you give me hand to solve this issue?
Thanks!
Roger