您尚未登录。

楼主 #1 2019-05-30 18:13:55

微凉VeiLiang
会员
所在地: 深圳
注册时间: 2018-10-28
已发帖子: 630
积分: 525
个人网站

有人试过在OpenOCD上对V3s裸机程序进行调试么

jlink连上v3s,通过open ocd在linux下调试。
找到一个相关的https://github.com/hno/Allwinner-Info/blob/master/JTAG/openocd-sunxi.cfg

# Olimex dongle
source [find interface/ftdi/olimex-arm-usb-tiny-h.cfg]

adapter_khz 14000

#reset_config srst_only srst_pulls_trst srst_open_drain
reset_config srst_only

# Allwinner A10 (sun4i)
 
if { [info exists CHIPNAME] } {
   set  _CHIPNAME $CHIPNAME
} else {
   set  _CHIPNAME sun4i
}
 
# Subsidiary TAP: CoreSight Debug Access Port (DAP)
if { [info exists DAP_TAPID ] } {
   set _DAP_TAPID $DAP_TAPID
} else {
   set _DAP_TAPID 0x4ba00477
}
jtag newtap $_CHIPNAME dap -irlen 4 -ircapture 0x1 -irmask 0xf \
    -expected-id $_DAP_TAPID
 
# GDB target:  Cortex-A8, using DAP
set _TARGETNAME $_CHIPNAME.cpu
target create $_TARGETNAME cortex_a -chain-position $_CHIPNAME.dap
 
# SRAM-A2: 16K at 0x00004000;
$_TARGETNAME configure -work-area-phys 0x00004000 -work-area-size 0x4000
 
#$_TARGETNAME configure -event reset-assert-post "sun4i_dbginit $_TARGETNAME"
#$_TARGETNAME configure -event examine-end "sun4i_dbginit $_TARGETNAME"

$_TARGETNAME configure -event gdb-attach "halt"

#proc sun4i_gdbattach {target} {
#	echo "gdbattach"
#	halt
#}
#
#proc sun4i_dbginit {target} {
#     # General Cortex A debug initialisation
#     halt
#     cortex_a dbginit
#     target_request debugmsgs enable
#     trace point 1
#}

离线

#2 2019-05-31 00:00:50

Jin劲
会员
注册时间: 2018-04-06
已发帖子: 217
积分: 217

Re: 有人试过在OpenOCD上对V3s裸机程序进行调试么

俺用jlink官方提供的linux版本命令行在linux下调试过f1c100s和h3的裸机

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn