Skip to content

Commit 953291c

Browse files
committed
stm32n6: Add DSB after EXTI pending clear; default to task accounting
The EXTI pending-register clear can lag behind the ISR return, causing the NVIC to re-enter the handler spuriously. Add a DSB to ensure the store has propagated before the callback runs. Also drop the ENABLE_TASK_ACCOUNTING?=no override so the platform picks up the common default (on).
1 parent 48cb3fe commit 953291c

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/platform/stm32n6/stm32n6.mk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ P := ${SRC}/platform/stm32n6
22

33
GLOBALDEPS += ${P}/stm32n6.mk
44

5-
ENABLE_TASK_ACCOUNTING ?= no
6-
75
CPPFLAGS += -iquote${P} -include ${P}/stm32n6.h
86

97
LDSCRIPT ?= ${P}/stm32n6.ld

src/platform/stm32n6/stm32n6_gpio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ gpio_irq(int line)
186186
uint32_t mask = 1 << line;
187187
reg_wr(EXTI_RPR1, mask);
188188
reg_wr(EXTI_FPR1, mask);
189+
asm volatile("dsb");
189190
gpio_irqs[line].cb(gpio_irqs[line].arg);
190191
}
191192

0 commit comments

Comments
 (0)