Skip to content

Commit 15663b3

Browse files
committed
stm32f1: Enable non-halting SRAM access for RTT on STM32F1/F3/F0 (blanket)
* Tested on STM32F103 and STM32F072
1 parent 9aa64c7 commit 15663b3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/target/stm32f1.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,6 +1017,9 @@ bool stm32f1_probe(target_s *target)
10171017
stm32f1_add_flash(target, STM32F1_FLASH_BANK1_BASE, flash_size, block_size);
10181018
target_add_commands(target, stm32f1_cmd_list, target->driver);
10191019

1020+
/* On STM32F1 (F3, F0) SoC, Cortex-M3 (M4F, M0) allows SRAM access without halting */
1021+
target->target_options |= TOPT_NON_HALTING_MEM_IO;
1022+
10201023
/* Now we have a stable debug environment, make sure the WDTs + WFI and WFE instructions can't cause problems */
10211024
return stm32f1_configure_dbgmcu(target, dbgmcu_config_taddr);
10221025
}

0 commit comments

Comments
 (0)