summaryrefslogtreecommitdiff
path: root/core/cortex-m/panic.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/cortex-m/panic.c')
-rw-r--r--core/cortex-m/panic.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/cortex-m/panic.c b/core/cortex-m/panic.c
index 8fabaf4b21..2052656410 100644
--- a/core/cortex-m/panic.c
+++ b/core/cortex-m/panic.c
@@ -418,6 +418,11 @@ void bus_fault_handler(void)
void ignore_bus_fault(int ignored)
{
+ if (IS_ENABLED(CHIP_FAMILY_STM32H7)) {
+ if (ignored == 0)
+ asm volatile("dsb; isb");
+ }
+
/*
* Flash code might call this before cpu_init(),
* ensure that the bus faults really go through our handler.