From f74894844edd6a7a7ce286bb56475314368357ee Mon Sep 17 00:00:00 2001 From: ALTracer <11005378+ALTracer@users.noreply.github.com> Date: Sun, 19 Jan 2025 20:30:40 +0300 Subject: [PATCH] nrf51: Enable non-halting SRAM access for RTT on nRF52 series --- src/target/nrf51.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/target/nrf51.c b/src/target/nrf51.c index 7400254f57f..b95e0f08721 100644 --- a/src/target/nrf51.c +++ b/src/target/nrf51.c @@ -144,6 +144,8 @@ bool nrf51_probe(target_s *t) uint32_t ram_size = target_mem32_read32(t, NRF52_INFO_RAM); t->driver = "nRF52"; t->target_options |= TOPT_INHIBIT_NRST; + /* On nRF52 SoC, Cortex-M4F allows SRAM access without halting */ + t->target_options |= TOPT_NON_HALTING_MEM_IO; target_add_ram32(t, 0x20000000U, ram_size * 1024U); nrf51_add_flash(t, 0, page_size * code_size, page_size); nrf51_add_flash(t, NRF51_UICR, page_size, page_size);