From 35bcb4f7c60ce711977f3baa08fbe67fe6206d17 Mon Sep 17 00:00:00 2001 From: Noah Pendleton Date: Tue, 24 Nov 2020 15:18:21 -0500 Subject: [PATCH] Switch on the lpc546xx target Enable the lpc546xx target. Tested on the LPCXpresso54628 dev board, able to flash and debug. --- src/target/cortexm.c | 1 + src/target/lpc546xx.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/target/cortexm.c b/src/target/cortexm.c index 18315730..36ebf5bd 100644 --- a/src/target/cortexm.c +++ b/src/target/cortexm.c @@ -441,6 +441,7 @@ bool cortexm_probe(ADIv5_AP_t *ap) } else if (ap->ap_partno == 0x4c4) { /* Cortex-M4 ROM */ PROBE(lpc43xx_probe); + PROBE(lpc546xx_probe); PROBE(kinetis_probe); /* Older K-series */ } /* Info on PIDR of these parts wanted! */ diff --git a/src/target/lpc546xx.c b/src/target/lpc546xx.c index fff18bf6..1e0ad930 100644 --- a/src/target/lpc546xx.c +++ b/src/target/lpc546xx.c @@ -140,7 +140,7 @@ bool lpc546xx_probe(target *t) target_add_commands(t, lpc546xx_cmd_list, "Lpc546xx"); t->target_options |= CORTEXM_TOPT_INHIBIT_SRST; - return false; + return true; } /* Reset all major systems _except_ debug */