adiv5_swdp/scan: Handle parity errors, seen with NRF52 with SYSTEMOFF #381/#949

This commit is contained in:
Uwe Bonnes 2021-11-18 19:57:36 +01:00 committed by UweBonnes
parent efa889156f
commit 5cb501049a
1 changed files with 3 additions and 1 deletions

View File

@ -252,8 +252,10 @@ uint32_t firmware_swdp_low_access(ADIv5_DP_t *dp, uint8_t RnW,
raise_exception(EXCEPTION_ERROR, "SWDP invalid ACK");
if(RnW) {
if(dp->seq_in_parity(&response, 32)) /* Give up on parity error */
if (dp->seq_in_parity(&response, 32)) { /* Give up on parity error */
dp->fault = 1;
raise_exception(EXCEPTION_ERROR, "SWDP Parity error");
}
} else {
dp->seq_out_parity(value, 32);
/* ARM Debug Interface Architecture Specification ADIv5.0 to ADIv5.2