Skip to content

Commit eaed251

Browse files
iabdalkaderdpgeorge
authored andcommitted
stm32/main: Disable D-cache when debugging N6.
See ST Errata ES0620 - Rev 0.2 section 2.1.2. Signed-off-by: iabdalkader <[email protected]>
1 parent eb3ea9e commit eaed251

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ports/stm32/main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,11 @@ void stm32_main(uint32_t reset_mode) {
374374
#endif
375375

376376
SCB_EnableICache();
377+
#if defined(STM32N6) && !defined(NDEBUG)
378+
// Don't enable D-cache on N6 when debugging; see ST Errata ES0620 - Rev 0.2 section 2.1.2.
379+
#else
377380
SCB_EnableDCache();
381+
#endif
378382

379383
#elif defined(STM32H5)
380384

0 commit comments

Comments
 (0)