最近想试下openocd。我用的是jlink。openocd0.4.0
我的openocd的配置文件内容如下:
telnet_port 4444
gdb_port 3333
interface jlink
#jtag_speed 0
reset_config trst_and_srst
#jtag_device 4 0x1 0xf 0xe
daemon_startup attach
target arm920t little reset_run 0 arm920t
arm7_9 fast_memory_access enable
working_area 0 0x200000 0x4000 backup (不知道这句话什么意思?)
#flash bank cfi 0 0x100000 2 2 0
#debug_level 3
nand device s3c2440 0
run_and_halt_time 0 5000
然后我启动了openocd,输出如下:
root@gujie-ubuntu9:/home/gujie/workspace/openocdTest# openocd
Open On-Chip Debugger 0.4.0 (2010-08-08-11:27)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.htmltrst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain
target arm920t little reset_run 0 arm920t: command requires more argumentsInfo : J-Link initialization started / target CPU reset initiated
Info : J-Link ARM V8 compiled Dec 1 2009 11:42:48
Info : JLink caps 0xb9ff7bbf
Info : JLink hw version 80000
Info : JLink max mem block 9576
Info : Vref = 3.254 TCK = 1 TDI = 0 TDO = 0 TMS = 0 SRST = 0 TRST = 0
Info : J-Link JTAG Interface ready
Error: jlink_usb_message failed with result=1)
Error: jlink_tap_execute, wrong result -107 (expected 1)Info : RCLK (adaptive clock speed)
Warn : There are no enabled taps. AUTO PROBING MIGHT NOT WORK!!
Error: jlink_usb_message failed with result=1)
Error: jlink_tap_execute, wrong result -107 (expected 1)Warn : There are no enabled taps. AUTO PROBING MIGHT NOT WORK!!
Error: jlink_usb_message failed with result=1)
Error: jlink_tap_execute, wrong result -107 (expected 1)Command handler execution failed
Warn : jtag initialization failed; try 'jtag init' again.
Warn : gdb services need one or more targets defined//当我在另一个串口telnet它的时候,
过程如下:
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Open On-Chip Debugger
> poll
Runtime error, file "command.c", line 650:
invalid command name "poll"> halt
Runtime error, file "command.c", line 650:
invalid command name "halt">
然后对应openocd的窗口输出如下:
Info : accepting 'telnet' connection from 0
Runtime error, file "command.c", line 650:
invalid command name "poll"。
然后用gdb 去 target remote它也显示:
(gdb) target remote localhost:3333
localhost:3333: Connection refused.
(gdb) Quit
(gdb)
想问下原因。我估计是 配置文件也错了。
有人写过jink的openocd配置文件吗,哪里写的有问题
[ 此帖被imjacob在2010-08-09 21:29重新编辑 ]