-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
Description
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.