Skip to content

Commit

Permalink
hal/imxrt: update boot reason to include all reset flags
Browse files Browse the repository at this point in the history
JIRA: RTOS-995
  • Loading branch information
ziemleszcz committed Jan 14, 2025
1 parent 8105d56 commit 7a312d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hal/armv7m/imxrt/10xx/105x/imxrt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1617,7 +1617,7 @@ void _imxrt_init(void)
imxrt_common.cpuclk = 528000000; /* Default system clock */

/* Store reset flags and then clean them */
imxrt_common.resetFlags = *(imxrt_common.src + src_srsr) & 0x1f;
imxrt_common.resetFlags = *(imxrt_common.src + src_srsr) & 0x1ff;
*(imxrt_common.src + src_srsr) = 0xffffffffu;
hal_cpuDataSyncBarrier();

Expand Down
2 changes: 1 addition & 1 deletion hal/armv7m/imxrt/10xx/106x/imxrt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1630,7 +1630,7 @@ void _imxrt_init(void)
imxrt_common.cpuclk = 528000000; /* Default system clock */

/* Store reset flags and then clean them */
imxrt_common.resetFlags = *(imxrt_common.src + src_srsr) & 0x1f;
imxrt_common.resetFlags = *(imxrt_common.src + src_srsr) & 0x1ff;
*(imxrt_common.src + src_srsr) = 0xffffffffu;
hal_cpuDataSyncBarrier();

Expand Down
2 changes: 1 addition & 1 deletion hal/armv7m/imxrt/117x/imxrt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,7 @@ void _imxrt_init(void)
hal_cpuDataMemoryBarrier();

/* Store reset flags and then clean them */
imxrt_common.resetFlags = *(imxrt_common.src + src_srsr) & 0x1f;
imxrt_common.resetFlags = *(imxrt_common.src + src_srsr);
*(imxrt_common.src + src_srsr) = 0xffffffffu;
hal_cpuDataSyncBarrier();

Expand Down

0 comments on commit 7a312d3

Please sign in to comment.