diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c index 09b6a4895..84c83dc82 100644 --- a/src/target/riscv/riscv-013.c +++ b/src/target/riscv/riscv-013.c @@ -1806,7 +1806,7 @@ static int examine(struct target *target) LOG_ERROR("dtmcontrol is 0. Check JTAG connectivity/board power."); return ERROR_FAIL; } - if (get_field(dtmcontrol, DTMCONTROL_VERSION) != 0) { + if (get_field(dtmcontrol, DTMCONTROL_VERSION) != 1) { LOG_ERROR("Unsupported DTM version %d. (dtmcontrol=0x%x)", get_field(dtmcontrol, DTMCONTROL_VERSION), dtmcontrol); return ERROR_FAIL;