Skip to content

Commit cf8d6c4

Browse files
committed
Fix errors on NCS36510 after deep sleep
Add NOPs after deep sleep to prevent unexpected behavior. It appears that the first one or two instructions after deep sleep do not get executed properly. Note - This is a temporary workaround. For a more robust solution the NCS36510 needs to investigate the root cause of this issue.
1 parent f746fc5 commit cf8d6c4

File tree

1 file changed

+3
-1
lines changed
  • targets/TARGET_ONSEMI/TARGET_NCS36510

1 file changed

+3
-1
lines changed

targets/TARGET_ONSEMI/TARGET_NCS36510/sleep.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ void fncs36510_deepsleep(void)
6464
/** Enter into deep sleep mode */
6565
__ISB();
6666
__WFI();
67+
__NOP();
68+
__NOP();
6769

6870
/** Wait for the external 32MHz to be power-ed up & running
6971
* Re-power down the 32MHz internal osc
@@ -115,4 +117,4 @@ void fncs36510_coma(void)
115117
fMacRestoreFrameStoreLUT(MAC_LUT_BackUp); */
116118
}
117119

118-
#endif /* DEVICE_SLEEP */
120+
#endif /* DEVICE_SLEEP */

0 commit comments

Comments
 (0)