Skip to content

Commit 7e6ecc0

Browse files
committed
nrf51: Enable non-halting SRAM access for RTT on nRF52 series
1 parent 6c09a74 commit 7e6ecc0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/target/nrf51.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ bool nrf51_probe(target_s *t)
144144
uint32_t ram_size = target_mem32_read32(t, NRF52_INFO_RAM);
145145
t->driver = "nRF52";
146146
t->target_options |= TOPT_INHIBIT_NRST;
147+
/* On nRF52 SoC, Cortex-M4F allows SRAM access without halting */
148+
t->target_options |= TOPT_NON_HALTING_MEM_IO;
147149
target_add_ram32(t, 0x20000000U, ram_size * 1024U);
148150
nrf51_add_flash(t, 0, page_size * code_size, page_size);
149151
nrf51_add_flash(t, NRF51_UICR, page_size, page_size);

0 commit comments

Comments
 (0)