On Tue, Aug 7, 2018 at 6:58 AM, Rick Foos <[email protected]> wrote:
> Looking for ideas on how to read a slow register (250ms) with openocd Mdw.
>
You say 250 ms but from the code and the log, OpenOCD attempts the access
for 10*75 ms without success. Typo?
When I try to read one of these slow registers, I hit a WAIT, read back bus
> float.
>
> The dap disconnects, reconnects, and the value appears in an unexpected
> location.
>
When OpenOCD does give up it should abort the AP access, which it
apparently doesn't. A line reset doesn't affect the AP state and the value
is for some reason returned in the next unrelated AP access.
When the DAP disconnects, I'm able to read the value in another return
> location.
>
> Am I adjusting time correctly? Or does it have to do with dap resets and
> not delay time?
>
> How should I handle reading a very slow register on the target.
>
>
You could set $dap_name memaccess to a high value and/or lower the
adapter_khz, temporarily around the access.
/Andreas
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel