NCS 2.6.1 + nRF52832
We are using the LIS2DH sensor driver from Zephyr. We observe (and this is also explicitly stated here) that the sensor initialization is triggered before entering the main() function. This initialization of course includes communication with the sensor chip.
In our case, this represents a problem since we would like to keep the sensor powered down at startup by not turning on the FET that delivers power to it. We would turn the power on, do the initialization and use the sensor at a later moment.
So I have two questions:
1. How to prevent the automatic sensor initialization that happens before main()?
2. How to explicitly trigger this initialization from user code?