From 609e6b135d627f6d543d735c88a6b81ebf3b5f05 Mon Sep 17 00:00:00 2001 From: UweBonnes Date: Wed, 4 Sep 2019 13:50:13 +0200 Subject: [PATCH] nrf51: Add nop_function as halt_poll. (#517) Otherwise "tar ext ...; mon s; att 2; quit", start new gdb "tar ext ..." crashes, at least on pc-hosted platforms. --- src/target/nrf51.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/target/nrf51.c b/src/target/nrf51.c index 48885bcc..25520dab 100644 --- a/src/target/nrf51.c +++ b/src/target/nrf51.c @@ -395,6 +395,7 @@ void nrf51_mdm_probe(ADIv5_AP_t *ap) t->reset = (void*)nop_function; t->halt_request = (void*)nop_function; //t->halt_poll = mdm_halt_poll; + t->halt_poll = (void*)nop_function; t->halt_resume = (void*)nop_function; target_add_commands(t, nrf51_mdm_cmd_list, t->driver);