Skip to content

STM32L0 MCU hang after some deepsleep/wakeup cycles #5830

@atoy40

Description

@atoy40

Description

  • Type: Bug
  • Priority: Major

Bug

Target
NUCLEO_L073RZ

Toolchain:
GCC_ARM

mbed-os sha:
eca67ca (HEAD, tag: mbed-os-5.7.2, tag: latest, origin/mbed-os-5.7)

Problem

A gpio is used as an interrupt to wakeup after a deep sleep. After some sleep/wakeup cycle, the processor hangs (it can hangs after less than ten, or a lot more, no identified "rules").

#include "mbed.h"

DigitalOut led(LED1);
InterruptIn btn(PC_13);
 
void callback(void) {
    led = 1 - led;
}

int main() {
    btn.rise(&callback);
    while(1) {
        sleep();
    }
}

Initially, I've try the exact same code with a LowPowerTicker instead of the InteruptIn. It gives the exact same behavior.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions