Skip to content

Commit 6c09a74

Browse files
committed
stm32f4: Enable non-halting SRAM access for RTT on STM32F4 series
1 parent 15663b3 commit 6c09a74

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/target/stm32f4.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,10 @@ static bool stm32f4_attach(target_s *const target)
441441
}
442442
}
443443

444+
/* On STM32F4 SoC, Cortex-M4F allows SRAM access without halting */
445+
if (!is_f7 && target->part_id != ID_STM32F20X)
446+
target->target_options |= TOPT_NON_HALTING_MEM_IO;
447+
444448
/* Now we have a base RAM map, rebuild the Flash map */
445449
uint8_t split = 0;
446450
uint32_t bank_length;

0 commit comments

Comments
 (0)