Skip to content

Commit 8f49ae5

Browse files
committed
stm32l4: Enable non-halting SRAM access for RTT on STM32G47x
1 parent 610118b commit 8f49ae5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/target/stm32l4.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,10 @@ static bool stm32l4_attach(target_s *const target)
847847
} else
848848
stm32l4_add_flash(target, STM32L4_FLASH_BANK_1_BASE, flash_len * 1024U, 0x800, UINT32_MAX);
849849

850+
/* On STM32G47x SoC, Cortex-M4F allows SRAM access without halting */
851+
if (device->device_id == ID_STM32G47)
852+
target->target_options |= TOPT_NON_HALTING_MEM_IO;
853+
850854
/* Clear all errors in the status register. */
851855
stm32l4_flash_write32(target, FLASH_SR, stm32l4_flash_read32(target, FLASH_SR));
852856
return true;

0 commit comments

Comments
 (0)