Hi
I have ARM-USB-Tiny JTAG interface
and I am trying to use it with AT91SAM7A1-EK from Atmel.
I am truing to run the Openocd from the command line using the following command
openocd-ftd2xx.exe -f .\configs\sam7-armusbocd.cfg
here’s the content of the SAM7-armusbocd.cfg
telnet_port 4444
gdb_port 3333
interface ft2232
#ft2232_device_desc "Olimex OpenOCD JTAG A"
ft2232_device_desc "Olimex OpenOCD JTAG TINY A"
ft2232_layout "olimex-jtag"
#ft2232_vid_pid 0x15BA 0x0003
ft2232_vid_pid 0x15BA 0x0004
jtag_speed 2
jtag_nsrst_delay 200
jtag_ntrst_delay 200
#reset_config <signals> [combination] [trst_type] [srst_type]
reset_config trst_and_srst separate
#jtag_device <IR length> <IR capture> <IR mask> <IDCODE instruction>
jtag_device 4 0x1 0xf 0xe
#daemon_startup <'attach'|'reset'>
daemon_startup reset
#target <type> <endianess> <reset_mode> <jtag#> [variant]
target arm7tdmi little run_and_init 0 arm7tdmi_r4
#run_and_halt_time <target#> <time_in_ms>
run_and_halt_time 0 30
# commands below are specific to AT91sam7 Flash Programming
# ---------------------------------------------------------
#target_script specifies the flash programming script file
target_script 0 reset sam7flash.script
#working_area <target#> <address> <size> <'backup'|'nobackup'>
working_area 0 0x40000000 0x4000 nobackup
#flash bank at91sam7 0 0 0 0 <target#>
flash bank at91sam7 0 0 0 0 0
When I run the command I get the following error message
Error: arm_jtag.c:38 arm_jtag_set_instr_error_handler():setting the new JAG instruction failed, debuggingis likely to be broken
Error: target.c:228 target_init_handler():couldn’t open script file sam7flash.script
What Should I do to overcome such problem.
Salam
Hossam Alzomor