5 years, 7 months ago.

Nucleo-F401RE power consumption

Hello, I’m using nucleo blink led example with mbed-os 5-12 to test this board consumption. I put a multimeter across jumper IDD.

#include "mbed.h"

DigitalOut led1(LED1);
int main() {
    while(1) {
        led1 = true; // LED is ON
        ThisThread::sleep_for(4500);
        led1 = false; // LED is OFF
        ThisThread::sleep_for(4300);
    }
}

I’m using online compiler and I compiled using this macros: DEVICE_SLEEP MBED_TICKLESS DEVICE_LPTICKER MBED_SLEEP_TRACING_ENABLED

Here is the tracing result:

  • Sleep locks held:
  • [id: mbed_rtx_idle., count: 1]
  • UNLOCK: mbed_rtx_idle.cpp, ln: 133, lock count: 0
  • LOCK: mbed_rtx_idle.cpp, ln: 111, lock count: 1

With LED off I measured a current of 5.76mA, that is far too much considering that it should go deepsleep. What could be wrong? Mario

Be the first to answer this question.