Merge pull request #114 from markrages/master

Add nRF52 support.
This commit is contained in:
Gareth McMullin 2016-02-11 15:49:13 +13:00
commit ac9d87635c
1 changed files with 8 additions and 0 deletions

View File

@ -81,6 +81,7 @@ const struct command_s nrf51_read_cmd_list[] = {
#define NRF51_UICR 0x10001000
#define NRF51_PAGE_SIZE 1024
#define NRF52_PAGE_SIZE 4096
#define SRAM_BASE 0x20000000
#define STUB_BUFFER_BASE (SRAM_BASE + 0x28)
@ -160,6 +161,13 @@ bool nrf51_probe(target *t)
nrf51_add_flash(t, NRF51_UICR, 0x100, 0x100);
target_add_commands(t, nrf51_cmd_list, "nRF51");
return true;
case 0x00AC: /* nRF52832 Preview QFAA BA0 */
t->driver = "Nordic nRF52";
target_add_ram(t, 0x20000000, 64*1024);
nrf51_add_flash(t, 0x00000000, 512*1024, NRF52_PAGE_SIZE);
nrf51_add_flash(t, NRF51_UICR, 0x100, 0x100);
target_add_commands(t, nrf51_cmd_list, "nRF52");
return true;
}
return false;