diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2010-03-15 08:37:43 -0700 |
---|---|---|
committer | David Brownell <dbrownell@users.sourceforge.net> | 2010-03-15 08:37:43 -0700 |
commit | 96f9790279f74f39b35fc3ad09340fd03123180c (patch) | |
tree | 672f5b717c5f6edf3f7e1377341e37cd7f6497ee /doc | |
parent | 4b964a81ca1423b808a056b457e3d458689d50fa (diff) | |
download | openocd_libswd-96f9790279f74f39b35fc3ad09340fd03123180c.tar.gz openocd_libswd-96f9790279f74f39b35fc3ad09340fd03123180c.tar.bz2 openocd_libswd-96f9790279f74f39b35fc3ad09340fd03123180c.tar.xz openocd_libswd-96f9790279f74f39b35fc3ad09340fd03123180c.zip |
rename jtag_khz as adapter_khz
Globally rename "jtag_khz" as "adapter_khz", and move it out of the "jtag"
command group ... it needs to be used with non-JTAG transports
Includes a migration aid (in jtag/startup.tcl) so that old user scripts
won't break. That aid should Sunset in about a year. (We may want to
update it to include a nag message too.)
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/openocd.texi | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/openocd.texi b/doc/openocd.texi index 93757d48..5a1e0956 100644 --- a/doc/openocd.texi +++ b/doc/openocd.texi @@ -1516,7 +1516,7 @@ solution just avoids using that instruction with JTAG debuggers. If both the chip and the board support adaptive clocking, use the @command{jtag_rclk} command, in case your board is used with JTAG adapter which -also supports it. Otherwise use @command{jtag_khz}. +also supports it. Otherwise use @command{adapter_khz}. Set the slow rate at the beginning of the reset sequence, and the faster rate as soon as the clocks are at full speed. @@ -2342,7 +2342,7 @@ you may encounter a problem. @deffn Command {parport_toggling_time} [nanoseconds] Displays how many nanoseconds the hardware needs to toggle TCK; the parport driver uses this value to obey the -@command{jtag_khz} configuration. +@command{adapter_khz} configuration. When the optional @var{nanoseconds} parameter is given, that setting is changed before displaying the current value. @@ -2353,7 +2353,7 @@ To measure the toggling time with a logic analyzer or a digital storage oscilloscope, follow the procedure below: @example > parport_toggling_time 1000 -> jtag_khz 500 +> adapter_khz 500 @end example This sets the maximum JTAG clock speed of the hardware, but the actual speed probably deviates from the requested 500 kHz. @@ -2364,14 +2364,14 @@ Update the setting to match your measurement: @example > parport_toggling_time <measured nanoseconds> @end example -Now the clock speed will be a better match for @command{jtag_khz rate} +Now the clock speed will be a better match for @command{adapter_khz rate} commands given in OpenOCD scripts and event handlers. You can do something similar with many digital multimeters, but note that you'll probably need to run the clock continuously for several seconds before it decides what clock rate to show. Adjust the toggling time up or down until the measured clock rate is a good -match for the jtag_khz rate you specified; be conservative. +match for the adapter_khz rate you specified; be conservative. @end quotation @end deffn @@ -2470,10 +2470,10 @@ However, it introduces delays to synchronize clocks; so it may not be the fastest solution. @b{NOTE:} Script writers should consider using @command{jtag_rclk} -instead of @command{jtag_khz}, but only for (ARM) cores and boards +instead of @command{adapter_khz}, but only for (ARM) cores and boards which support adaptive clocking. -@deffn {Command} jtag_khz max_speed_kHz +@deffn {Command} adapter_khz max_speed_kHz A non-zero speed is in KHZ. Hence: 3000 is 3mhz. JTAG interfaces usually support a limited number of speeds. The speed actually used won't be faster @@ -3881,7 +3881,7 @@ the target clocks are fully set up.) before @command{reset_init} is called. This is the most robust place to use @command{jtag_rclk} -or @command{jtag_khz} to switch to a low JTAG clock rate, +or @command{adapter_khz} to switch to a low JTAG clock rate, when reset disables PLLs needed to use a fast clock. @ignore @item @b{reset-wait-pos} @@ -7290,7 +7290,7 @@ To set the JTAG frequency use the command: @example # Example: 1.234MHz -jtag_khz 1234 +adapter_khz 1234 @end example |