Skip to content

Commit 8da2e31

Browse files
committed
M467: Fix Greentea reset_reason test failure
HRESETRF is combined reset flag. Filter it out to avoid interference with reset reason check.
1 parent df77485 commit 8da2e31

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

targets/TARGET_NUVOTON/TARGET_M460/reset_reason.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,17 @@
2222

2323
#include "cmsis.h"
2424

25-
/* All reset source flags */
25+
/* All reset source flags
26+
*
27+
* NOTE: HRESETRF is combined reset flag. Filter it out to avoid interference with reset reason check.
28+
*/
2629
#define SYS_RSTSTS_ALLRF_Msk \
2730
(SYS_RSTSTS_PORF_Msk | \
2831
SYS_RSTSTS_PINRF_Msk | \
2932
SYS_RSTSTS_WDTRF_Msk | \
3033
SYS_RSTSTS_LVRF_Msk | \
3134
SYS_RSTSTS_BODRF_Msk | \
3235
SYS_RSTSTS_MCURF_Msk | \
33-
SYS_RSTSTS_HRESETRF_Msk | \
3436
SYS_RSTSTS_CPURF_Msk | \
3537
SYS_RSTSTS_CPULKRF_Msk)
3638

0 commit comments

Comments
 (0)