按照《Eclipse,OpenOCD,OpenJTAG教程》在Ubuntu下对Eclipse进行设置。出现2个问题。
1、External Tools Configura
tions下按照原文设置无法RUN,只有将Location设定为/work/eclipse_projects/openocd.cfg才可以执行。
但是运行之后有以下错误:
/work/eclipse_projects/openocd.cfg: 1: telnet_port: not found
/work/eclipse_projects/openocd.cfg: 2: gdb_port: not found
/work/eclipse_projects/openocd.cfg: 3: interface: not found
/work/eclipse_projects/openocd.cfg: 4: jtag_speed: not found
/work/eclipse_projects/openocd.cfg: 5: ft2232_vid_pid: not found
/work/eclipse_projects/openocd.cfg: 6: ft2232_layout: not found
/work/eclipse_projects/openocd.cfg: 7: reset_config: not found
/work/eclipse_projects/openocd.cfg: 8: jtag_device: not found
/work/eclipse_projects/openocd.cfg: 9: daemon_startup: not found
/work/eclipse_projects/openocd.cfg: 10: target: not found
/work/eclipse_projects/openocd.cfg: 12: working_area: not found
/work/eclipse_projects/openocd.cfg: 15: nand: not found
/work/eclipse_projects/openocd.cfg: 16: run_and_halt_time: not found
/work/eclipse_projects/openocd.cfg: 17: ft2232_device_desc: not found
但是在命令行模式下,执行openocd命令能够连接
开发板。需要将/work/eclipse_projects目录加到环境变量里面去吗?
2、按照原文设定debug,运行之后出现如下错误:
target remote localhost:3333
localhost:3333: Connection refused.
monitor reset
"monitor" command not supported by this target.
monitor halt
"monitor" command not supported by this target.
monitor
ARM920t cp15 2 0
"monitor" command not supported by this target.
monitor step
"monitor" command not supported by this target.
monitor arm7_9 sw_bkpts enable
"monitor" command not supported by this target.
load
You can't do that when your target is `exec'
break main
Breakpoint 1 at 0x4c: file leds.c, line 17.
continue
The program is not being run.
No registers.
为何monitor命令无法执行呢?
我用的是Ubuntu8.04。