Dear Devzone Community,
when trying to get the Zephyr SHT31 Sample running, I stumbled across an error which I was not able to resolve.
I did the following:
- Add nrf9160dk_nrf9160ns.overlay in zephyr\samples\sensor\sht3xd\boards with following content:
&i2c0 { sht3xd@44 { compatible = "sensirion,sht3xd"; reg = <0x44>; label = "SHT3XD"; }; }; - Open Project 'sht3xd' with board 'nrf9160dk_nrf9160ns' in SES
- Leave configuration as is
- Build solution
The output window then shows the error:
'DT_N_S_soc_S_peripheral_40000000_S_i2c_8000_S_sht3xd_44_BUS_P_label' undeclared here (not in a function); did you mean 'DT_N_S_soc_S_peripheral_40000000_S_i2c_8000_S_sht3xd_44_P_label'?
Which directs to the file 'devicetree_unfixed.h'. The error is shown to occur at this line:
#define DT_N_INST_0_sensirion_sht3xd DT_N_S_soc_S_peripheral_40000000_S_i2c_8000_S_sht3xd_44
Did someone have a similar experience?
Thank you and kind regards