Beginner help at91sam7-ex256+arm-usb-ocd

Hi,

I’m new in ARM world and i have some problems on setting up environment. I tried to follow the yagarto howto but different hw is used so had to impro.

First problem is that i tried to conf the openocd with config file

#daemon configuration
telnet_port 4444
gdb_port 3333

#interface
interface ft2232
ft2232_device_desc "Olimex OpenOCD JTAG A"
ft2232_layout "olimex-jtag"
ft2232_vid_pid 0x15BA 0x0003
jtag_speed 2

#use combined on interfaces or targets that can't set TRST/SRST separately
reset_config trst_and_srst srst_pulls_trst

#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe

#target configuration
daemon_startup reset

#target <type> <startup mode>
#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4
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 c:\scriptTemp\temp.ocd

#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 


# For more information about the configuration files, take a look at:
# http://openfacts.berlios.de/index-en.phtml?title=Open+On-Chip+Debugger

when i try when card is connected:

C:\Program Files\openocd-2006re115\bin\configs>openocd-ftd2xx -f at91sam7_armusb

ocd.cfg

Info: openocd.c:82 main(): Open On-Chip Debugger (2006-10-12 18:00 CEST)

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

after that i have to use ctrl+break it to stop or reset console…

and if just arm-usb-ocd is connected:

C:\Program Files\openocd-2006re115\bin\configs>openocd-ftd2xx -f at91sam7_armusb

ocd.cfg

Info: openocd.c:82 main(): Open On-Chip Debugger (2006-10-12 18:00 CEST)

Error: jtag.c:1149 jtag_validate_chain(): Error validating JTAG scan chain, IR

mismatch, scan returned 0x00

I dont know if my second problem cose of openocd but if i try in eclipse make it gives like make: *** No rule to make target clean'. or make: *** No rule to make target all’.

Is there some problem with my make too.

Thanks for help in advance

  • Wicim

The output you got with the board connected is fine - the OpenOCD was launched, and reported a warning to inform you about limitations of the reset configuration.

OpenOCD operates as a daemon that you control either via telnet (port 4444) or via GDB (port 3333).

Regards,

Dominic

Is it normal that test program from olimex dont run when jtag cable is connected between board and jtag box?

I have that problem with make but i figured that i dont have any makefile in those example code folders. Do anyone have universal makefile for at91sam-ex 256 board?