hi,
a newbie here,
using flyswatter2 and olimex arm debuggers
working with openocd 6.1 codebase

in order to read back some registers i have to issue a number of ir/dr
scans to my tap chain and its working fine but im looking at ways to speed
it up if possible

so im calling jtag_add_ir_scan() and jtag_add_dr_scan() a number of times
in sequence

is this the most efficient way to do a number of ir/dr scans in a row?

code looks something like this...

...
...
/* setup IR with correct opcode */
struct scan_field *fields;
fields = malloc(sizeof(struct scan_field));
memset(fields, 0, sizeof(struct scan_field));
fields->num_bits = ir_len;
fields->out_value = in;
fields->in_value = out;
jtag_add_ir_scan(t->tap, fields, TAP_IDLE);
...
...
/* then do drscan */
/* then do next irscan */
/* then do next drscan */
etc


thanks
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to