Skip to content

Commit c3ef3ca

Browse files
committed
Disable sleep on STM32F4 as an workaround for stability issues.
This workaround is related to Mbed OS issue #12294
1 parent e642a7d commit c3ef3ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/TARGET_STM/TARGET_STM32F4/device/stm32f4xx_hal_pwr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ void HAL_PWR_EnterSLEEPMode(uint32_t Regulator, uint8_t SLEEPEntry)
391391
if(SLEEPEntry == PWR_SLEEPENTRY_WFI)
392392
{
393393
/* Request Wait For Interrupt */
394-
__WFI();
394+
__NOP();
395395
}
396396
else
397397
{

0 commit comments

Comments
 (0)