南方兄,谢谢你的回复,我在“http://openfacts.berlios.de/inde ... enOCD_configuration”上找到了答案,我写了一个s3c4510的opencfg.cfg,已经正常运行了,可以没有flash的配置,因为我还不太会。
除了Philips LPC2000系列的,其他的ARM7在小端情况下都是可以用了。当然,你的OpenJTAG是“jtagkey_prototype_v1”的版本,比如100问网的,其他的OpenJTAG要做少量修改。
----------------------------------------
#Daemon configuration
telnet_port 4444
gdb_port 3333
daemon_startup attach
#JTAG interface configuration
interface ft2232
jtag_speed 0
reset_config trst_and_srst
jtag_device 4 0x1 0xf 0xe
jtag_nsrst_delay 100
jtag_ntrst_delay 50
ft2232_vid_pid 0x1457 0x5118
ft2232_layout "jtagkey_prototype_v1"
#ft2232_layout "jtagkey"
ft2232_device_desc "USB<=>JTAG&RS232"
#Target configuration
target arm7tdmi little reset_run 0 arm7tdmi
run_and_halt_time 0 50
----------------------------------------
打印的信息是:
----------------------------------------
root@ubuntu:~/Documents/Project/Exam/Led/0000/Led/OpenOcd# openocd
Open On-Chip Debugger 1.0 (2008-10-04-09:26) svn:717
$URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $
Info: options.c:50 configuration_output_handler(): Open On-Chip Debugger 1.0 (2008-10-04-09:26) svn:717
Info: options.c:50 configuration_output_handler(): jtag_speed: 0, 0
Info: jtag.c:1389 jtag_examine_chain(): JTAG device found: 0x1f0f0f0f (Manufacturer: 0x787, Part: 0xf0f0, Version: 0x1)
Info: server.c:78 add_connection(): accepting 'telnet' connection from 0
User: target.c:957 target_arch_state(): target state: halted
User: armv4_5.c:307 armv4_5_arch_state(): target halted in ARM state due to debug request, current mode: Supervisor
cpsr: 0x60000013 pc: 0x00015dec
User: target.c:957 target_arch_state(): target state: running
南方兄,谢谢你的回复,我在“http://openfacts.berlios.de/inde ... enOCD_configuration”上找到了答案,我写了一个s3c4510的opencfg.cfg,已经正常运行了,可以没有flash的配置,因为我还不太会。
除了Philips LPC2000系列的,其他的ARM7在小端情况下都是可以用了。当然,你的OpenJTAG是“jtagkey_prototype_v1”的版本,比如100问网的,其他的OpenJTAG要做少量修改。
----------------------------------------
#Daemon configuration
telnet_port 4444
gdb_port 3333
daemon_startup attach
#JTAG interface configuration
interface ft2232
jtag_speed 0
reset_config trst_and_srst
jtag_device 4 0x1 0xf 0xe
jtag_nsrst_delay 100
jtag_ntrst_delay 50
ft2232_vid_pid 0x1457 0x5118
ft2232_layout "jtagkey_prototype_v1"
#ft2232_layout "jtagkey"
ft2232_device_desc "USB<=>JTAG&RS232"
#Target configuration
target arm7tdmi little reset_run 0 arm7tdmi
run_and_halt_time 0 50
----------------------------------------
打印的信息是:
----------------------------------------
root@ubuntu:~/Documents/Project/Exam/Led/0000/Led/OpenOcd# openocd
Open On-Chip Debugger 1.0 (2008-10-04-09:26) svn:717
$URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $
Info: options.c:50 configuration_output_handler(): Open On-Chip Debugger 1.0 (2008-10-04-09:26) svn:717
Info: options.c:50 configuration_output_handler(): jtag_speed: 0, 0
Info: jtag.c:1389 jtag_examine_chain(): JTAG device found: 0x1f0f0f0f (Manufacturer: 0x787, Part: 0xf0f0, Version: 0x1)
Info: server.c:78 add_connection(): accepting 'telnet' connection from 0
User: target.c:957 target_arch_state(): target state: halted
User: armv4_5.c:307 armv4_5_arch_state(): target halted in ARM state due to debug request, current mode: Supervisor
cpsr: 0x60000013 pc: 0x00015dec
User: target.c:957 target_arch_state(): target state: running
举报