Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nrf51: Enable non-halting SRAM access for RTT on nRF52 series
Browse files Browse the repository at this point in the history
ALTracer committed Jan 26, 2025
1 parent 794152a commit f748948
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/target/nrf51.c
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit f748948

Please sign in to comment.