Skip to content

Commit d5e643f

Browse files
committed
[Nuvoton] Fix NUC472 hard fault in SMCC tests
1 parent c7a5ef5 commit d5e643f

File tree

1 file changed

+4
-0
lines changed
  • targets/TARGET_NUVOTON/TARGET_NUC472/device/StdDriver

1 file changed

+4
-0
lines changed

targets/TARGET_NUVOTON/TARGET_NUC472/device/StdDriver/nuc472_clk.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ void CLK_PowerDown(void)
7575
SCB->SCR = SCB_SCR_SLEEPDEEP_Msk;
7676
CLK->PWRCTL |= (CLK_PWRCTL_PDEN_Msk | CLK_PWRCTL_PDWKDLY_Msk );
7777
__WFI();
78+
__DSB();
79+
__ISB();
7880
}
7981

8082
/**
@@ -92,6 +94,8 @@ void CLK_Idle(void)
9294

9395
/* Chip enter idle mode after CPU run WFI instruction */
9496
__WFI();
97+
__DSB();
98+
__ISB();
9599
}
96100

97101

0 commit comments

Comments
 (0)