From a4a48f01583ff7ce76685e0f421a7160e7aabe4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnim=20L=C3=A4uger?= Date: Tue, 15 Jul 2008 21:47:01 +0000 Subject: [PATCH] document feature to set active data register with dr git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1303 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/ChangeLog | 5 +++++ jtag/doc/UrJTAG.txt | 4 ++-- jtag/src/cmd/dr.c | 8 +++++--- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/jtag/ChangeLog b/jtag/ChangeLog index 58fab323..2d0714c2 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -1,3 +1,8 @@ +2008-07-15 Arnim Laeuger + + * doc/UrJTAG.txt, src/cmd/dr.c (cmd_dr_help): + document feature to set active data register with dr + 2008-07-14 Arnim Laeuger * include/chain.h, include/tap.h, src/cmd/reset.c, src/tap/detect.c, diff --git a/jtag/doc/UrJTAG.txt b/jtag/doc/UrJTAG.txt index e4fdc84e..d255c0fe 100644 --- a/jtag/doc/UrJTAG.txt +++ b/jtag/doc/UrJTAG.txt @@ -567,7 +567,7 @@ example usage. *detect*:: detect parts on the JTAG chain *detectflash*:: detect parameters of flash chips attached to a part *discovery*:: discovery of unknown parts in the JTAG chain -*dr*:: display active data register for a part +*dr*:: display or set active data register for a part *endian*:: set/print endianess for reading/writing binary files *eraseflash*:: erase flash memory by number of blocks *flashmem*:: burn flash memory with data from a file @@ -789,7 +789,7 @@ using one of the supplied tools (or use the new BSDL subsystem, see below). The following commands can be used to directly manipulate and display the state of the TAP controller(s) and registers in the chain: -*dr*:: display active data register for a part +*dr*:: display or set active data register for a part *instruction*:: change active instruction for a part or declare new instruction *get*:: get external signal value *scan*:: detect changes on input pins of current part diff --git a/jtag/src/cmd/dr.c b/jtag/src/cmd/dr.c index 7423631c..50285cfc 100644 --- a/jtag/src/cmd/dr.c +++ b/jtag/src/cmd/dr.c @@ -101,11 +101,13 @@ cmd_dr_help( void ) { printf( _( "Usage: %s [DIR]\n" - "Display input or output data register content.\n" + "Usage: %s BITSTRING\n" + "Display input or output data register content or set current register.\n" "\n" "DIR requested data register; possible values: 'in' for\n" - " input and 'out' for output; default is 'out'\n" - ), "dr" ); + " input and 'out' for output; default is 'out'\n" + "BITSTRING set current data register with BITSTRING (e.g. 01010)\n" + ), "dr", "dr" ); } cmd_t cmd_dr = {