首先安装openocd,具体步骤请参考我前面的文章。
然后就是配置openocd,以下是我的配置,仅供参考,也希望更多的人能够共同成长,一同分享:
telnet_port 4444
tcl_port 6666
gdb_port 2331
# GDB Setup
#gdb_port 3333
#gdb_breakpoint_override hard
#gdb_memory_map enable
#gdb_flash_program enable
#-------------------------------------------------------------------------
# interface Setup
#-------------------------------------------------------------------------
interface jlink
#-------------------------------------------------------------------------
# target Setup
#-------------------------------------------------------------------------
if { [info exists CHIPNAME] } {
set _CHIPNAME $CHIPNAME
} else {
set _CHIPNAME s3c6410
}
if { [info exists ENDIAN] } {
set _ENDIAN $ENDIAN
} else {
# this defaults to a bigendian
set _