From 976c763747e9b5cedeef0d18d33a33b031ad4c95 Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Mon, 19 Oct 2020 10:08:22 +0200 Subject: [PATCH] jtag remote: Start fixing handling M0 (second jtag) for LPC4322 in high-level - LPC11: Only print none-null unknown idcodes. --- src/remote.c | 4 ++-- src/target/lpc11xx.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/remote.c b/src/remote.c index aa82801..3e0a70e 100644 --- a/src/remote.c +++ b/src/remote.c @@ -333,7 +333,7 @@ void remotePacketProcessHL(uint8_t i, char *packet) if (i < 4) { _respond(REMOTE_RESP_ERR,REMOTE_ERROR_WRONGLEN); } else { - remote_dp.dp_jd_index = remotehston(2, &packet[2]); + remote_dp.dp_jd_index = remotehston(2, packet); _respond(REMOTE_RESP_OK, 0); } break; @@ -411,7 +411,7 @@ void remotePacketProcessHL(uint8_t i, char *packet) remote_ap.dp->fault = 0; break; } - _respond_buf(REMOTE_RESP_OK, src, len); + _respond(REMOTE_RESP_OK, 0); break; default: _respond(REMOTE_RESP_ERR,REMOTE_ERROR_UNRECOGNISED); diff --git a/src/target/lpc11xx.c b/src/target/lpc11xx.c index 5cad1e7..2b6d28b 100644 --- a/src/target/lpc11xx.c +++ b/src/target/lpc11xx.c @@ -137,7 +137,7 @@ lpc11xx_probe(target *t) target_add_commands(t, lpc11xx_cmd_list, "LPC8N04"); return true; } - if ((t->t_designer != AP_DESIGNER_SPECULAR) && !idcode) { + if ((t->t_designer != AP_DESIGNER_SPECULAR) && idcode) { DEBUG_INFO("LPC11xx: Unknown IDCODE 0x%08" PRIx32 "\n", idcode); } idcode = target_mem_read32(t, LPC8XX_DEVICE_ID);