Skip to content

Commit 3ada760

Browse files
committed
Nenik: Re-enable SD specific sleep path, related to #165
When the SoftDevice is active (e.g. as soon as you call Bluefruit.begin()), standby by __WFE seems to keep external Xtal oscillator running (at least on nRF52832), increasing the standby power consumption by 500-800uA. The SD-enabled path was apparently disabled mistakenly by Nordic, see Nordic post for reference: https://devzone.nordicsemi.com/f/nordic-q-a/35073/high-power-consumption-of-softdevice/136048#136048
1 parent a5afbec commit 3ada760

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

cores/nRF5/freertos/portable/CMSIS/nrf52/port_cmsis_systick.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ void vPortSuppressTicksAndSleep( TickType_t xExpectedIdleTime )
182182
configPRE_SLEEP_PROCESSING( xModifiableIdleTime );
183183
if ( xModifiableIdleTime > 0 )
184184
{
185-
#if 0 // With FreeRTOS sd_app_evt_wait increases power consumption with FreeRTOS compared to _WFE (NRFFOSDK-11174)
186185
#ifdef SOFTDEVICE_PRESENT // TODO
187186
uint8_t sd_en = 0;
188187
(void) sd_softdevice_is_enabled(&sd_en);
@@ -193,7 +192,6 @@ void vPortSuppressTicksAndSleep( TickType_t xExpectedIdleTime )
193192
}
194193
else
195194
#endif
196-
#endif // (NRFFOSDK-11174)
197195
{
198196
/* No SD - we would just block interrupts globally.
199197
* BASEPRI cannot be used for that because it would prevent WFE from wake up.

0 commit comments

Comments
 (0)