Skip to content

Commit b518d35

Browse files
ioannisggalak
authored andcommitted
arch: arm: fix bug in escalted HF dump
This commit fixes a bug in the ARM HardFAult handler, which prevented from dumping the right UsageFault flags, after a UsageFault had escalated to HardFault. Signed-off-by: Ioannis Glaropoulos <[email protected]>
1 parent 2c577ff commit b518d35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/arch/arm/cortex_m/cmsis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ extern "C" {
3636
#define CPACR_CP11_RESERVED (2UL << CPACR_CP11_Pos)
3737
#define CPACR_CP11_FULL_ACCESS (3UL << CPACR_CP11_Pos)
3838

39-
#define SCB_UFSR (*((__IOM u16_t *) &SCB->CFSR + 2))
39+
#define SCB_UFSR (*((__IOM u16_t *) &SCB->CFSR + 1))
4040
#define SCB_BFSR (*((__IOM u8_t *) &SCB->CFSR + 1))
4141
#define SCB_MMFSR (*((__IOM u8_t *) &SCB->CFSR))
4242

0 commit comments

Comments
 (0)