OpenOCD R320 (Windows) issue with "target_script"

Hello,

I try to use the target_script command for initialization after reset:

target_script 0 reset ./myreset.script

This is the response I get from OpenOCD:

Open On-Chip Debugger (2008-02-23 10:00 CET) svn: 320

$URL: http://svn.berlios.de/svnroot/repos/openocd/trunk $

Info: configuration.c:56 configuration_output_handler(): opened configs/str7xx_signalyzer.cfg

Info: jtag.c:1230 jtag_examine_chain(): JTAG device found: 0x3f0f0f0f (Manufacturer: 0x787, Part: 0xf0f0, Version: 0x3)

Warning: arm7_9_common.c:771 arm7_9_assert_reset(): srst resets test logic, too

The script does not get execute. If I purposely changed my target_script to the following:

target_script 1 reset ./myreset.script

The OpenOCD complains:

Open On-Chip Debugger (2008-02-23 10:00 CET) svn: 320

$URL: http://svn.berlios.de/svnroot/repos/openocd/trunk $

Info: configuration.c:56 configuration_output_handler(): opened configs/str7x

x_signalyzer.cfg

Error: target.c:1213 handle_target_script_command(): target number ‘1’ not defined

Something is broken regarding on the “target_script” command?

The OpenOCD R320 distribution is from YAGARTO.

Regards,

Lawrence

Sorry all,

False alarm. I forgot to set “run_and_init” parameter for the “target” command. I was using “run_and_halt” option.

Regards,

Lawrence