- 论坛徽章:
- 0
|
Quick Test :
Without having the JTAG connected to the target board, you should see something like this printed out:
joseph@joseph-linux:/usr/local/lib/openocd/interface$ openocd
Open On-Chip Debugger 0.2.0-in-development (2009-05-11-06:41)svn:1657M
BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS
$URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $
jtag_speed: 0
Warn : Tap/Device does not have IDCODE
Error: JTAG tap: s3c2440.cpu got: 0x00000000 (mfg: 0x000, part: 0x0000, ver: 0x0)
Error: JTAG tap: s3c2440.cpu expected 1 of 1: 0x0032409d (mfg: 0x04e, part: 0x0324, ver: 0x0)
Error: trying to validate configured JTAG chain anyway...
Error: Could not validate JTAG scan chain, IR mismatch, scan returned 0x00. tap=s3c2440.cpu pos=0 expected 0x1 got 0
Warn : Could not validate JTAG chain, continuing anyway...
Warn : TAP s3c2440.cpu:
Warn : value captured during scan didn
after connect the jtag board to target board :
joseph@joseph-linux:/usr/local/lib/openocd/interface$ openocd
Open On-Chip Debugger 0.2.0-in-development (2009-05-11-06:41) svn:1657M
BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS
$URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $
jtag_speed: 0
Info : JTAG tap: s3c2440.cpu tap/device found: 0x0032409d (Manufacturer: 0x04e, Part: 0x0324, Version: 0x0)Info : JTAG Tap/device matched
Warn : no telnet port specified, using default port 4444
Warn : no gdb port specified, using default port 3333
Warn : no tcl port specified, using default port 6666success !. those highlighted in bold red shows it detects S3C2440 correctly.
Below is the openocd.cfg I am using.
The openocd.cfg is using openocd's s3c2440 and parport script
It is done by :
cd /usr/local/lib/openocd/interface
cat /usr/local/lib/openocd/interface/parport.cfg
/usr/local/lib/openocd/target/samsung_s3c2440.cfg > ~/openocd.cfg
remember to change the parport_port 0xc8b8
to
parport_port 0
here is the cfg file
#
# Parallel port wiggler (many clones available) on port 0
#
interface parport
parport_port 0
parport_cable wiggler
jtag_speed 0
# Target configuration for the Samsung 2440 system on chip
# Tested on a S3C2440 Evaluation board by keesj
# Processor : ARM920Tid(wb) rev 0 (v4l)
# Info: JTAG tap: s3c2440.cpu tap/device found: 0x0032409d (Manufacturer: 0x04e, Part: 0x0324, Version: 0x0)
if { [info exists CHIPNAME] } {
set _CHIPNAME $CHIPNAME
} else {
set _CHIPNAME s3c2440
}
if { [info exists ENDIAN] } {
set _ENDIAN $ENDIAN
} else {
# this defaults to a bigendian
set _ENDIAN little
}
if { [info exists CPUTAPID ] } {
set _CPUTAPID $CPUTAPID
} else {
# force an error till we get a good number
set _CPUTAPID 0x0032409d
}
#jtag scan chain
jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0x0f -expected-id $_CPUTAPID
set _TARGETNAME [format "%s.cpu" $_CHIPNAME]
target create $_TARGETNAME arm920t -endian $_ENDIAN -chain-position $_TARGETNAME -variant arm920t
$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x200000 -work-area-size 0x4000 -work-area-backup 1
#reset configuration
reset_config trst_and_srst
There is a very nice walk-through from
OpenHardware
website
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/90681/showart_1925003.html |
|