Fix polling for system bus busy.
This commit is contained in:
parent
8956edd8aa
commit
cb282e81bc
|
@ -1784,10 +1784,10 @@ static int read_sbcs_nonbusy(struct target *target, uint32_t *sbcs)
|
||||||
LOG_ERROR("Timed out after %ds waiting for sbbusy to go low (sbcs=0x%x). "
|
LOG_ERROR("Timed out after %ds waiting for sbbusy to go low (sbcs=0x%x). "
|
||||||
"Increase the timeout with riscv set_command_timeout_sec.",
|
"Increase the timeout with riscv set_command_timeout_sec.",
|
||||||
riscv_command_timeout_sec, *sbcs);
|
riscv_command_timeout_sec, *sbcs);
|
||||||
}
|
|
||||||
return ERROR_FAIL;
|
return ERROR_FAIL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static int read_memory_bus_v0(struct target *target, target_addr_t address,
|
static int read_memory_bus_v0(struct target *target, target_addr_t address,
|
||||||
uint32_t size, uint32_t count, uint8_t *buffer)
|
uint32_t size, uint32_t count, uint8_t *buffer)
|
||||||
|
|
Loading…
Reference in New Issue