Skip to content

Commit 97dd302

Browse files
committed
M23: Fix compile error with mbed fault handler
M23 doesn't implement Main Extension. So like M0/M0+, these registers HFSR/ MMFSR/BFSR/UFSR/DFSR are not present on M23. Remove access to them in mbed fault handler for M23 targets.
1 parent 5a8f795 commit 97dd302

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform/TARGET_CORTEX_M/mbed_fault_handler.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ MBED_NOINLINE void print_context_info(void)
9898
//Capture CPUID to get core/cpu info
9999
mbed_error_printf("\nCPUID: %08" PRIX32, SCB->CPUID);
100100

101-
#if !defined(TARGET_M0) && !defined(TARGET_M0P)
101+
#if !defined(TARGET_M0) && !defined(TARGET_M0P) && !defined(TARGET_M23)
102102
//Capture fault information registers to infer the cause of exception
103103
mbed_error_printf("\nHFSR : %08" PRIX32
104104
"\nMMFSR: %08" PRIX32

0 commit comments

Comments
 (0)