jtag remote: Start fixing handling M0 (second jtag) for LPC4322 in high-level

- LPC11: Only print none-null unknown idcodes.
This commit is contained in:
Uwe Bonnes 2020-10-19 10:08:22 +02:00 committed by UweBonnes
parent 0995fe1288
commit 976c763747
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);