Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: OPEN OCD with olimex ARM-USB-Tiny Jtag for AT91SAM7A1-EK
PostPosted: Sun Mar 14, 2010 1:41 pm 
Offline

Joined: Tue Mar 09, 2010 2:15 pm
Posts: 4
Hi
I have ARM-USB-Tiny JTAG interface from Olimex
and I am trying to use it with AT91SAM7A1-EK from Atmel.
I am trying 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

Code:
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.
Am I using the correct cfg file fro openOCD?

Salam
Hossam Alzomor


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: