Skip to content

Commit fd756ef

Browse files
author
Cruz Monrreal
authored
Merge pull request #6598 from embeddedartists/lpc4088_hardfault_fix
LPC4088: Fix hardfault occuring after power-cycle
2 parents e2567e5 + 01d06a9 commit fd756ef

File tree

1 file changed

+3
-2
lines changed
  • targets/TARGET_NXP/TARGET_LPC408X

1 file changed

+3
-2
lines changed

targets/TARGET_NXP/TARGET_LPC408X/sleep.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@
1919

2020
void hal_sleep(void) {
2121
LPC_SC->PCON = 0x0;
22-
22+
2323
// SRC[SLEEPDEEP] set to 0 = sleep
2424
SCB->SCR &= ~SCB_SCR_SLEEPDEEP_Msk;
25-
25+
2626
// wait for interrupt
2727
__WFI();
28+
__NOP();
2829
}
2930

3031
/*

0 commit comments

Comments
 (0)