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 = {