diff options
-rw-r--r-- | ports/stm32/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/stm32/main.c b/ports/stm32/main.c index aea1953fd..137e13281 100644 --- a/ports/stm32/main.c +++ b/ports/stm32/main.c @@ -374,7 +374,11 @@ void stm32_main(uint32_t reset_mode) { #endif SCB_EnableICache(); + #if defined(STM32N6) && !defined(NDEBUG) + // Don't enable D-cache on N6 when debugging; see ST Errata ES0620 - Rev 0.2 section 2.1.2. + #else SCB_EnableDCache(); + #endif #elif defined(STM32H5) |