Good morning,
It has been implemented a sleep mode to save battery when the board is not used.
To do that we follow the documentation and implemented the SystemOn mode and we've seen huge improvement in the power consumption (both in sleep and running mode)
When sleep mode is engaged all the peripheral are turned off.
To save power due to the twi driver we use the lines of code below.
Although we see good power save we think it is not enough.
The board when in sleep mode consumer around 550uA, but if the twi driver is not initialized at all, the consumption is around 280uA. So I guess there someting we can improve in the twi driver shut down sequence.
We are using nrf5 SDK 17.0.2
/* Uninit all the TWI instances, this will put the hardware in a known state and stop any ongoing transfer, standard shutdown */
for (uint8_t i = 0; i < I2C_BUS_N; i++)
{
nrf_drv_twi_disable(&busToTwiInstance[i]->twi);
nrf_twi_mngr_uninit(busToTwiInstance[i]);
}