Hey there!

I' m implementing a new TAP-Interface.
The dr-regiter of the TAP is 36bit wide.
[35:32] status/opcode etc
[31:0]  data (32/16/8 bit)

The read/write wrapper for the target has a buffer which has only the length 
for the exact number of bytes.
target_type.read_memory() / ...

Is there a openOCD way to retrieve the data very nicely?
Say: Clock out the 36bit, make a check for the data/opcode and then only copy 
the 8/16/32 bit to the buffer?

If not, I would:
- alloc 5 bytes for each read/write access.
- Before I leave, I would force jtag_execute_queue()
- run over the buffer and chery pick the infos i need and copy them into target 
buffer
- free the temporary allocated space

There is a jtag_add_callback(), which is executed every time the queue is full.
(But as I read, this can happen if the queue is full enough, so this wouldn't 
help me much because I can't retrieve the number of bytes send for working on 
my local buffer. or do I?)

Thx, Xense



_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to