rename jtag_khz as adapter_khz
authorDavid Brownell <dbrownell@users.sourceforge.net>
Mon, 15 Mar 2010 15:37:43 +0000 (08:37 -0700)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Mon, 15 Mar 2010 15:37:43 +0000 (08:37 -0700)
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>
49 files changed:
NEWS
doc/openocd.texi
src/jtag/core.c
src/jtag/drivers/presto.c
src/jtag/startup.tcl
src/jtag/tcl.c
src/svf/svf.c
tcl/board/at91eb40a.cfg
tcl/board/at91rm9200-dk.cfg
tcl/board/at91sam9g20-ek.cfg
tcl/board/csb337.cfg
tcl/board/dm365evm.cfg
tcl/board/ek-lm3s1968.cfg
tcl/board/ek-lm3s811.cfg
tcl/board/ek-lm3s9b9x.cfg
tcl/board/ethernut3.cfg
tcl/board/hitex_lpc2929.cfg
tcl/board/hitex_str9-comstick.cfg
tcl/board/imx27lnst.cfg
tcl/board/mini2440.cfg
tcl/board/phytec_lpc3250.cfg
tcl/board/telo.cfg
tcl/board/topas910.cfg
tcl/board/topasa900.cfg
tcl/board/zy1000.cfg
tcl/interface/altera-usb-blaster.cfg
tcl/interface/oocdlink.cfg
tcl/interface/openrd.cfg
tcl/interface/sheevaplug.cfg
tcl/interface/usb-jtag.cfg
tcl/interface/vsllink.cfg
tcl/target/at91sam9260_ext_RAM_ext_flash.cfg
tcl/target/c100.cfg
tcl/target/c100helper.tcl
tcl/target/dsp56321.cfg
tcl/target/lm3s6965.cfg
tcl/target/lpc2124.cfg
tcl/target/lpc2378.cfg
tcl/target/mc13224v.cfg
tcl/target/mega128.cfg
tcl/target/pxa255.cfg
tcl/target/readme.txt
tcl/target/samsung_s3c2450.cfg
tcl/target/stellaris.cfg
tcl/target/stm32.cfg
tcl/target/str710.cfg
tcl/target/str730.cfg
tcl/target/str750.cfg
tcl/target/telo.cfg

diff --git a/NEWS b/NEWS
index 77435e12c4f935855cbad0eeba88b07979a7e59f..4e093dcb0bd39e47ddc4b0b5b35d481967db633a 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,11 @@ and other issues not mentioned here.
 
 JTAG Layer:
        New driver for "Bus Pirate"
 
 JTAG Layer:
        New driver for "Bus Pirate"
+       Rename various commands so they're not JTAG-specific
+          There are migration procedures for these, but you should
+          convert your scripts to the new names, since those procedures
+          will not be around forever.
+               jtag_khz        ... is now adapter_khz
 
 Boundary Scan:
 
 
 Boundary Scan:
 
index 93757d48ff34394696927ff8aa189da9f53abf61..5a1e095663bcdb0cf0893125bd1472f9d913863d 100644 (file)
@@ -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
 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.
 
 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
 @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.
 
 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
 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.
 @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
 @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
 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
 
 @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}
 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.
 
 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
 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}
 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}
 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
 
 @example
 # Example: 1.234MHz
-jtag_khz 1234
+adapter_khz 1234
 @end example
 
 
 @end example
 
 
index e7cb48d76438e7077e290c5543b9613650340d8e..bdf968e95417d68a1e0390ef3e4d8671b135a390 100644 (file)
@@ -1556,7 +1556,7 @@ unsigned jtag_get_speed_khz(void)
        return speed_khz;
 }
 
        return speed_khz;
 }
 
-static int jtag_khz_to_speed(unsigned khz, int* speed)
+static int adapter_khz_to_speed(unsigned khz, int* speed)
 {
        LOG_DEBUG("convert khz to interface specific speed value");
        speed_khz = khz;
 {
        LOG_DEBUG("convert khz to interface specific speed value");
        speed_khz = khz;
@@ -1576,11 +1576,11 @@ static int jtag_khz_to_speed(unsigned khz, int* speed)
 
 static int jtag_rclk_to_speed(unsigned fallback_speed_khz, int* speed)
 {
 
 static int jtag_rclk_to_speed(unsigned fallback_speed_khz, int* speed)
 {
-       int retval = jtag_khz_to_speed(0, speed);
+       int retval = adapter_khz_to_speed(0, speed);
        if ((ERROR_OK != retval) && fallback_speed_khz)
        {
                LOG_DEBUG("trying fallback speed...");
        if ((ERROR_OK != retval) && fallback_speed_khz)
        {
                LOG_DEBUG("trying fallback speed...");
-               retval = jtag_khz_to_speed(fallback_speed_khz, speed);
+               retval = adapter_khz_to_speed(fallback_speed_khz, speed);
        }
        return retval;
 }
        }
        return retval;
 }
@@ -1598,7 +1598,7 @@ int jtag_config_khz(unsigned khz)
        LOG_DEBUG("handle jtag khz");
        clock_mode = CLOCK_MODE_KHZ;
        int speed = 0;
        LOG_DEBUG("handle jtag khz");
        clock_mode = CLOCK_MODE_KHZ;
        int speed = 0;
-       int retval = jtag_khz_to_speed(khz, &speed);
+       int retval = adapter_khz_to_speed(khz, &speed);
        return (ERROR_OK != retval) ? retval : jtag_set_speed(speed);
 }
 
        return (ERROR_OK != retval) ? retval : jtag_set_speed(speed);
 }
 
@@ -1621,7 +1621,7 @@ int jtag_get_speed(void)
                        speed = jtag_speed;
                        break;
                case CLOCK_MODE_KHZ:
                        speed = jtag_speed;
                        break;
                case CLOCK_MODE_KHZ:
