免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1661 | 回复: 0
打印 上一主题 下一主题

openocd using wiggler board - success [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-12 10:10 |只看该作者 |倒序浏览
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP