WhyCan Forum

本站无需注册,无需积分,无需回复可下载所有资料,如果真的喜欢小站,请您注册之后请至少回复一个帖子激活Id,谢谢支持! 站长QQ: 516333132 (挖坑网/填坑网) admin@whycan.cn

您尚未登录。

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

微凉VeiLiang
会员
注册时间: 2018-10-28
累计积分: 146

有人试过在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
累计积分: 208

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

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

离线

页脚