-                       jtag_khz_to_speed(jtag_get_speed_khz(), &speed);
+                       adapter_khz_to_speed(jtag_get_speed_khz(), &speed);
                        break;
                case CLOCK_MODE_RCLK:
                        jtag_rclk_to_speed(rclk_fallback_speed_khz, &speed);
                        break;
                case CLOCK_MODE_RCLK:
                        jtag_rclk_to_speed(rclk_fallback_speed_khz, &speed);
index 72126a1efc96c7568a1cb252415e7bfa87b6a76a..10bed2720a4bc1fe8703faeeb72deaf23556ea68 100644 (file)
@@ -680,7 +680,7 @@ static struct bitq_interface presto_bitq = {
 
 /* -------------------------------------------------------------------------- */
 
 
 /* -------------------------------------------------------------------------- */
 
-static int presto_jtag_khz(int khz, int *jtag_speed)
+static int presto_adapter_khz(int khz, int *jtag_speed)
 {
        if (khz < 0)
        {
 {
        if (khz < 0)
        {
@@ -797,7 +797,7 @@ struct jtag_interface presto_interface = {
 
        .execute_queue = bitq_execute_queue,
        .speed = presto_jtag_speed,
 
        .execute_queue = bitq_execute_queue,
        .speed = presto_jtag_speed,
-       .khz = presto_jtag_khz,
+       .khz = presto_adapter_khz,
        .speed_div = presto_jtag_speed_div,
        .init = presto_jtag_init,
        .quit = presto_jtag_quit,
        .speed_div = presto_jtag_speed_div,
        .init = presto_jtag_init,
        .quit = presto_jtag_quit,
index 4e6d5fc181a15b9dc067cd793140c5bb3f933bcc..c49c43e1b46d74451f85a8fe3b4885d8c9d86941 100644 (file)
@@ -75,3 +75,12 @@ add_help_text srst_deasserted "Overridable procedure run when srst deassert is d
 proc srst_asserted {} {
        puts "Sensed nSRST asserted."
 }
 proc srst_asserted {} {
        puts "Sensed nSRST asserted."
 }
+
+# BEGIN MIGRATION AIDS ...  these adapter operations originally had
+# JTAG-specific names despite the fact that the operations were not
+# specific to JTAG.
+#
+# FIXME phase these aids out after about April 2011
+#
+proc jtag_khz args { eval adapter_khz $args }
+# END MIGRATION AIDS
index ce17e4b85ac36bd8b030ec46e65f267a7c53e5d4..8faefd1a93f5d5b90ba341258c9171c373045ef4 100644 (file)
@@ -1351,7 +1351,7 @@ COMMAND_HANDLER(handle_jtag_ntrst_assert_width_command)
        return ERROR_OK;
 }
 
        return ERROR_OK;
 }
 
-COMMAND_HANDLER(handle_jtag_khz_command)
+COMMAND_HANDLER(handle_adapter_khz_command)
 {
        if (CMD_ARGC > 1)
                return ERROR_COMMAND_SYNTAX_ERROR;
 {
        if (CMD_ARGC > 1)
                return ERROR_COMMAND_SYNTAX_ERROR;
@@ -1608,6 +1608,16 @@ COMMAND_HANDLER(handle_tms_sequence_command)
 }
 
 static const struct command_registration interface_command_handlers[] = {
 }
 
 static const struct command_registration interface_command_handlers[] = {
+       {
+               .name = "adapter_khz",
+               .handler = handle_adapter_khz_command,
+               .mode = COMMAND_ANY,
+               .help = "With an argument, change to the specified maximum "
+                       "jtag speed.  For JTAG, 0 KHz signifies adaptive "
+                       " clocking. "
+                       "With or without argument, display current setting.",
+               .usage = "[khz]",
+       },
        {
                .name = "interface",
                .handler = handle_interface_command,
        {
                .name = "interface",
                .handler = handle_interface_command,
@@ -1636,15 +1646,6 @@ int interface_register_commands(struct command_context *ctx)
 }
 
 static const struct command_registration jtag_command_handlers[] = {
 }
 
 static const struct command_registration jtag_command_handlers[] = {
-       {
-               .name = "jtag_khz",
-               .handler = handle_jtag_khz_command,
-               .mode = COMMAND_ANY,
-               .help = "With an argument, change to the specified maximum "
-                       "jtag speed.  Pass 0 to require adaptive clocking. "
-                       "With or without argument, display current setting.",
-               .usage = "[khz]",
-       },
        {
                .name = "jtag_rclk",
                .handler = handle_jtag_rclk_command,
        {
                .name = "jtag_rclk",
                .handler = handle_jtag_rclk_command,
index fba499c3d989cb991602575fabd15a7e8b666e26..6e951e24f65ecb6368294a4754af4aa485ad191d 100644 (file)
@@ -880,7 +880,7 @@ static int svf_run_command(struct command_context *cmd_ctx, char *cmd_str)
                        // TODO: set jtag speed to
                        if (svf_para.frequency > 0)
                        {
                        // TODO: set jtag speed to
                        if (svf_para.frequency > 0)
                        {
-                               command_run_linef(cmd_ctx, "jtag_khz %d", (int)svf_para.frequency / 1000);
+                               command_run_linef(cmd_ctx, "adapter_khz %d", (int)svf_para.frequency / 1000);
                                LOG_DEBUG("\tfrequency = %f", svf_para.frequency);
                        }
                }
                                LOG_DEBUG("\tfrequency = %f", svf_para.frequency);
                        }
                }
index 40f2e123fc6bd2a4c157175405ae79f732c113c4..14f21a1ac37cc3970abacfaf7d41b8e7f3f774b3 100644 (file)
@@ -65,4 +65,4 @@ $_TARGETNAME configure -event reset-init {
 }
 
 # This target is pretty snappy...
 }
 
 # This target is pretty snappy...
-jtag_khz 16000
+adapter_khz 16000
index 9a6f89e6fbaf89c2cbfdbae8b2de8b9d7d20a572..476f5a80d5fc4549fb8278a86b69a96fb5e61919 100644 (file)
@@ -15,7 +15,7 @@ flash_bank cfi 0x10000000 0x00200000 2 2 0
 proc at91rm9200_dk_init { } {
     # Try to run at 1khz... Yea, that slow!
     # Chip is really running @ 32khz
 proc at91rm9200_dk_init { } {
     # Try to run at 1khz... Yea, that slow!
     # Chip is really running @ 32khz
-    jtag_khz 8
+    adapter_khz 8
 
     mww 0xfffffc64 0xffffffff
     ##  disable all clocks but system clock
 
     mww 0xfffffc64 0xffffffff
     ##  disable all clocks but system clock
@@ -41,7 +41,7 @@ proc at91rm9200_dk_init { } {
     #========================================
     # CPU now runs at 180mhz
     # SYS runs at 60mhz.
     #========================================
     # CPU now runs at 180mhz
     # SYS runs at 60mhz.
-    jtag_khz 40000
+    adapter_khz 40000
     #========================================
 
 
     #========================================
 
 
index fb6068cc6369751044f568ed19a835c73c8c81d8..f24f1a13d895186f329233dbf376f8bf80f9d4aa 100644 (file)
@@ -77,7 +77,7 @@ proc at91sam9g20_init { } {
        # means the master clock (MCLK) must be at or below 133 MHz or timing errors will occur.  The processor
        # core can operate up to 400 MHz and therefore PCLK must be at or below this to function properly.
 
        # means the master clock (MCLK) must be at or below 133 MHz or timing errors will occur.  The processor
        # core can operate up to 400 MHz and therefore PCLK must be at or below this to function properly.
 
-       jtag_khz 2                      # Slow-speed oscillator enabled at reset, so run jtag speed slow.
+       adapter_khz 2                   # Slow-speed oscillator enabled at reset, so run jtag speed slow.
        halt                            # Make sure processor is halted, or error will result in following steps.
        mww 0xfffffd08 0xa5000501       # RSTC_MR : enable user reset.
        mww 0xfffffd44 0x00008000       # WDT_MR : disable watchdog.
        halt                            # Make sure processor is halted, or error will result in following steps.
        mww 0xfffffd08 0xa5000501       # RSTC_MR : enable user reset.
        mww 0xfffffd44 0x00008000       # WDT_MR : disable watchdog.
@@ -112,7 +112,7 @@ proc at91sam9g20_init { } {
 
        # Switch over to adaptive clocking.
 
 
        # Switch over to adaptive clocking.
 
-       jtag_khz 0
+       adapter_khz 0
 
        # Enable faster DCC downloads.
 
 
        # Enable faster DCC downloads.
 
index b7bce489fe34092d47b7394954dbcb8ffb65123b..5e225f5f549de04f21d3dabe413cbe130d36ad26 100644 (file)
@@ -19,7 +19,7 @@ if { [info exists ETM_DRIVER] } {
 
 proc csb337_clk_init { } {
        # CPU is in Slow Clock Mode (32KiHz) ... needs slow JTAG clock
 
 proc csb337_clk_init { } {
        # CPU is in Slow Clock Mode (32KiHz) ... needs slow JTAG clock
-       jtag_khz 8
+       adapter_khz 8
 
        # CKGR_MOR:  start main oscillator (3.6864 MHz)
        mww 0xfffffc20 0xff01
 
        # CKGR_MOR:  start main oscillator (3.6864 MHz)
        mww 0xfffffc20 0xff01
@@ -37,7 +37,7 @@ proc csb337_clk_init { } {
        sleep 20
 
        # CPU is in Normal Mode ... allows faster JTAG clock speed
        sleep 20
 
        # CPU is in Normal Mode ... allows faster JTAG clock speed
-       jtag_khz 40000
+       adapter_khz 40000
 }
 
 proc csb337_nor_init { } {
 }
 
 proc csb337_nor_init { } {
index f8ec4e04bf6f5a917b130b4f9105520ef2c6e600..8f268c4551c22140178bebb7e9b61bf8738e2faa 100644 (file)
@@ -103,7 +103,7 @@ proc dm365evm_init {} {
        echo "Initialize DM365 EVM board"
 
        # CLKIN = 24 MHz ... can't talk quickly to ARM yet
        echo "Initialize DM365 EVM board"
 
        # CLKIN = 24 MHz ... can't talk quickly to ARM yet
-       jtag_khz 1500
+       adapter_khz 1500
 
        # FIXME -- PLL init
 
 
        # FIXME -- PLL init
 
index bf4b09724a344f5f47d4472a137d9ad1414d462f..6ce7f7fad4c7bf68b9c13eee667edf3322abe1da 100644 (file)
@@ -4,7 +4,7 @@
 # http://www.luminarymicro.com/products/lm3s1968_evaluation_kits.html
 
 # NOTE:  to use J-Link instead of the on-board interface,
 # http://www.luminarymicro.com/products/lm3s1968_evaluation_kits.html
 
 # NOTE:  to use J-Link instead of the on-board interface,
-# you may also need to reduce jtag_khz to be about 1200.
+# you may also need to reduce adapter_khz to be about 1200.
 # source [find interface/jlink.cfg]
 
 # include the FT2232 interface config for on-board JTAG interface
 # source [find interface/jlink.cfg]
 
 # include the FT2232 interface config for on-board JTAG interface
@@ -14,7 +14,7 @@ source [find interface/luminary.cfg]
 source [find target/lm3s1968.cfg]
 
 # jtag speed
 source [find target/lm3s1968.cfg]
 
 # jtag speed
-jtag_khz 3000
+adapter_khz 3000
 
 jtag_nsrst_delay 100
 
 
 jtag_nsrst_delay 100
 
index 5825c23dc3f3ebc7c052f793b3c01c813773e7fe..078cae1fb453ae9ba0c612e7f3799b3ff58882f1 100644 (file)
@@ -10,7 +10,7 @@ source [find interface/luminary.cfg]
 source [find target/lm3s811.cfg]
 
 # jtag speed
 source [find target/lm3s811.cfg]
 
 # jtag speed
-jtag_khz 500
+adapter_khz 500
 
 jtag_nsrst_delay 100
 
 
 jtag_nsrst_delay 100
 
index 407ecc80bea8f09981b949f74577d451fcce64b6..b8be88b84b2b28eed1e2fb6b0d0383c1551509be 100644 (file)
@@ -9,7 +9,7 @@ source [find interface/luminary-icdi.cfg]
 source [find target/lm3s9b9x.cfg]
 
 # jtag speed
 source [find target/lm3s9b9x.cfg]
 
 # jtag speed
-jtag_khz 500
+adapter_khz 500
 
 jtag_nsrst_delay 100
 
 
 jtag_nsrst_delay 100
 
index f22e688739c8608d775c3cda871a9d4f24634f6b..359cb0bfc09b816cc664930c2f6a7d51ec96950b 100644 (file)
@@ -26,7 +26,7 @@ jtag_ntrst_delay 300
 
 arm7_9 fast_memory_access enable
 arm7_9 dcc_downloads enable
 
 arm7_9 fast_memory_access enable
 arm7_9 dcc_downloads enable
-jtag_khz 16000
+adapter_khz 16000
 
 
 # Target events
 
 
 # Target events
index 7d06f7452116c2e7f717ba428e7c4afd68cb1e61..35cc7d0b90bc2abc323b2c306dbc6fe2213902ef 100644 (file)
@@ -7,7 +7,7 @@ jtag_ntrst_delay 1
 
 # Maximum of 1/8 of clock frequency (XTAL = 16 MHz).
 # Adaptive clocking through RTCK is not supported.
 
 # Maximum of 1/8 of clock frequency (XTAL = 16 MHz).
 # Adaptive clocking through RTCK is not supported.
-jtag_khz 2000
+adapter_khz 2000
 
 # Target device: LPC29xx with ETB
 # The following variables are used by the LPC2900 script:
 
 # Target device: LPC29xx with ETB
 # The following variables are used by the LPC2900 script:
@@ -24,7 +24,7 @@ $_TARGETNAME configure -work-area-phys 0x58000000 -work-area-size 0x10000 -work-
 # Event handlers
 $_TARGETNAME configure -event reset-start {
   # Back to the slow JTAG clock
 # Event handlers
 $_TARGETNAME configure -event reset-start {
   # Back to the slow JTAG clock
-  jtag_khz 2000
+  adapter_khz 2000
 }
 
 # External 16-bit flash at chip select CS7 (SST39VF3201-70, 4 MiB)
 }
 
 # External 16-bit flash at chip select CS7 (SST39VF3201-70, 4 MiB)
@@ -46,7 +46,7 @@ $_TARGETNAME configure -event reset-init {
   mww 0xFFFF8070 0x02000000     # SYS_CLK_CONF: PLL
 
   # Increase JTAG speed
   mww 0xFFFF8070 0x02000000     # SYS_CLK_CONF: PLL
 
   # Increase JTAG speed
-  jtag_khz 6000
+  adapter_khz 6000
 
   # Enable external memory bus (16-bit SRAM at CS6, 16-bit flash at CS7)
   mww 0xE0001138 0x0000001F     # P1.14 = D0
 
   # Enable external memory bus (16-bit SRAM at CS6, 16-bit flash at CS7)
   mww 0xE0001138 0x0000001F     # P1.14 = D0
index af7527a1663b83336d550429c0a19f8493b38822..ade24f6285bde1f3543fa763b8be2879da75212b 100644 (file)
@@ -5,7 +5,7 @@
 source [find interface/hitex_str9-comstick.cfg]
 
 # set jtag speed
 source [find interface/hitex_str9-comstick.cfg]
 
 # set jtag speed
-jtag_khz 3000
+adapter_khz 3000
 
 jtag_nsrst_delay 100
 jtag_ntrst_delay 100
 
 jtag_nsrst_delay 100
 jtag_ntrst_delay 100
index ae141d418d2c6ab3116ba482c981cf33ed95f348..e0ed05794c4a5bd4203d9d92114355cf625e7a3f 100644 (file)
@@ -8,7 +8,7 @@ proc imx27lnst_init { } {
        # This setup puts RAM at 0xA0000000
 
        # reset the board correctly
        # This setup puts RAM at 0xA0000000
 
        # reset the board correctly
-       jtag_khz 500
+       adapter_khz 500
        reset run
        reset halt
 
        reset run
        reset halt
 
index 47bebc43dfab4ad0f40511e735f7b62ee3efc128..b053c22521f43958b7ab191a0a54172fab903dd3 100644 (file)
@@ -121,7 +121,7 @@ reset_config trst_and_srst
 # IMPORTANT! See README at top of this file.
 #-------------------------------------------------------------------------
 
 # IMPORTANT! See README at top of this file.
 #-------------------------------------------------------------------------
 
-    jtag_khz 12000
+    adapter_khz 12000
     jtag interface
 
 #-------------------------------------------------------------------------
     jtag interface
 
 #-------------------------------------------------------------------------
index 78cb90de25e2a016503b0cd5cc74b4427899efb8..51622ef18488980a807b4ec47ee00eef4c9f8d0c 100644 (file)
@@ -2,7 +2,7 @@ source [find target/lpc3250.cfg]
 
 jtag_nsrst_delay 200
 jtag_ntrst_delay 1
 
 jtag_nsrst_delay 200
 jtag_ntrst_delay 1
-jtag_khz 200
+adapter_khz 200
 reset_config trst_and_srst separate
 
 arm7_9 dcc_downloads enable
 reset_config trst_and_srst separate
 
 arm7_9 dcc_downloads enable
@@ -11,11 +11,11 @@ $_TARGETNAME configure -event gdb-attach { reset init }
 
 $_TARGETNAME configure -event reset-start {
              arm7_9 fast_memory_access disable
 
 $_TARGETNAME configure -event reset-start {
              arm7_9 fast_memory_access disable
-             jtag_khz 200
+             adapter_khz 200
 }
 
 $_TARGETNAME configure -event reset-end {
 }
 
 $_TARGETNAME configure -event reset-end {
-             jtag_khz 6000
+             adapter_khz 6000
              arm7_9 fast_memory_access enable
 }
 
              arm7_9 fast_memory_access enable
 }
 
index 0cbdb816d9ec85a4fb1aabf43a4dbcb91fcbcc32..cb4bc2a321c062cfcb1bdd2c069cd8b0a34248e2 100644 (file)
@@ -26,11 +26,11 @@ reset_config trst_and_srst separate
 # issue telnet: reset init
 # issue gdb: monitor reset init
 $_TARGETNAME configure -event reset-init {
 # issue telnet: reset init
 # issue gdb: monitor reset init
 $_TARGETNAME configure -event reset-init {
-       jtag_khz 100
+       adapter_khz 100
        # this will setup Telo board
        setupTelo
        #turn up the JTAG speed
        # this will setup Telo board
        setupTelo
        #turn up the JTAG speed
-       jtag_khz 3000
+       adapter_khz 3000
        puts "JTAG speek now 3MHz"
        puts "type helpC100 to get help on C100"
 }
        puts "JTAG speek now 3MHz"
        puts "type helpC100 to get help on C100"
 }
index ae72c4b7aa14be28489181e8499e85c9ad343e6f..303fc7782d2edb16f3d5680e06cc52d0e001fa70 100644 (file)
@@ -99,7 +99,7 @@ proc topas910_init { } {
        mww 0xf4300004 0x00000000
 
        sleep 10
        mww 0xf4300004 0x00000000
 
        sleep 10
-#      jtag_khz NNNN
+#      adapter_khz NNNN
 
 # remap off in case of IROM boot
        mww 0xf0000004 0x00000001
 
 # remap off in case of IROM boot
        mww 0xf0000004 0x00000001
index 5984f81ffa960621d5da9f399499d69321a8f8d9..aa3f77f2fd0183a9847451f1d3eb3dddf0c42741 100644 (file)
@@ -105,7 +105,7 @@ proc topasa900_init { } {
        mww 0xf4300004 0x00000000
 
        sleep 10
        mww 0xf4300004 0x00000000
 
        sleep 10
-#      jtag_khz NNNN
+#      adapter_khz NNNN
 
 # remap off in case of IROM boot
        mww 0xf0000004 0x00000001
 
 # remap off in case of IROM boot
        mww 0xf0000004 0x00000001
index 8278fa4696e8422022177d4b1406b8a150979604..17594c2f16658b953bc02592c00fa52e6a0bce68 100644 (file)
@@ -66,7 +66,7 @@ $_TARGETNAME configure -event reset-init {
 # other things than flash programming.
 $_TARGETNAME configure -work-area-phys 0x00020000 -work-area-size 0x20000 -work-area-backup 0
 
 # other things than flash programming.
 $_TARGETNAME configure -work-area-phys 0x00020000 -work-area-size 0x20000 -work-area-backup 0
 
-jtag_khz 16000
+adapter_khz 16000
 
 
 proc production_info {} {
 
 
 proc production_info {} {
index ae2146526529c12a57c10635fad56b4673c70ee4..9f542d0a4c22ccab90aac68fb5b667f293ff6736 100644 (file)
@@ -8,4 +8,4 @@ interface usb_blaster
 # These are already the defaults.
 # usb_blaster_vid_pid 0x09FB 0x6001
 # usb_blaster_device_desc "USB-Blaster"
 # These are already the defaults.
 # usb_blaster_vid_pid 0x09FB 0x6001
 # usb_blaster_device_desc "USB-Blaster"
-jtag_khz 3000
+adapter_khz 3000
index 9022afd2fc2bf11d8a6c7fc063e03dcb29b33715..4e962f522bbbd4b2e78b6f87bb7aa17acc21d311 100644 (file)
@@ -8,5 +8,5 @@ interface ft2232
 ft2232_device_desc "OOCDLink"
 ft2232_layout oocdlink
 ft2232_vid_pid 0x0403 0xbaf8
 ft2232_device_desc "OOCDLink"
 ft2232_layout oocdlink
 ft2232_vid_pid 0x0403 0xbaf8
-jtag_khz 5
+adapter_khz 5
 
 
index b01205bed715c31719cc8c3f088313166d28a054..322b508b9ff378e8451b7cce3485707198399400 100644 (file)
@@ -8,5 +8,5 @@ interface ft2232
 ft2232_layout sheevaplug
 ft2232_vid_pid 0x0403 0x9e90
 ft2232_device_desc "OpenRD JTAGKey FT2232D B"
 ft2232_layout sheevaplug
 ft2232_vid_pid 0x0403 0x9e90
 ft2232_device_desc "OpenRD JTAGKey FT2232D B"
-jtag_khz 3000
+adapter_khz 3000
 
 
index 556f44d57f0f2dbd89882c2fe0a39645ed5328d5..d46d71e2820a5f4902a9b693e3494e5915c5fae0 100644 (file)
@@ -8,5 +8,5 @@ interface ft2232
 ft2232_layout sheevaplug
 ft2232_vid_pid 0x9e88 0x9e8f
 ft2232_device_desc "SheevaPlug JTAGKey FT2232D B"
 ft2232_layout sheevaplug
 ft2232_vid_pid 0x9e88 0x9e8f
 ft2232_device_desc "SheevaPlug JTAGKey FT2232D B"
-jtag_khz 2000
+adapter_khz 2000
 
 
index b81028d616f40d7690302a9fc3aed00edb00e5ec..a3db11e3635201e77c7a39dfd37aad054c78984f 100644 (file)
@@ -7,5 +7,5 @@
 interface usb_blaster
 usb_blaster_vid_pid 0x16C0 0x06AD
 usb_blaster_device_desc "USB-JTAG-IF"
 interface usb_blaster
 usb_blaster_vid_pid 0x16C0 0x06AD
 usb_blaster_device_desc "USB-JTAG-IF"
-jtag_khz 3000
+adapter_khz 3000
 
 
index 7c9de7fe80f9266b63ccaada2590f5d1224ef5ab..07a5a0680e84ebc5b965364b794485cf8361324e 100644 (file)
@@ -19,7 +19,7 @@ vsllink_usb_bulkout   0x03
 vsllink_usb_interface  1
 
 # vsllink mode, dma or normal
 vsllink_usb_interface  1
 
 # vsllink mode, dma or normal
-# for low jtag_khz, use normal
-# for high jtag_khz, use dma
+# for low adapter_khz, use normal
+# for high adapter_khz, use dma
 #vsllink_mode dma
 vsllink_mode normal
 #vsllink_mode dma
 vsllink_mode normal
index 690406bb3aef22b556d8a6e3ef1f31e147a7e072..03595404bb3f2a3b521d9207c6fb6ca2695885a4 100644 (file)
@@ -1,7 +1,7 @@
 
 
 
 
 
 
-jtag_khz 4
+adapter_khz 4
 
 
 ######################################
 
 
 ######################################
@@ -62,7 +62,7 @@ flash bank $_FLASHNAME cfi 0x10000000 0x01000000 2 2 $_TARGETNAME
 proc at91sam_init { } {
 
        # at reset chip runs at 32khz
 proc at91sam_init { } {
 
        # at reset chip runs at 32khz
-       jtag_khz 8
+       adapter_khz 8
        halt
        mww 0xfffffd08 0xa5000501         # RSTC_MR : enable user reset
        mww 0xfffffd44 0x00008000         # WDT_MR : disable watchdog
        halt
        mww 0xfffffd08 0xa5000501         # RSTC_MR : enable user reset
        mww 0xfffffd44 0x00008000         # WDT_MR : disable watchdog
@@ -79,7 +79,7 @@ proc at91sam_init { } {
        sleep 10                          # wait 10 ms
 
        # Now run at anything fast... ie: 10mhz!
        sleep 10                          # wait 10 ms
 
        # Now run at anything fast... ie: 10mhz!
-       jtag_khz 10000                    # Increase JTAG Speed to 6 MHz
+       adapter_khz 10000                    # Increase JTAG Speed to 6 MHz
        arm7_9 dcc_downloads enable       # Enable faster DCC downloads
 
        mww 0xffffec00 0x0a0a0a0a         # SMC_SETUP0 : Setup SMC for Intel NOR Flash JS28F128P30T85 128MBit
        arm7_9 dcc_downloads enable       # Enable faster DCC downloads
 
        mww 0xffffec00 0x0a0a0a0a         # SMC_SETUP0 : Setup SMC for Intel NOR Flash JS28F128P30T85 128MBit
index b175f23f4f2777e14a406602a6519567672715da..23eca0c79999f57100a171c28d7ec28f97a1d4e9 100644 (file)
@@ -3,7 +3,7 @@
 # this script only configures one core (that is used to run Linux)
 
 # assume no PLL lock, start slowly
 # this script only configures one core (that is used to run Linux)
 
 # assume no PLL lock, start slowly
-jtag_khz 100
+adapter_khz 100
 
 if { [info exists CHIPNAME] } {
    set  _CHIPNAME $CHIPNAME
 
 if { [info exists CHIPNAME] } {
    set  _CHIPNAME $CHIPNAME
index 965887131e7b5515d4c201a8cccb6272a582b8ef..1fd58b6574281781e3d4522716455e569e30d377 100644 (file)
@@ -504,7 +504,7 @@ proc reboot {} {
     mww $TIMER_WDT_HIGH_BOUND  0xffffff
     mww $TIMER_WDT_CURRENT_COUNT 0x0
     puts "JTAG speed lowered to 100kHz"
     mww $TIMER_WDT_HIGH_BOUND  0xffffff
     mww $TIMER_WDT_CURRENT_COUNT 0x0
     puts "JTAG speed lowered to 100kHz"
-    jtag_khz 100
+    adapter_khz 100
     mww $TIMER_WDT_CONTROL 0x1
     # wait until the reset
     puts -nonewline "Wating for watchdog to trigger..."
     mww $TIMER_WDT_CONTROL 0x1
     # wait until the reset
     puts -nonewline "Wating for watchdog to trigger..."
index 45068370595e3ca02971d43dd24114db224c269f..281c4ddd47215faa486d7fcc01f08d8feade29f5 100644 (file)
@@ -22,7 +22,7 @@ if { [info exists CPUTAPID ] } {
 }
 
 #jtag speed
 }
 
 #jtag speed
-jtag_khz 4500
+adapter_khz 4500
 
 #has only srst
 reset_config srst_only
 
 #has only srst
 reset_config srst_only
index 02d85d467aaf9cfd5d0188629c5b7141a39ab0cb..c6e623eeac92e86ea1638d443b28360ad2380bb9 100644 (file)
@@ -13,7 +13,7 @@ if { [info exists CPUTAPID ] } {
 }
 
 # jtag speed
 }
 
 # jtag speed
-jtag_khz 500
+adapter_khz 500
 
 jtag_nsrst_delay 100
 jtag_ntrst_delay 100
 
 jtag_nsrst_delay 100
 jtag_ntrst_delay 100
index 9a27aece5d5673eac17d34dc158090ad626c01d3..ce55952ac7e4629b10c324d17da53c35520cd206 100644 (file)
@@ -27,7 +27,7 @@ reset_config trst_and_srst srst_pulls_trst
 jtag_nsrst_delay 100
 jtag_ntrst_delay 100
 
 jtag_nsrst_delay 100
 jtag_ntrst_delay 100
 
-jtag_khz 1000
+adapter_khz 1000
 
 #jtag scan chain
 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
 
 #jtag scan chain
 jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
index 4e50ac5c856977fd3dbb88cff7b50e75ecb098f9..7eb0dabbc8a1b486c197bc253e7c628d7e64f393 100644 (file)
@@ -47,4 +47,4 @@ set _FLASHNAME $_CHIPNAME.flash
 flash bank $_FLASHNAME lpc2000 0x0 0x0007D000 0 0 $_TARGETNAME lpc2000_v2 4000 calc_checksum
 
 # 4MHz / 6 = 666kHz, so use 500
 flash bank $_FLASHNAME lpc2000 0x0 0x0007D000 0 0 $_TARGETNAME lpc2000_v2 4000 calc_checksum
 
 # 4MHz / 6 = 666kHz, so use 500
-jtag_khz 500
+adapter_khz 500
index 497e376e65b51859bfabc6053d8b31b2276b35c1..33351caf0c80fd57c4006245348196cfc17011d6 100644 (file)
@@ -36,7 +36,7 @@ jtag_ntrst_delay 200
 
 # rclk hasn't been working well. This maybe the mc13224v or something else.
 #jtag_rclk 2000
 
 # rclk hasn't been working well. This maybe the mc13224v or something else.
 #jtag_rclk 2000
-jtag_khz 2000
+adapter_khz 2000
 
 ######################
 # Target configuration
 
 ######################
 # Target configuration
index 2cf31d619c66515ef4271b4b23533ae7b30ad1b0..697ec45bcf96bdedf2db22df70239f597020dc4c 100644 (file)
@@ -4,7 +4,7 @@
    set  _ENDIAN little
 
 # jtag speed
    set  _ENDIAN little
 
 # jtag speed
-jtag_khz 4500
+adapter_khz 4500
 
 reset_config  srst_only
 jtag_nsrst_delay 100
 
 reset_config  srst_only
 jtag_nsrst_delay 100
@@ -27,7 +27,7 @@ flash bank $_FLASHNAME avr 0 0 0 0 $_TARGETNAME
 
 #to use it, script will be like:
 #init
 
 #to use it, script will be like:
 #init
-#jtag_khz 4500
+#adapter_khz 4500
 #reset init
 #verify_ircapture disable
 #
 #reset init
 #verify_ircapture disable
 #
index 44efdaa4b9987f9d2abafae5eace0a20104fafc8..5b745f8599f752300bba9b1e19902e996ce26079 100644 (file)
@@ -28,8 +28,8 @@ target create $_TARGETNAME xscale -endian $_ENDIAN \
 # PXA255 comes out of reset using 3.6864 MHz oscillator.
 # Until the PLL kicks in, keep the JTAG clock slow enough
 # that we get no errors.
 # PXA255 comes out of reset using 3.6864 MHz oscillator.
 # Until the PLL kicks in, keep the JTAG clock slow enough
 # that we get no errors.
-jtag_khz 300
-$_TARGETNAME configure -event "reset-start" { jtag_khz 300 }
+adapter_khz 300
+$_TARGETNAME configure -event "reset-start" { adapter_khz 300 }
 
 # both TRST and SRST are *required* for debug
 # DCSR is often accessed with SRST active
 
 # both TRST and SRST are *required* for debug
 # DCSR is often accessed with SRST active
index 39f8d124085c3131e76e475310f8a957f3afaf38..f028b11c732325343af0cd41aba00a617282164f 100644 (file)
@@ -26,12 +26,12 @@ assumed that all write-protect mechanisms should be disabled.
 flash write_image [file] <parameters>
 verify_image [file] <parameters>
 
 flash write_image [file] <parameters>
 verify_image [file] <parameters>
 
-4. jtag_khz sets the maximum speed (or alternatively RCLK). If invoked
+4. adapter_khz sets the maximum speed (or alternatively RCLK). If invoked
 multiple times only the last setting is used.
 
 interface/xxx.cfg files are always executed *before* target/xxx.cfg
 multiple times only the last setting is used.
 
 interface/xxx.cfg files are always executed *before* target/xxx.cfg
-files, so any jtag_khz in interface/xxx.cfg will be overridden by
-target/xxx.cfg. jtag_khz in interface/xxx.cfg would then, effectively,
+files, so any adapter_khz in interface/xxx.cfg will be overridden by
+target/xxx.cfg. adapter_khz in interface/xxx.cfg would then, effectively,
 set the default JTAG speed.
 
 Note that a target/xxx.cfg file can invoke another target/yyy.cfg file,
 set the default JTAG speed.
 
 Note that a target/xxx.cfg file can invoke another target/yyy.cfg file,
index 071b271a03541351993176008852133afe410199..00754260014702ba05875d25c9e741ef37d7ba82 100644 (file)
@@ -7,11 +7,11 @@
 #
 # RCLK?
 #
 #
 # RCLK?
 #
-# jtag_khz 0
+# adapter_khz 0
 #
 # Really low clock during reset?
 #
 #
 # Really low clock during reset?
 #
-# jtag_khz 1
+# adapter_khz 1
 
 if { [info exists CHIPNAME] } {
   set  _CHIPNAME $CHIPNAME
 
 if { [info exists CHIPNAME] } {
   set  _CHIPNAME $CHIPNAME
index 6fafac94232a56ba74fb1103ae0cced813437377..5f4428f5d4af1e6cfae056b7db4a255eb2acf6c7 100644 (file)
@@ -41,8 +41,8 @@ $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size 0x2000
 # NOTE:  this may be increased by a reset-init handler, after it
 # configures and enables the PLL.  Or you might need to decrease
 # this, if you're using a slower clock.
 # NOTE:  this may be increased by a reset-init handler, after it
 # configures and enables the PLL.  Or you might need to decrease
 # this, if you're using a slower clock.
-jtag_khz 500
-$_TARGETNAME configure -event reset-start {jtag_khz 500}
+adapter_khz 500
+$_TARGETNAME configure -event reset-start {adapter_khz 500}
 
 # flash configuration ... autodetects sizes, autoprobed
 flash bank $_CHIPNAME.flash stellaris 0 0 0 0 $_TARGETNAME
 
 # flash configuration ... autodetects sizes, autoprobed
 flash bank $_CHIPNAME.flash stellaris 0 0 0 0 $_TARGETNAME
index 463a85cfd2ba9f8503007f96fbdd5248f957752a..29c9f7ff106e68c6c1aa532d9cc8e1868bb6e619 100644 (file)
@@ -21,7 +21,7 @@ if { [info exists WORKAREASIZE] } {
 }
 
 # JTAG speed should be <= F_CPU/6. F_CPU after reset is 8MHz, so use F_JTAG = 1MHz
 }
 
 # JTAG speed should be <= F_CPU/6. F_CPU after reset is 8MHz, so use F_JTAG = 1MHz
-jtag_khz 1000
+adapter_khz 1000
 
 jtag_nsrst_delay 100
 jtag_ntrst_delay 100
 
 jtag_nsrst_delay 100
 jtag_ntrst_delay 100
index 028c6043d1a11110b467c15e627d1e5ff0d2674e..4d685865c62f7041e2e458621d2d79bb98b53271 100644 (file)
@@ -1,5 +1,5 @@
 #start slow, speed up after reset
 #start slow, speed up after reset
-jtag_khz 10
+adapter_khz 10
 
 if { [info exists CHIPNAME] } {
    set  _CHIPNAME $CHIPNAME
 
 if { [info exists CHIPNAME] } {
    set  _CHIPNAME $CHIPNAME
@@ -29,9 +29,9 @@ jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0x0f -expected-id $_C
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi
 
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm7tdmi
 
-$_TARGETNAME configure -event reset-start { jtag_khz 10 }
+$_TARGETNAME configure -event reset-start { adapter_khz 10 }
 $_TARGETNAME configure -event reset-init {
 $_TARGETNAME configure -event reset-init {
-       jtag_khz 6000
+       adapter_khz 6000
 
 # Because the hardware cannot be interrogated for the protection state
 # of sectors, initialize all the sectors to be unprotected. The initial
 
 # Because the hardware cannot be interrogated for the protection state
 # of sectors, initialize all the sectors to be unprotected. The initial
index 091795315a8729a3c335f5eaf173b428855cbf92..3a84897c1d1a255d3ffd32b84721fd8d62801bd1 100644 (file)
@@ -1,6 +1,6 @@
 #STR730 CPU
 
 #STR730 CPU
 
-jtag_khz 3000
+adapter_khz 3000
 
 if { [info exists CHIPNAME] } {
    set  _CHIPNAME $CHIPNAME
 
 if { [info exists CHIPNAME] } {
    set  _CHIPNAME $CHIPNAME
@@ -33,9 +33,9 @@ jtag_ntrst_delay 500
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME arm7tdmi -endian little -chain-position 0 -variant arm7tdmi
 
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME arm7tdmi -endian little -chain-position 0 -variant arm7tdmi
 
-$_TARGETNAME configure -event reset-start { jtag_khz 10 }
+$_TARGETNAME configure -event reset-start { adapter_khz 10 }
 $_TARGETNAME configure -event reset-init {
 $_TARGETNAME configure -event reset-init {
-       jtag_khz 3000
+       adapter_khz 3000
 
 # Because the hardware cannot be interrogated for the protection state
 # of sectors, initialize all the sectors to be unprotected. The initial
 
 # Because the hardware cannot be interrogated for the protection state
 # of sectors, initialize all the sectors to be unprotected. The initial
index c467ae25b9b593258fcf1142542e7f55436d2c77..c2fb7869d67b6e4a201fe31408bf4c6bb1d4b28b 100644 (file)
@@ -19,7 +19,7 @@ if { [info exists CPUTAPID] } {
 }
 
 # jtag speed
 }
 
 # jtag speed
-jtag_khz 10
+adapter_khz 10
 
 #use combined on interfaces or targets that can't set TRST/SRST separately
 reset_config trst_and_srst srst_pulls_trst
 
 #use combined on interfaces or targets that can't set TRST/SRST separately
 reset_config trst_and_srst srst_pulls_trst
@@ -35,9 +35,9 @@ jtag_ntrst_delay 500
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME arm7tdmi -endian little -chain-position 0 -variant arm7tdmi
 
 set _TARGETNAME $_CHIPNAME.cpu
 target create $_TARGETNAME arm7tdmi -endian little -chain-position 0 -variant arm7tdmi
 
-$_TARGETNAME configure -event reset-start  { jtag_khz 10 }
+$_TARGETNAME configure -event reset-start  { adapter_khz 10 }
 $_TARGETNAME configure -event reset-init {
 $_TARGETNAME configure -event reset-init {
-       jtag_khz 3000
+       adapter_khz 3000
 
 # Because the hardware cannot be interrogated for the protection state
 # of sectors, initialize all the sectors to be unprotected. The initial
 
 # Because the hardware cannot be interrogated for the protection state
 # of sectors, initialize all the sectors to be unprotected. The initial
index 0cbdb816d9ec85a4fb1aabf43a4dbcb91fcbcc32..99b9cd6933651dd1b56526dfea2e3afe0070dca7 100644 (file)
@@ -26,12 +26,12 @@ reset_config trst_and_srst separate
 # issue telnet: reset init
 # issue gdb: monitor reset init
 $_TARGETNAME configure -event reset-init {
 # issue telnet: reset init
 # issue gdb: monitor reset init
 $_TARGETNAME configure -event reset-init {
-       jtag_khz 100
+       adapter_khz 100
        # this will setup Telo board
        setupTelo
        #turn up the JTAG speed
        # this will setup Telo board
        setupTelo
        #turn up the JTAG speed
-       jtag_khz 3000
-       puts "JTAG speek now 3MHz"
+       adapter_khz 3000
+       puts "JTAG speed now 3MHz"
        puts "type helpC100 to get help on C100"
 }
 
        puts "type helpC100 to get help on C100"
 }
 
@@ -58,4 +58,4 @@ set _FLASHNAME $_CHIPNAME.flash
 flash bank $_FLASHNAME cfi 0x20000000 0x01000000 2 2 $_TARGETNAME
 
 # writing data to memory does not work without this
 flash bank $_FLASHNAME cfi 0x20000000 0x01000000 2 2 $_TARGETNAME
 
 # writing data to memory does not work without this
-memwrite burst disable
\ No newline at end of file
+memwrite burst disable

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)