On 2 August 2012 23:39, Vinay Vijendra Kumar Lakshmi <[email protected]> wrote:
> I have started writing the host CMSIS-DAP driver for OpenOCD.
>
> At this point I have to define the .execute_queue of the jtag_interface 
> structure. To implement the execute_queue commands, like JTAG_RUNTEST or 
> JTAG_SCAN, I will have to use the CMSIS-DAP command, format is as follows:
>
>   BYTE | BYTE **********| BYTE *********| BYTE ****|
>> 0x14 | Sequence Count | Sequence Info | TDI Data |
>  ******|****************|///////////////|//////////|
> Sequence Count: Number of Sequences
> Sequence Info: Contains number of TDI bits and fixed TMS value
>         Bit 5 .. 0: Number of TCK cycles: 1 .. 64 (64 encoded as 0)
>         Bit 6: TMS value
>         Bit 7: TDO Capture
> TDI Data: Data generated on TDI
>         One bit for each TCK cycle
>         LSB transmitted first, padded to BYTE boundary
>
> The response to the above command can be used to calculate the number of JTAG 
> devices and the JTAG IR register length. Using this data it will be possible 
> to configure the target devices for communication.
>
> My question is does OpenOCD provide the JTAG Sequence TDI?
>
> I am not sure if it is a generic to few/all the JTAG drivers. If it is 
> generic, is there some kind of protocol existing on OpenOCD to encode the TDI 
> data/decode the TDO data got from the response? I found a similar 
> encode/decode process involving TDI, TDO and TMS in 
> $INSTALL_DIR/src/jtag/drivers/OpenULINK/src/jtag.c. Does that mean it is 
> generic to Keil based interface?
>

How is the CMSIS-DAP driver coming along ?

Cheers
Spen

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to