From 8708e34b295efdfda891175fc658fc68b1e839a6 Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Tue, 9 Jun 2020 12:24:42 +0200 Subject: [PATCH] arch/arm/src/nrf52/nrf52_idle.c: disable WFI in up_idle --- arch/arm/src/nrf52/nrf52_idle.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/src/nrf52/nrf52_idle.c b/arch/arm/src/nrf52/nrf52_idle.c index 5733845d3a..f6851b1c4a 100644 --- a/arch/arm/src/nrf52/nrf52_idle.c +++ b/arch/arm/src/nrf52/nrf52_idle.c @@ -176,10 +176,16 @@ void up_idle(void) up_idlepm(); - /* Sleep until an interrupt occurs to save power */ + /* Sleep until an interrupt occurs to save power + * + * REVISIT: The SysTick's clock will only tick when the CPU is + * running (not in WFE/WFI) or when the system is in debug interface mode. + */ +#if 0 BEGIN_IDLE(); asm("WFI"); END_IDLE(); #endif +#endif }