Q: should dr/irscan throw an error if polling is enabled?

OpenOCD does background polling based on a timer, so
two consecutive ir/drscan commands could see other
JTAG operations intervening, wreaking havoc.

Targets such as the OMAP needs to run a sequence
of jtag commands uninterrupted.

Some ideas:

- implementations must start such sequences by poll off
and end them with poll on. Ugly, but supported today.
- define a wrapper tcl proc that handles reading the
current polling state, turning off polling, executing
a sequence of commands and then restoring the
polling status regardless of whether an exception was
thrown or not. Writing such a wrapper is easy.
- make all reset event scripts run with background
events disabled.





The ir/drscan also lacks the ability to return the data clocked in, it
does not support longer than 32 bits scans, and there is no
statemove/pathmove command + a raft of other shortcomings
of these commands, but that's really an independant issue.


-- 
Øyvind Harboe
Embedded software and hardware consulting services
http://consulting.zylin.com
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to