|
|
@ -135,7 +135,7 @@ bool nrf51_probe(target *t) |
|
|
|
((info_part & 0x00ff000) == 0x52000)) { |
|
|
|
uint32_t ram_size = target_mem_read32(t, NRF52_INFO_RAM); |
|
|
|
t->driver = "Nordic nRF52"; |
|
|
|
t->target_options |= CORTEXM_TOPT_INHIBIT_SRST; |
|
|
|
t->target_options |= CORTEXM_TOPT_INHIBIT_NRST; |
|
|
|
target_add_ram(t, 0x20000000, ram_size * 1024); |
|
|
|
nrf51_add_flash(t, 0, page_size * code_size, page_size); |
|
|
|
nrf51_add_flash(t, NRF51_UICR, page_size, page_size); |
|
|
@ -147,7 +147,7 @@ bool nrf51_probe(target *t) |
|
|
|
* IDCODE is kept as '0', as deciphering is hard and |
|
|
|
* there is later no usage.*/ |
|
|
|
target_add_ram(t, 0x20000000, 0x8000); |
|
|
|
t->target_options |= CORTEXM_TOPT_INHIBIT_SRST; |
|
|
|
t->target_options |= CORTEXM_TOPT_INHIBIT_NRST; |
|
|
|
nrf51_add_flash(t, 0, page_size * code_size, page_size); |
|
|
|
nrf51_add_flash(t, NRF51_UICR, page_size, page_size); |
|
|
|
target_add_commands(t, nrf51_cmd_list, "nRF51"); |
|
|
|