arm_adi_v5: correct ahbap_debugport_init mem-ap id (bug #23)
We request a id register read at the end of ahbap_debugport_init but we never actually run the queue. In some cases this causes a segfault. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
This commit is contained in:
parent
72ba8ec90e
commit
c0cdb7c631
|
@ -967,6 +967,9 @@ int ahbap_debugport_init(struct adiv5_dap *dap)
|
||||||
retval = dap_queue_ap_read(dap, AP_REG_IDR, &idreg);
|
retval = dap_queue_ap_read(dap, AP_REG_IDR, &idreg);
|
||||||
retval = dap_queue_ap_read(dap, AP_REG_BASE, &romaddr);
|
retval = dap_queue_ap_read(dap, AP_REG_BASE, &romaddr);
|
||||||
|
|
||||||
|
if ((retval = dap_run(dap)) != ERROR_OK)
|
||||||
|
return retval;
|
||||||
|
|
||||||
LOG_DEBUG("MEM-AP #%" PRId32 " ID Register 0x%" PRIx32
|
LOG_DEBUG("MEM-AP #%" PRId32 " ID Register 0x%" PRIx32
|
||||||
", Debug ROM Address 0x%" PRIx32,
|
", Debug ROM Address 0x%" PRIx32,
|
||||||
dap->apsel, idreg, romaddr);
|
dap->apsel, idreg, romaddr);
|
||||||
|
|
Loading…
Reference in New Issue