Hi!
I am new to JTAG, so if I am missing anything basic, please tell me.
I can access the at91sam7x256 on my olimex sam78-ex256 just fine, so
the general setup should be ok.
On a similar hardware with an at91sam7s256, I get an error if I even
try to halt the cpu:
"timed out while waiting for target halted
Runtime error, file "command.c", line 473:"
Is this a bug in my hardware, in openocd, or am I just using it
wrongly?
Timo
More Details below:
===== begin openocd session =====
Open On-Chip Debugger
> poll
poll
background polling: on
TAP: sam7se256.cpu (enabled)
target state: running
> targets
targets
TargetName Type Endian TapName State
-- ------------------ ---------- ------ ------------------ ------------
0* sam7se256.cpu arm7tdmi little sam7se256.cpu running
> halt
halt
timed out while waiting for target halted
Runtime error, file "command.c", line 473:
>
=========== end paste ===========
I am using the ARM_USB_OCD
(http://www.olimex.com/dev/arm-usb-ocd.html), config is as following:
========= begin config ==========
gdb_port 3333
telnet_port 4444
interface ft2232
ft2232_device_desc "Olimex OpenOCD JTAG A"
ft2232_layout "olimex-jtag"
ft2232_vid_pid 0x15BA 0x0003
reset_config srst_gates_jtag
if { [info exists CHIPNAME] } {
set _CHIPNAME $CHIPNAME
} else {
set _CHIPNAME sam7se256
}
if { [info exists ENDIAN] } {
set _ENDIAN $ENDIAN
} else {
set _ENDIAN little
}
if { [info exists CPUTAPID ] } {
set _CPUTAPID $CPUTAPID
} else {
set _CPUTAPID 0x3f0f0f0f
}
jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id
$_CPUTAPID
set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
target create $_TARGETNAME arm7tdmi -endian $_ENDIAN -chain-position
$_TARGETNAME -variant arm7tdmi
$_TARGETNAME configure -event reset-init {
# disable watchdog
mww 0xfffffd44 0x00008000
# enable user reset
mww 0xfffffd08 0xa5000001
# CKGR_MOR : enable the main oscillator
mww 0xfffffc20 0x00000601
sleep 10
# CKGR_PLLR: 96.1097 MHz
mww 0xfffffc2c 0x00481c0e
sleep 10
# PMC_MCKR : MCK = PLL / 2 ~= 48 MHz
mww 0xfffffc30 0x00000007
sleep 10
# MC_FMR: flash mode (FWS=1,FMCN=60)
mww 0xffffff60 0x003c0100
sleep 100
}
$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x00200000
-work-area-size 0x4000 -work-area-backup 0
flash bank at91sam7 0 0 0 0 0 0 0 0 0 0 0 0 18432
========== end config ===========
===== begin openocd output ======
% openocd -f openocd-sam7s256.cfg
Open On-Chip Debugger 0.3.0-in-development (2009-10-02-14:57) svn:r2790
$URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c $
For bug reports, read
http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS
Warn : use 'sam7se256.cpu' as target identifier, not '0'
Info : clock speed 6000 kHz
Info : JTAG tap: sam7se256.cpu tap/device found: 0x3f0f0f0f (mfg: 0x787,
part: 0xf0f0, ver: 0x3)
Info : accepting 'telnet' connection from 0
background polling: on
TAP: sam7se256.cpu (enabled)
target state: running
TargetName Type Endian TapName State
-- ------------------ ---------- ------ ------------------ ------------
0* sam7se256.cpu arm7tdmi little sam7se256.cpu running
Error: timed out while waiting for target halted
Runtime error, file "command.c", line 473:
Info : dropped 'telnet' connection - error -400
====== end openocd output =======
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development