Hi,
I have question about a project I'm running on nRF connect sdk 2.9.1.
I noticed that whenever an i2c sensor device device_init() is returning a value not equal to 0, the i2c driver (probably) keeps the hfclk active.
For example, if the sensor is not connected, and you try to initialize it, the mcu will not get into a low-power mode.
See the sample code below. After the first call to TEMP_Get(), the mcu will keep its hfclk running
Example code:
I'm trying on an nRF54L15 DK board.
Configuration is the bare minimum to get the code running.
The .dtsi looks like this.
I use a Sensirion sensor, but it will probably go wrong with any i2c sensor.
What am I doing wrong here.
Thanks,
Renger