
I'm currently using the Nucleo for the STM32L452RE. There are no peripherals attached to it. I measure current consumption in the following cases at at JP6, IDD.
If I activate Wire functions, I get roughly 360 μA in deepSleep mode

If I deactivate Wire functions, I get roughly 2.4 μA in deepSleep.
My questions are:
1. is that normal? (I repeat: no peripherals are attached, i.e. no I2C peripherals either).
2. Is there a way to make the I2C interface consume less power? To shut it down somewhat in deepSleep mode? I would expect the deepSleep library would already do that, but apparantly not so.
Code:
Code: Select all
#include "STM32LowPower.h"
#include <Wire.h>
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
/*------- Enable/disable the below piece of code--------- */
// Wire.setSDA(PB9);
// Wire.setSCL(PB8);
// Wire.begin();
/* -----Enable/disable the above piece of code ----*/
// Configure low power
LowPower.begin();
}
void loop() {
digitalWrite(LED_BUILTIN, LOW);
LowPower.deepSleep(30*1000);
digitalWrite(LED_BUILTIN, HIGH);
delay(5000);
}