Skip to content

Commit 56ba3b1

Browse files
committed
Reenable nrf erratum for FPU high power usage in sleep
1 parent 7e4000f commit 56ba3b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cores/nRF5/wiring.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ void enterOTADfu(void)
113113

114114
void waitForEvent(void)
115115
{
116-
#if 0
116+
// NRF52840 erratum: 3.7 [87] CPU: Unexpected wake from System ON Idle when using FPU
117+
#if (__FPU_USED == 1)
117118
// Set bit 7 and bits 4..0 in the mask to one (0x ...00 1001 1111)
118119
enum { FPU_EXCEPTION_MASK = 0x0000009F };
119120

0 commit comments

Comments
 (0)