mirror of
https://gitee.com/Vancouver2017/luban-lite-t3e-pro.git
synced 2025-12-14 10:28:54 +00:00
391 lines
52 KiB
HTML
391 lines
52 KiB
HTML
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn" data-whc_version="26.0">
|
||
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="description" content="GDB 调试工具及其功能描述如下: 表 1 . 工具介绍 工具 说明 T-HeadDebugServer 运行 GDB Server AiBurn 镜像烧写工具 AIC-JTAG AIC 调试器 JTAG - SDMC 转接线 仅用于调试器连接 SDMC 接口使用 Eclipse 适配 Luban-Lite SDK 的 IDE riscv64-unknown-elf-gdb.exe 调试工具,位于 ..."/><meta name="DC.rights.owner" content="(C) 版权 2025"/><meta name="copyright" content="(C) 版权 2025"/><meta name="generator" content="DITA-OT"/><meta name="DC.type" content="topic"/><meta name="DC.relation" content="../../../topics/sdk/advanced/sdk-usage.html"/><meta name="DC.relation" content="../../../topics/sdk/advanced/burn-procedure-by-diff-media.html"/><meta name="DC.relation" content="../../../topics/sdk/advanced/pinmux.html"/><meta name="DC.contributor" content="yan.wang"/><meta name="DC.contributor" content="yan.wang"/><meta name="DC.date.modified" content="2024-01-15"/><meta name="DC.format" content="HTML5"/><meta name="DC.identifier" content="id"/><meta name="DC.language" content="zh-CN"/><title>GDB 调试</title><!-- Build number 2023110923. --><meta name="wh-path2root" content="../../../"/><meta name="wh-toc-id" content="id-d5856e1339"/><meta name="wh-source-relpath" content="topics/sdk/advanced/gdb.dita"/><meta name="wh-out-relpath" content="topics/sdk/advanced/gdb.html"/>
|
||
|
||
<link rel="stylesheet" type="text/css" href="../../../webhelp/app/commons.css?buildId=2023110923"/>
|
||
<link rel="stylesheet" type="text/css" href="../../../webhelp/app/topic.css?buildId=2023110923"/>
|
||
|
||
<script src="../../../webhelp/app/options/properties.js?buildId=20250121171154"></script>
|
||
<script src="../../../webhelp/app/localization/strings.js?buildId=2023110923"></script>
|
||
<script src="../../../webhelp/app/search/index/keywords.js?buildId=20250121171154"></script>
|
||
<script defer="defer" src="../../../webhelp/app/commons.js?buildId=2023110923"></script>
|
||
<script defer="defer" src="../../../webhelp/app/topic.js?buildId=2023110923"></script>
|
||
<link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-styles-web.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/notes.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-common.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-images.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/footnote.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/aic-web-watermark.css?buildId=2023110923"/><link rel="stylesheet" type="text/css" href="../../../webhelp/template/topic-body-list.css?buildId=2023110923"/></head>
|
||
|
||
<body id="id" class="wh_topic_page frmBody">
|
||
<a href="#wh_topic_body" class="sr-only sr-only-focusable">
|
||
跳转到主要内容
|
||
</a>
|
||
|
||
|
||
|
||
|
||
<header class="navbar navbar-default wh_header">
|
||
<div class="container-fluid">
|
||
<div class="wh_header_flex_container navbar-nav navbar-expand-md navbar-dark">
|
||
<div class="wh_logo_and_publication_title_container">
|
||
<div class="wh_logo_and_publication_title">
|
||
|
||
<a href="http://www.artinchip.com" class=" wh_logo d-none d-sm-block "><img src="../../../company-logo-white.png" alt="RTOS SDK 使用指南SDK 指南文件"/></a>
|
||
<div class=" wh_publication_title "><a href="../../../index.html"><span class="booktitle"><span class="ph mainbooktitle">RTOS SDK 使用指南</span><span class="ph booktitlealt">SDK 指南文件</span></span></a></div>
|
||
|
||
</div>
|
||
|
||
|
||
</div>
|
||
|
||
<div class="wh_top_menu_and_indexterms_link collapse navbar-collapse" id="wh_top_menu_and_indexterms_link">
|
||
|
||
|
||
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</header>
|
||
|
||
|
||
|
||
|
||
<div class=" wh_search_input navbar-form wh_topic_page_search search " role="form">
|
||
|
||
|
||
|
||
<form id="searchForm" method="get" role="search" action="../../../search.html"><div><input type="search" placeholder="搜索 " class="wh_search_textfield" id="textToSearch" name="searchQuery" aria-label="搜索查询" required="required"/><button type="submit" class="wh_search_button" aria-label="搜索"><span class="search_input_text">搜索</span></button></div></form>
|
||
|
||
|
||
|
||
</div>
|
||
|
||
<div class="container-fluid" id="wh_topic_container">
|
||
<div class="row">
|
||
|
||
<nav class="wh_tools d-print-none navbar-expand-md" aria-label="Tools">
|
||
|
||
<div data-tooltip-position="bottom" class=" wh_breadcrumb "><ol class="d-print-none"><li><span class="home"><a href="../../../index.html"><span>主页</span></a></span></li><li><div class="topicref" data-id="id"><div class="title"><a href="../../../topics/sdk/advanced/sdk-usage.html">使用指南</a><div class="wh-tooltip"><p class="shortdesc">系统镜像、编译选项、开发板、应用等相关的详细使用说明。</p></div></div></div></li><li class="active"><div class="topicref" data-id="id"><div class="title"><a href="../../../topics/sdk/advanced/gdb.html">GDB 调试</a></div></div></li></ol></div>
|
||
|
||
|
||
|
||
<div class="wh_right_tools">
|
||
<button class="wh_hide_highlight" aria-label="切换搜索突出显示" title="切换搜索突出显示"></button>
|
||
<button class="webhelp_expand_collapse_sections" data-next-state="collapsed" aria-label="折叠截面" title="折叠截面"></button>
|
||
<div class=" wh_navigation_links "><span id="topic_navigation_links" class="navheader">
|
||
|
||
<span class="navprev"><a class="- topic/link link" href="../../../topics/sdk/advanced/burn-procedure-by-diff-media.html" title="镜像烧录媒介及流程" aria-label="上一主题: 镜像烧录媒介及流程" rel="prev"></a></span>
|
||
<span class="navnext"><a class="- topic/link link" href="../../../topics/sdk/advanced/pinmux.html" title="引脚配置" aria-label="下一主题: 引脚配置" rel="next"></a></span> </span></div>
|
||
|
||
|
||
|
||
<div class=" wh_print_link print d-none d-md-inline-block "><button onClick="window.print()" title="打印此页" aria-label="打印此页"></button></div>
|
||
|
||
<button type="button" id="wh_toc_button" class="custom-toggler navbar-toggler collapsed wh_toggle_button navbar-light" aria-expanded="false" aria-label="Toggle publishing table of content" aria-controls="wh_publication_toc">
|
||
<span class="navbar-toggler-icon"></span>
|
||
</button>
|
||
</div>
|
||
|
||
</nav>
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<div class="wh_content_area">
|
||
<div class="row">
|
||
|
||
<nav id="wh_publication_toc" class="col-lg-3 col-md-3 col-sm-12 d-md-block d-none d-print-none" aria-label="Table of Contents Container">
|
||
<div id="wh_publication_toc_content">
|
||
|
||
<div class=" wh_publication_toc " data-tooltip-position="right"><span class="expand-button-action-labels"><span id="button-expand-action" role="button" aria-label="Expand"></span><span id="button-collapse-action" role="button" aria-label="Collapse"></span><span id="button-pending-action" role="button" aria-label="Pending"></span></span><ul role="tree" aria-label="Table of Contents"><li role="treeitem"><div data-tocid="revinfo_linux-d5856e989" class="topicref" data-id="revinfo_linux" data-state="leaf"><span role="button" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/revinfo/revinfo_rtos.html" id="revinfo_linux-d5856e989-link">修订记录</a></div></div></li><li role="treeitem" aria-expanded="false"><div data-tocid="id-d5856e1003" class="topicref" data-id="id" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action id-d5856e1003-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/env/sdk-compile.html" id="id-d5856e1003-link">SDK 编译</a><div class="wh-tooltip"><p class="shortdesc">介绍不同编译环境下 SDK 的详细编译流程。</p></div></div></div></li><li role="treeitem" aria-expanded="true"><div data-tocid="id-d5856e1152" class="topicref" data-id="id" data-state="expanded"><span role="button" tabindex="0" aria-labelledby="button-collapse-action id-d5856e1152-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/advanced/sdk-usage.html" id="id-d5856e1152-link">使用指南</a><div class="wh-tooltip"><p class="shortdesc">系统镜像、编译选项、开发板、应用等相关的详细使用说明。</p></div></div></div><ul role="group" class="navbar-nav nav-list"><li role="treeitem" aria-expanded="false"><div data-tocid="id-d5856e1169" class="topicref" data-id="id" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action id-d5856e1169-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/advanced/commands.html" id="id-d5856e1169-link">命令详解 </a></div></div></li><li role="treeitem"><div data-tocid="id-d5856e1207" class="topicref" data-id="id" data-state="leaf"><span role="button" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/advanced/architecture.html" id="id-d5856e1207-link">设计框架</a></div></div></li><li role="treeitem"><div data-tocid="id-d5856e1219" class="topicref" data-id="id" data-state="leaf"><span role="button" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/advanced/sconstruct.html" id="id-d5856e1219-link">SConstruct </a></div></div></li><li role="treeitem"><div data-tocid="id-d5856e1231" class="topicref" data-id="id" data-state="leaf"><span role="button" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/advanced/compile.html" id="id-d5856e1231-link">编译选项介绍</a></div></div></li><li role="treeitem"><div data-tocid="id-d5856e1243" class="topicref" data-id="id" data-state="leaf"><span role="button" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/advanced/partition.html" id="id-d5856e1243-link">配置分区</a></div></div></li><li role="treeitem" aria-expanded="false"><div data-tocid="id-d5856e1255" class="topicref" data-id="id" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action id-d5856e1255-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/advanced/image_burn_and_config.html" id="id-d5856e1255-link">配置烧录镜像</a></div></div></li><li role="treeitem" class="active"><div data-tocid="id-d5856e1339" class="topicref" data-id="id" data-state="leaf"><span role="button" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/advanced/gdb.html" id="id-d5856e1339-link">GDB 调试</a></div></div></li><li role="treeitem"><div data-tocid="id-d5856e1353" class="topicref" data-id="id" data-state="leaf"><span role="button" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/advanced/pinmux.html" id="id-d5856e1353-link">引脚配置</a></div></div></li><li role="treeitem"><div data-tocid="id-d5856e1367" class="topicref" data-id="id" data-state="leaf"><span role="button" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/advanced/driver.html" id="id-d5856e1367-link">添加驱动</a></div></div></li><li role="treeitem"><div data-tocid="id-d5856e1379" class="topicref" data-id="id" data-state="leaf"><span role="button" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/advanced/app.html" id="id-d5856e1379-link">添加应用</a></div></div></li><li role="treeitem"><div data-tocid="id-d5856e1392" class="topicref" data-id="id" data-state="leaf"><span role="button" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/advanced/hellowold.html" id="id-d5856e1392-link">hellowold</a></div></div></li><li role="treeitem"><div data-tocid="id-d5856e1404" class="topicref" data-id="id" data-state="leaf"><span role="button" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/advanced/burnin_test.html" id="id-d5856e1404-link">烤机测试</a></div></div></li></ul></li><li role="treeitem" aria-expanded="false"><div data-tocid="concept_rcx_czh_pzb-d5856e1416" class="topicref" data-id="concept_rcx_czh_pzb" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action concept_rcx_czh_pzb-d5856e1416-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/chapter-app.html" id="concept_rcx_czh_pzb-d5856e1416-link">应用场景</a><div class="wh-tooltip"><p class="shortdesc">描述了 SDK 在不同应用场景中的配置和使用,包括系统更新、OTA、安全方案等。</p></div></div></div></li><li role="treeitem" aria-expanded="false"><div data-tocid="id-d5856e2119" class="topicref" data-id="id" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action id-d5856e2119-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/peripheral/peripheral-intro.html" id="id-d5856e2119-link">外设移植</a><div class="wh-tooltip"><p class="shortdesc"><span class="ph">CTP、U 盘、SD 卡、有线和无线网络</span>等外设的介绍和使用说明。</p></div></div></div></li><li role="treeitem" aria-expanded="false"><div data-tocid="id-d5856e2244" class="topicref" data-id="id" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action id-d5856e2244-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/bringup/chapter-bringup.html" id="id-d5856e2244-link">BringUp</a><div class="wh-tooltip"><p class="shortdesc">在硬件上电后快速初始化系统,为操作系统的启动准备好必要的硬件环境。</p></div></div></div></li><li role="treeitem" aria-expanded="false"><div data-tocid="id-d5856e2345" class="topicref" data-id="id" data-state="not-ready"><span role="button" tabindex="0" aria-labelledby="button-expand-action id-d5856e2345-link" class="wh-expand-btn"></span><div class="title"><a href="../../../topics/sdk/chapter-advanced-app.html" id="id-d5856e2345-link">高级应用</a><div class="wh-tooltip"><p class="shortdesc">系统、存储、多媒体、接口、安全等模块的详细配置和设计说明。</p></div></div></div></li></ul></div>
|
||
|
||
</div>
|
||
</nav>
|
||
|
||
|
||
<div class="col-lg-7 col-md-9 col-sm-12" id="wh_topic_body">
|
||
<button id="wh_close_publication_toc_button" class="close-toc-button d-none" aria-label="Toggle publishing table of content" aria-controls="wh_publication_toc" aria-expanded="true">
|
||
<span class="close-toc-icon-container">
|
||
<span class="close-toc-icon"></span>
|
||
</span>
|
||
</button>
|
||
<button id="wh_close_topic_toc_button" class="close-toc-button d-none" aria-label="Toggle topic table of content" aria-controls="wh_topic_toc" aria-expanded="true">
|
||
<span class="close-toc-icon-container">
|
||
<span class="close-toc-icon"></span>
|
||
</span>
|
||
</button>
|
||
|
||
<div class=" wh_topic_content body "><main role="main"><article class="- topic/topic topic" role="article" aria-labelledby="ariaid-title1"><span class="edit-link" style="font-size:12px; opacity:0.6; text-align:right; vertical-align:middle"><a target="_blank" href="http://172.16.35.88/tasks/jdssno1uvvbf2mltu9kb9v3if05d5gopuakboe8hlud18rma/edit/F:/aicdita/aicdita-cn/topics/sdk/advanced/gdb.dita">Edit online</a></span><h1 class="- topic/title title topictitle1" id="ariaid-title1">GDB 调试</h1><div class="date inPage">15 Jan 2024</div><div style="color: gray;">
|
||
Read time: 7 minute(s)
|
||
</div><div class="- topic/body body"><p class="- topic/p p" data-ofbid="d161916e24__20250121171616">GDB
|
||
调试工具及其功能描述如下:</p><div class="table-container"><table class="- topic/table table frame-all" data-ofbid="d161916e26__20250121171616" data-cols="2"><caption class="- topic/title title tablecap" data-caption-side="top" data-is-repeated="true"><span class="table--title-label">表<span class="table--title-label-number"> 1</span><span class="table--title-label-punctuation">. </span></span><span class="table--title">工具介绍 </span></caption><colgroup><col style="width:37.453183520599254%"/><col style="width:62.546816479400746%"/></colgroup><thead class="- topic/thead thead"><tr class="- topic/row"><th class="- topic/entry entry colsep-1 rowsep-1" id="id__entry__1">工具</th><th class="- topic/entry entry colsep-0 rowsep-1" id="id__entry__2">说明</th></tr></thead><tbody class="- topic/tbody tbody"><tr class="- topic/row"><td class="- topic/entry entry colsep-1 rowsep-1" headers="id__entry__1">T-HeadDebugServer</td><td class="- topic/entry entry colsep-0 rowsep-1" headers="id__entry__2">运行 GDB Server</td></tr><tr class="- topic/row"><td class="- topic/entry entry colsep-1 rowsep-1" headers="id__entry__1">AiBurn</td><td class="- topic/entry entry colsep-0 rowsep-1" headers="id__entry__2">镜像烧写工具</td></tr><tr class="- topic/row"><td class="- topic/entry entry colsep-1 rowsep-1" headers="id__entry__1">AIC-JTAG</td><td class="- topic/entry entry colsep-0 rowsep-1" headers="id__entry__2">AIC 调试器</td></tr><tr class="- topic/row"><td class="- topic/entry entry colsep-1 rowsep-1" headers="id__entry__1">JTAG - SDMC 转接线</td><td class="- topic/entry entry colsep-0 rowsep-1" headers="id__entry__2">仅用于调试器连接 SDMC 接口使用</td></tr><tr class="- topic/row"><td class="- topic/entry entry colsep-1 rowsep-1" headers="id__entry__1">Eclipse</td><td class="- topic/entry entry colsep-0 rowsep-1" headers="id__entry__2">适配 <span class="- topic/ph ph">Luban-Lite</span> SDK 的 IDE</td></tr><tr class="- topic/row"><td class="- topic/entry entry colsep-1 rowsep-1" headers="id__entry__1">riscv64-unknown-elf-gdb.exe</td><td class="- topic/entry entry colsep-0 rowsep-1" headers="id__entry__2">调试工具,位于 <span class="+ topic/ph sw-d/filepath ph filepath">$(SDK)tool/riscv64-gdb/bin/</span></td></tr><tr class="- topic/row"><td class="- topic/entry entry colsep-1 rowsep-1" headers="id__entry__1">d21x.elf</td><td class="- topic/entry entry colsep-0 rowsep-1" headers="id__entry__2">Eclipse 工程目录下生成的符号链接表</td></tr><tr class="- topic/row"><td class="- topic/entry entry colsep-1 rowsep-0" headers="id__entry__1">Tabby</td><td class="- topic/entry entry colsep-0 rowsep-0" headers="id__entry__2">用于控制调试串口、发送指令</td></tr></tbody></table></div><section class="- topic/section section" id="id__id2" data-ofbid="id__id2"><h2 class="- topic/title title sectiontitle">准备工作</h2>
|
||
<p class="- topic/p p" data-ofbid="d161916e88__20250121171616">执行 GDB
|
||
调试前,需要按照以下步骤准备相关软件环境:</p>
|
||
|
||
<ol class="- topic/ol ol simple" id="id__ol_d1l_drc_5cc" data-ofbid="id__ol_d1l_drc_5cc"><li class="- topic/li li" data-ofbid="d161916e92__20250121171616">
|
||
<p class="- topic/p p" data-ofbid="d161916e94__20250121171616">安装 T-HeadDebugServer(以下简称 DebugServer)</p>
|
||
<p class="- topic/p p" data-ofbid="d161916e97__20250121171616">安装包自带 AIC-JTAG 驱动。</p>
|
||
<ol class="- topic/ol ol" type="a" id="id__ol_p24_grc_5cc" data-ofbid="id__ol_p24_grc_5cc"><li class="- topic/li li" data-ofbid="d161916e101__20250121171616">解压,运行 <span class="+ topic/ph sw-d/filepath ph filepath">setup.exe</span>。</li><li class="- topic/li li" data-ofbid="d161916e106__20250121171616">在弹出页面中,点击 <span class="+ topic/ph ui-d/uicontrol ph uicontrol">Next</span>:<br/><div class="imagecenter"><img class="- topic/image image imagecenter" id="id__image_gbf_hrc_5cc" src="../../../images/sdk/install_1.png" alt="install_1"/></div><br/></li><li class="- topic/li li" data-ofbid="d161916e114__20250121171616">
|
||
<div class="- topic/p p" data-ofbid="d161916e116__20250121171616">在用户协议界面中点击 <span class="+ topic/ph ui-d/uicontrol ph uicontrol">Yes</span>:<br/><div class="imagecenter"><img class="- topic/image image imagecenter" id="id__image_wlc_3rc_5cc" src="../../../images/sdk/install_2.png" alt="install_2"/></div><br/></div>
|
||
</li><li class="- topic/li li" data-ofbid="d161916e125__20250121171616">
|
||
<div class="- topic/p p" data-ofbid="d161916e127__20250121171616">在安装路径页面,按照实际需求,修改路径:<br/><div class="imagecenter"><img class="- topic/image image imagecenter" id="id__image_whx_3rc_5cc" src="../../../images/sdk/install_4.png" alt="install_4"/></div><br/></div>
|
||
</li><li class="- topic/li li" data-ofbid="d161916e133__20250121171616">
|
||
<div class="- topic/p p" data-ofbid="d161916e135__20250121171616">在安装内容页面,建议全选,继续点 <span class="+ topic/ph ui-d/uicontrol ph uicontrol">Next</span>:<br/><div class="imagecenter"><img class="- topic/image image imagecenter" id="id__image_g2k_krc_5cc" src="../../../images/sdk/install_5.png" alt="install_5"/></div><br/><br/><div class="imagecenter"><img class="- topic/image image imagecenter" id="id__image_uq2_lrc_5cc" src="../../../images/sdk/install_6.png" alt="install_6"/></div><br/></div>
|
||
<div class="- topic/p p" data-ofbid="d161916e147__20250121171616">等待完成安装后,桌面会自动创建了一个 DebugServer 的图标:<br/><div class="imagecenter"><img class="- topic/image image imagecenter" id="id__image_g5q_mrc_5cc" src="../../../images/sdk/install_7.png" alt="install_7"/></div><br/></div>
|
||
</li></ol>
|
||
</li><li class="- topic/li li" data-ofbid="d161916e154__20250121171616">
|
||
<p class="- topic/p p" data-ofbid="d161916e156__20250121171616">将 AIC 调试器通过 USB-TypeC 连接 PC。</p>
|
||
<div class="- topic/p p" data-ofbid="d161916e159__20250121171616">成功识别后,AIC 调试器绿灯会亮起。<br/><div class="imagecenter"><img class="- topic/image image imagecenter" id="id__image_f5y_4rc_5cc" src="../../../images/sdk/run_1.png" alt="run_1"/></div><br/><br/><div class="imagecenter"><img class="- topic/image image imagecenter" id="id__image_xtg_prc_5cc" src="../../../images/sdk/cklink_detected.png" alt="cklink_detected"/></div><br/></div>
|
||
</li></ol></section><section class="- topic/section section" id="id__sdk" data-ofbid="id__sdk"><h2 class="- topic/title title sectiontitle">SDK 配置</h2>
|
||
<div class="- topic/p p" data-ofbid="d161916e172__20250121171616"><span class="- topic/ph ph">Luban-Lite</span> SDK 支持两种硬件接口进行调试,分别是 JTAG 和 SDMC 口。 为避免 GPIO 冲突,需要配置
|
||
<span class="+ topic/ph sw-d/filepath ph filepath">ddr_init.json</span> 和 <span class="+ topic/ph sw-d/filepath ph filepath">xxx_defconfig</span>。<div class="- topic/note note note note_note" id="id__note_glx_g3q_gdc" data-ofbid="id__note_glx_g3q_gdc"><span class="note__title">注:</span>
|
||
<p class="- topic/p p" data-ofbid="d161916e184__20250121171616">配置前,确保已经加载目标工程。</p>
|
||
</div></div>
|
||
<div class="- topic/p p" data-ofbid="d161916e188__20250121171616">根据接口的类型,选择相应的连接和配置操作流程:<ul class="- topic/ul ul" id="id__ul_fkp_33q_gdc" data-ofbid="id__ul_fkp_33q_gdc"><li class="- topic/li li" data-ofbid="d161916e191__20250121171616"><strong class="+ topic/ph hi-d/b ph b">使用 JTAG 口</strong>,配置 JTAG 接口的流程如下:<ol class="- topic/ol ol simple" id="id__ul_ejq_h3q_gdc" data-ofbid="id__ul_ejq_h3q_gdc"><li class="- topic/li li" data-ofbid="d161916e196__20250121171616">
|
||
<p class="- topic/p p" data-ofbid="d161916e198__20250121171616">运行下列命令:</p>
|
||
<pre class="+ topic/pre pr-d/codeblock pre codeblock language-c" id="id__codeblock_utp_m3q_gdc" data-ofbid="id__codeblock_utp_m3q_gdc">scons --menuconfig</pre>
|
||
</li><li class="- topic/li li" data-ofbid="d161916e204__20250121171616">
|
||
<p class="- topic/p p" data-ofbid="d161916e206__20250121171616">关闭 I2C 以及 Touch Panel</p>
|
||
<pre class="+ topic/pre pr-d/codeblock pre codeblock language-c" id="id__codeblock_gjw_m3q_gdc" data-ofbid="id__codeblock_gjw_m3q_gdc">Board options --->
|
||
[] Using i2c3
|
||
Drivers options --->
|
||
Peripheral --->
|
||
Touch Panel Support --->
|
||
Gt911 touch panel options --->
|
||
[] Using touch panel gt911</pre>
|
||
</li></ol><div class="- topic/p p" data-ofbid="d161916e212__20250121171616">使用 JTAG 口,需断开 CTP 触屏排线。<figure class="- topic/fig fig fignone" id="id__fig_gjq_h3q_gdc" data-ofbid="id__fig_gjq_h3q_gdc"><br/><div class="imagecenter"><img class="- topic/image image imagecenter" id="id__image_hjq_h3q_gdc" src="../../../images/sdk/ctp_disconnected.png" alt="CTP_disconnected"/></div><br/></figure></div>
|
||
</li><li class="- topic/li li" data-ofbid="d161916e219__20250121171616"><strong class="+ topic/ph hi-d/b ph b">使用 SD 调试 口</strong>
|
||
<ol class="- topic/ol ol" id="id__ol_bjd_p3q_gdc" data-ofbid="id__ol_bjd_p3q_gdc"><li class="- topic/li li" data-ofbid="d161916e224__20250121171616"> 打开
|
||
<span class="+ topic/ph sw-d/filepath ph filepath">target/<CPU>/<board>/pack/ddr_init.json</span>
|
||
,配置 <span class="+ topic/keyword pr-d/parmname keyword parmname">jtag_only</span> 和调试口引脚:<pre class="+ topic/pre pr-d/codeblock pre codeblock language-c" data-ofbid="d161916e232__20250121171616"><span class="hl-string">"jtag"</span>: {
|
||
<span class="hl-string">"jtag_only"</span>: <span class="hl-string">"1"</span>, <em class="hl-comment">// 1: Boot code stop in PBP after DDR init and jtag init</em>
|
||
<span class="hl-string">"main"</span>: {
|
||
<span class="hl-string">"jtag_id"</span>: <span class="hl-string">"0"</span>,
|
||
<em class="hl-comment">//"jtag_do_pin_cfg_reg": "0x187000A0", // PA8</em>
|
||
<em class="hl-comment">//"jtag_do_pin_cfg_val": "0x336",</em>
|
||
<em class="hl-comment">//"jtag_di_pin_cfg_reg": "0x187000A4", // PA9</em>
|
||
<em class="hl-comment">//"jtag_di_pin_cfg_val": "0x336",</em>
|
||
<em class="hl-comment">//"jtag_ms_pin_cfg_reg": "0x187000A8", // PA10</em>
|
||
<em class="hl-comment">//"jtag_ms_pin_cfg_val": "0x336",</em>
|
||
<em class="hl-comment">//"jtag_ck_pin_cfg_reg": "0x187000AC", // PA11</em>
|
||
<em class="hl-comment">//"jtag_ck_pin_cfg_val": "0x336",</em>
|
||
|
||
<span class="hl-string">"jtag_do_pin_cfg_reg"</span>: <span class="hl-string">"0x1870028C"</span>, <em class="hl-comment">// PC3</em>
|
||
<span class="hl-string">"jtag_do_pin_cfg_val"</span>: <span class="hl-string">"0x336"</span>,
|
||
<span class="hl-string">"jtag_di_pin_cfg_reg"</span>: <span class="hl-string">"0x18700284"</span>, <em class="hl-comment">// PC1</em>
|
||
<span class="hl-string">"jtag_di_pin_cfg_val"</span>: <span class="hl-string">"0x336"</span>,
|
||
<span class="hl-string">"jtag_ms_pin_cfg_reg"</span>: <span class="hl-string">"0x18700280"</span>, <em class="hl-comment">// PC0</em>
|
||
<span class="hl-string">"jtag_ms_pin_cfg_val"</span>: <span class="hl-string">"0x336"</span>,
|
||
<span class="hl-string">"jtag_ck_pin_cfg_reg"</span>: <span class="hl-string">"0x18700294"</span>, <em class="hl-comment">// PC5</em>
|
||
<span class="hl-string">"jtag_ck_pin_cfg_val"</span>: <span class="hl-string">"0x336"</span>,
|
||
},
|
||
},</pre>
|
||
</li><li class="- topic/li li" data-ofbid="d161916e235__20250121171616">配置接口:<ol class="- topic/ol ol simple" type="a" id="id__ul_rxr_k3q_gdc" data-ofbid="id__ul_rxr_k3q_gdc"><li class="- topic/li li" data-ofbid="d161916e238__20250121171616">
|
||
<p class="- topic/p p" data-ofbid="d161916e240__20250121171616">运行 <span class="+ topic/keyword sw-d/cmdname keyword cmdname">scons --menuconfig</span> 命令,打开配置界面。</p>
|
||
</li><li class="- topic/li li" data-ofbid="d161916e246__20250121171616">
|
||
<div class="- topic/p p" data-ofbid="d161916e248__20250121171616">关闭 SDMC1 选项。<pre class="+ topic/pre pr-d/codeblock pre codeblock language-c" data-ofbid="d161916e250__20250121171616">Board options --->
|
||
[] Using SDMC1</pre></div>
|
||
</li></ol></li></ol></li></ul></div>
|
||
</section><section class="- topic/section section" id="id__id6" data-ofbid="id__id6"><h2 class="- topic/title title sectiontitle">连接开发板</h2>
|
||
<ol class="- topic/ol ol simple" data-ofbid="d161916e258__20250121171616"><li class="- topic/li li" data-ofbid="d161916e259__20250121171616">
|
||
<p class="- topic/p p" data-ofbid="d161916e261__20250121171616">编译 SDK。</p>
|
||
</li><li class="- topic/li li" data-ofbid="d161916e264__20250121171616">
|
||
<p class="- topic/p p" data-ofbid="d161916e266__20250121171616">使用 AiBurn 烧录编译生成的镜像,详见<a class="- topic/xref xref" href="image_burn_and_config.html">配置烧录镜像</a>。</p>
|
||
</li><li class="- topic/li li" data-ofbid="d161916e273__20250121171616">
|
||
<p class="- topic/p p" data-ofbid="d161916e275__20250121171616">开发板连接串口、AIC-JTAG 和电源线。</p>
|
||
<figure class="- topic/fig fig fignone" id="id__id8" data-ofbid="id__id8"><br/><div class="imagecenter"><img class="- topic/image image imagecenter" id="id__image_m4b_s3q_gdc" src="../../../images/sdk/debug_jtag.png" alt="debug_jtag"/></div><br/><figcaption data-caption-side="bottom" class="- topic/title title figcapcenter"><span class="figtitleprefix fig--title-label">图<span class="fig--title-label-number"> 1</span><span class="fig--title-label-punctuation">. </span></span><span class="fig--title">开发板连接 JTAG 接口</span></figcaption></figure>
|
||
<figure class="- topic/fig fig fignone" id="id__id9" data-ofbid="id__id9"><br/><div class="imagecenter"><img class="- topic/image image imagecenter" id="id__image_ps2_s3q_gdc" src="../../../images/sdk/debug_SDMC.png" alt="debug_SDMC"/></div><br/><figcaption data-caption-side="bottom" class="- topic/title title figcapcenter"><span class="figtitleprefix fig--title-label">图<span class="fig--title-label-number"> 2</span><span class="fig--title-label-punctuation">. </span></span><span class="fig--title">开发板连接 SDMC 接口</span></figcaption></figure>
|
||
</li><li class="- topic/li li" data-ofbid="d161916e293__20250121171616">
|
||
<div class="- topic/p p" data-ofbid="d161916e295__20250121171616">使用 Tabby,打开调试串口。<ol class="- topic/ol ol" type="a" id="id__ol_kcp_3fr_3dc" data-ofbid="id__ol_kcp_3fr_3dc"><li class="- topic/li li" data-ofbid="d161916e298__20250121171616">打开选择页面。<div class="- topic/p p" data-ofbid="d161916e300__20250121171616">
|
||
<br/><div class="imagecenter"><img class="- topic/image image imagecenter" id="id__image_p3n_s3q_gdc" src="../../../images/sdk/tabby_open_serial-1.png" width="384" alt="tabby_open_serial-1"/></div><br/>
|
||
</div></li><li class="- topic/li li" data-ofbid="d161916e306__20250121171616">选择串口 COM 口。<div class="- topic/p p" data-ofbid="d161916e308__20250121171616">
|
||
<br/><div class="imagecenter"><img class="- topic/image image imagecenter" id="id__image_ut1_v3q_gdc" src="../../../images/sdk/tabby_open_serial-2.png" width="384" alt="tabby_open_serial-2"/></div><br/>
|
||
</div></li><li class="- topic/li li" data-ofbid="d161916e314__20250121171616">设置波特率,默认 115200。<div class="- topic/p p" data-ofbid="d161916e316__20250121171616">
|
||
<br/><div class="imagecenter"><img class="- topic/image image imagecenter" id="id__image_edy_c3q_gdc" src="../../../images/sdk/tabby_open_serial-3.png" width="384" alt="tabby_open_serial-3"/></div><br/>
|
||
</div><figure class="- topic/fig fig fignone" id="id__id13" data-ofbid="id__id13"><br/><div class="imagecenter"><img class="- topic/image image imagecenter" id="id__image_klf_w3q_gdc" src="../../../images/sdk/tabby_open_serial-4.png" width="384" alt="tabby_open_serial-4"/></div><br/><figcaption data-caption-side="bottom" class="- topic/title title figcapcenter"><span class="figtitleprefix fig--title-label">图<span class="fig--title-label-number"> 3</span><span class="fig--title-label-punctuation">. </span></span><span class="fig--title">打开成功</span></figcaption></figure></li></ol></div>
|
||
</li><li class="- topic/li li" data-ofbid="d161916e332__20250121171616">
|
||
<p class="- topic/p p" data-ofbid="d161916e334__20250121171616">将系统句柄放置在调试串口窗口,点击一下调试串口所在窗口。</p>
|
||
</li><li class="- topic/li li" data-ofbid="d161916e337__20250121171616">
|
||
<div class="- topic/p p" data-ofbid="d161916e339__20250121171616">在键盘上按住 <span class="+ topic/ph ui-d/uicontrol ph uicontrol">Ctrl +
|
||
C</span>,同时给开发板上电,串口打印如下:<pre class="+ topic/pre pr-d/codeblock pre codeblock language-c" id="id__codeblock_wmh_z3q_gdc" data-ofbid="id__codeblock_wmh_z3q_gdc">Pre-Boot Program ... (<span class="hl-number">2023</span>-<span class="hl-number">08</span>-<span class="hl-number">08</span> <span class="hl-number">11</span>:<span class="hl-number">29</span>:<span class="hl-number">35</span> <span class="hl-number">13</span>a563f)
|
||
No DDR info
|
||
Going to init DDR2. freq: <span class="hl-number">504</span>MHz
|
||
DDR2 initialized
|
||
<span class="hl-number">120186</span> <span class="hl-number">134875</span> <span class="hl-number">162258</span>
|
||
PBP done
|
||
|
||
tinySPL [Built on Aug <span class="hl-number">21</span> <span class="hl-number">2023</span> <span class="hl-number">17</span>:<span class="hl-number">12</span>:<span class="hl-number">58</span>]
|
||
Boot device = <span class="hl-number">5</span>(BD_SPINAND)
|
||
nand read speed: <span class="hl-number">1346320</span> byte, <span class="hl-number">76998</span> us -> <span class="hl-number">17075</span> KB/s
|
||
aic@tinySPL #
|
||
aic@tinySPL #</pre></div>
|
||
</li><li class="- topic/li li" data-ofbid="d161916e347__20250121171616">
|
||
<p class="- topic/p p" data-ofbid="d161916e349__20250121171616">运行 DebugServer,首次运行会有安全警告,点击<span class="+ topic/ph ui-d/uicontrol ph uicontrol">允许访问</span></p>
|
||
<figure class="- topic/fig fig fignone" id="id__fig_yfw_w3q_gdc" data-ofbid="id__fig_yfw_w3q_gdc"><br/><div class="imagecenter"><img class="- topic/image image imagecenter" id="id__image_zfw_w3q_gdc" src="../../../images/sdk/run_0.png" alt="run_0"/></div><br/></figure>
|
||
</li><li class="- topic/li li" data-ofbid="d161916e359__20250121171616">
|
||
<p class="- topic/p p" data-ofbid="d161916e361__20250121171616">配置 <span class="+ topic/ph ui-d/menucascade ph menucascade"><span class="+ topic/ph ui-d/uicontrol ph uicontrol">DebugServer Setting</span><abbr> > </abbr><span class="+ topic/ph ui-d/uicontrol ph uicontrol">Setting</span><abbr> > </abbr><span class="+ topic/ph ui-d/uicontrol ph uicontrol">Target Setting</span></span>。</p>
|
||
<figure class="- topic/fig fig fignone" id="id__fig_fk2_x3q_gdc" data-ofbid="id__fig_fk2_x3q_gdc"><br/><div class="imagecenter"><img class="- topic/image image imagecenter" id="id__image_gk2_x3q_gdc" src="../../../images/sdk/run_2.png" alt="run_2"/></div><br/></figure>
|
||
</li><li class="- topic/li li" data-ofbid="d161916e377__20250121171616">
|
||
<p class="- topic/p p" data-ofbid="d161916e379__20250121171616">配置 DebugServer 的端口号,例如 3333。</p>
|
||
<figure class="- topic/fig fig fignone" id="id__fig_r4j_x3q_gdc" data-ofbid="id__fig_r4j_x3q_gdc"><br/><div class="imagecenter"><img class="- topic/image image imagecenter" id="id__image_s4j_x3q_gdc" src="../../../images/sdk/debug_server_cfg_port.png" alt="debug_server1"/></div><br/></figure>
|
||
</li><li class="- topic/li li" data-ofbid="d161916e388__20250121171616">
|
||
<div class="- topic/p p" data-ofbid="d161916e390__20250121171616">启动仿真器连接,显示本地 IP 及已配置的端口(3333),则表示连接成功:<figure class="- topic/fig fig fignone" id="id__fig_dpp_x3q_gdc" data-ofbid="id__fig_dpp_x3q_gdc"><br/><div class="imagecenter"><img class="- topic/image image imagecenter" id="id__image_epp_x3q_gdc" src="../../../images/sdk/connected.png" alt="connected"/></div><br/></figure></div>
|
||
</li><li class="- topic/li li" data-ofbid="d161916e397__20250121171616">
|
||
<p class="- topic/p p" data-ofbid="d161916e399__20250121171616">连接成功后,即可通过 IDE 或命令行进行调试。</p>
|
||
</li></ol>
|
||
</section></div><article class="- topic/topic topic nested1" aria-labelledby="ariaid-title2" id="topic_n3c_cjq_gdc"><span class="edit-link" style="font-size:12px; opacity:0.6; text-align:right; vertical-align:middle"><a target="_blank" href="http://172.16.35.88/tasks/jdssno1uvvbf2mltu9kb9v3if05d5gopuakboe8hlud18rma/edit/F:/aicdita/aicdita-cn/topics/sdk/advanced/gdb.dita">Edit online</a></span><h2 class="- topic/title title topictitle2" id="ariaid-title2">调试</h2><div class="- topic/body body"><section class="- topic/section section" id="topic_n3c_cjq_gdc__id7" data-ofbid="topic_n3c_cjq_gdc__id7"><h3 class="- topic/title title sectiontitle">Windows 下使用 Eclipse 调试</h3>
|
||
|
||
<p class="- topic/p p" data-ofbid="d161916e432__20250121171616">采用 Eclipse 配合 GDB 的调试方案,方便用户上手:</p>
|
||
<div class="- topic/note note note note_note" id="topic_n3c_cjq_gdc__note_fnp_djq_gdc" data-ofbid="topic_n3c_cjq_gdc__note_fnp_djq_gdc"><span class="note__title">注:</span>
|
||
<p class="- topic/p p" data-ofbid="d161916e437__20250121171616">使用 Eclipse 调试前,需先完成 <a class="- topic/xref xref" href="../env/eclipse.html">Eclipse</a> 工程导入及编译。</p>
|
||
</div>
|
||
<ol class="- topic/ol ol simple" id="topic_n3c_cjq_gdc__ul_pyy_1jq_gdc" data-ofbid="topic_n3c_cjq_gdc__ul_pyy_1jq_gdc"><li class="- topic/li li" data-ofbid="d161916e446__20250121171616">
|
||
<p class="- topic/p p" data-ofbid="d161916e448__20250121171616">配置 Debug Configurations - Main</p>
|
||
<figure class="- topic/fig fig fignone" id="topic_n3c_cjq_gdc__fig_qyy_1jq_gdc" data-ofbid="topic_n3c_cjq_gdc__fig_qyy_1jq_gdc"><br/><div class="imagecenter"><img class="- topic/image image imagecenter" id="topic_n3c_cjq_gdc__image_ryy_1jq_gdc" src="../../../images/eclipse/eclipse_gdb_config.png" width="576" alt="eclipse_gdb_config"/></div><br/></figure>
|
||
</li><li class="- topic/li li" data-ofbid="d161916e456__20250121171616">
|
||
<p class="- topic/p p" data-ofbid="d161916e458__20250121171616">配置 Debug Configurations - Debugger</p>
|
||
<figure class="- topic/fig fig fignone" id="topic_n3c_cjq_gdc__fig_tyy_1jq_gdc" data-ofbid="topic_n3c_cjq_gdc__fig_tyy_1jq_gdc"><br/><div class="imagecenter"><img class="- topic/image image imagecenter" id="topic_n3c_cjq_gdc__image_uyy_1jq_gdc" src="../../../images/eclipse/eclipse_gdb_config2.png" alt="eclipse_gdb_config2"/></div><br/></figure>
|
||
</li><li class="- topic/li li" data-ofbid="d161916e466__20250121171616">
|
||
<p class="- topic/p p" data-ofbid="d161916e468__20250121171616">Eclipse 进入 Debug 模式</p>
|
||
<figure class="- topic/fig fig fignone" id="topic_n3c_cjq_gdc__fig_wyy_1jq_gdc" data-ofbid="topic_n3c_cjq_gdc__fig_wyy_1jq_gdc"><br/><div class="imagecenter"><img class="- topic/image image imagecenter" id="topic_n3c_cjq_gdc__image_xyy_1jq_gdc" src="../../../images/eclipse/eclipse_into_debug_mode.png" alt="eclipse_into_debug_mode"/></div><br/></figure>
|
||
</li></ol>
|
||
<p class="- topic/p p" data-ofbid="d161916e477__20250121171616">Eclipse 调试常用快捷键:</p>
|
||
<ul class="- topic/ul ul arabic simple" id="topic_n3c_cjq_gdc__ol_zyy_1jq_gdc" data-ofbid="topic_n3c_cjq_gdc__ol_zyy_1jq_gdc"><li class="- topic/li li" data-ofbid="d161916e482__20250121171616">
|
||
<p class="- topic/p p" data-ofbid="d161916e484__20250121171616">F5:单步进入,进入函数内部</p>
|
||
</li><li class="- topic/li li" data-ofbid="d161916e487__20250121171616">
|
||
<p class="- topic/p p" data-ofbid="d161916e489__20250121171616">F6:下一行代码,逐行执行</p>
|
||
</li><li class="- topic/li li" data-ofbid="d161916e492__20250121171616">
|
||
<p class="- topic/p p" data-ofbid="d161916e494__20250121171616">F7:返回值调用处的下一行代码</p>
|
||
</li><li class="- topic/li li" data-ofbid="d161916e497__20250121171616">
|
||
<p class="- topic/p p" data-ofbid="d161916e499__20250121171616">F8:继续运行,跳过当前中断点</p>
|
||
</li><li class="- topic/li li" data-ofbid="d161916e502__20250121171616">
|
||
<p class="- topic/p p" data-ofbid="d161916e504__20250121171616">F11:调试并启动程序</p>
|
||
</li></ul>
|
||
</section><section class="- topic/section section" id="topic_n3c_cjq_gdc__section_bqt_3jq_gdc" data-ofbid="topic_n3c_cjq_gdc__section_bqt_3jq_gdc"><h3 class="- topic/title title sectiontitle">Linux 下使用 GDB 调试</h3>
|
||
|
||
<div class="- topic/note note note note_note" id="topic_n3c_cjq_gdc__note_oks_jjq_gdc" data-ofbid="topic_n3c_cjq_gdc__note_oks_jjq_gdc"><span class="note__title">注:</span>
|
||
<p class="- topic/p p" data-ofbid="d161916e515__20250121171616">在 Linux 下调试前,需确保与 DebugServer 所在的 Windows 系统可以 ping 通。</p>
|
||
</div>
|
||
<ol class="- topic/ol ol simple" id="topic_n3c_cjq_gdc__ul_m4c_bjq_gdc" data-ofbid="topic_n3c_cjq_gdc__ul_m4c_bjq_gdc"><li class="- topic/li li" data-ofbid="d161916e520__20250121171616">
|
||
<div class="- topic/p p" data-ofbid="d161916e522__20250121171616">在 SDK 根目录编写 <span class="+ topic/ph sw-d/filepath ph filepath">jtag-debug.sh</span>
|
||
脚本:<pre class="+ topic/pre pr-d/codeblock pre codeblock language-c" id="topic_n3c_cjq_gdc__codeblock_ztf_kjq_gdc" data-ofbid="topic_n3c_cjq_gdc__codeblock_ztf_kjq_gdc">$cat jtag-debug.sh
|
||
|
||
target remote <span class="hl-number">172.16</span>.<span class="hl-number">31.141</span>:<span class="hl-number">3333</span> #此处 IP 为 DebugServer 运行 PC 的 IP,端口为 DebugServer 配置的端口
|
||
|
||
load ./output/d13x_demo88-nor_rt-thread_helloworld/images/d13x.elf # 对应项目的 elf 文件
|
||
file ./output/d13x_demo88-nor_rt-thread_helloworld/images/d13x.elf</pre></div>
|
||
</li><li class="- topic/li li" data-ofbid="d161916e530__20250121171616">
|
||
<div class="- topic/p p" data-ofbid="d161916e532__20250121171616">在 SDK 根目录下运行 GDB
|
||
:<pre class="+ topic/pre pr-d/codeblock pre codeblock language-c" id="topic_n3c_cjq_gdc__codeblock_av4_kjq_gdc" data-ofbid="topic_n3c_cjq_gdc__codeblock_av4_kjq_gdc">./toolchain/bin/riscv64-unknown-elf-gdb -x ./jtag-debug.sh
|
||
GNU gdb (Xuantie-<span class="hl-number">900</span> elf newlib gcc Toolchain V2.<span class="hl-number">6.1</span> B-<span class="hl-number">20220906</span>) <span class="hl-number">10.0</span>.<span class="hl-number">50.20200724</span>-git
|
||
Copyright (C) <span class="hl-number">2020</span> Free Software Foundation, Inc.
|
||
License GPLv3+: GNU GPL version <span class="hl-number">3</span> or later <http:<em class="hl-comment">//gnu.org/licenses/gpl.html></em>
|
||
This is free software: you are free to change and redistribute it.
|
||
There is NO WARRANTY, to the extent permitted by law.
|
||
Type <span class="hl-string">"show copying"</span> and <span class="hl-string">"show warranty"</span> <strong class="hl-keyword">for</strong> details.
|
||
This GDB was configured as <span class="hl-string">"--host=x86_64-pc-linux-gnu --target=riscv64-unknown-elf"</span>.
|
||
Type <span class="hl-string">"show configuration"</span> <strong class="hl-keyword">for</strong> configuration details.
|
||
For bug reporting instructions, please see:
|
||
<https:<em class="hl-comment">//www.gnu.org/software/gdb/bugs/>.</em>
|
||
Find the GDB manual and other documentation resources online at:
|
||
<http:<em class="hl-comment">//www.gnu.org/software/gdb/documentation/>.</em>
|
||
|
||
For help, type <span class="hl-string">"help"</span>.
|
||
Type <span class="hl-string">"apropos word"</span> to search <strong class="hl-keyword">for</strong> commands related to <span class="hl-string">"word"</span>.
|
||
warning: No executable has been specified and target does not support
|
||
determining executable automatically. Try using the <span class="hl-string">"file"</span> command.
|
||
<span class="hl-number">0x0000000000106b3a</span> in ?? ()
|
||
Loading section .text, size <span class="hl-number">0xa4780</span> lma <span class="hl-number">0x40000100</span>
|
||
sectio--Type <RET> <strong class="hl-keyword">for</strong> more, q to quit, c to <strong class="hl-keyword">continue</strong> without paging--
|
||
--Type <RET> <strong class="hl-keyword">for</strong> more, q to quit, c to <strong class="hl-keyword">continue</strong> without paging--
|
||
section progress: <span class="hl-number">41.5</span>%, total progress: inf%
|
||
section progress: <span class="hl-number">46.2</span>%, total progress: inf%
|
||
section progress: <span class="hl-number">50.4</span>%, total progress: inf%
|
||
section progress: <span class="hl-number">53.9</span>%, total progress: inf%
|
||
section progress: <span class="hl-number">63.3</span>%, total--Type <RET> <strong class="hl-keyword">for</strong> more, q to quit, c to <strong class="hl-keyword">continue</strong> without paging--
|
||
section progress: <span class="hl-number">93.5</span>%, total progress: inf%--Type <RET> <strong class="hl-keyword">for</strong> more, q to quit, c to <strong class="hl-keyword">continue</strong> without paging--
|
||
section progress: <span class="hl-number">100.0</span>%, total progress: inf%
|
||
Loading section .rodata, size <span class="hl-number">0x843b8</span> lma <span class="hl-number">0x400a4880</span>
|
||
section progress: <span class="hl-number">27.7</span>%, total progress: i--Type <RET> <strong class="hl-keyword">for</strong> more, q to quit, c to <strong class="hl-keyword">continue</strong> without paging--
|
||
sect--Type <RET> <strong class="hl-keyword">for</strong> more, q to quit, c to <strong class="hl-keyword">continue</strong> without paging--
|
||
section progress: <span class="hl-number">100.0</span>%, total progress: inf%
|
||
Loading section .data, size <span class="hl-number">0x32e0</span> lma <span class="hl-number">0x40128c40</span>
|
||
--Type <RET> <strong class="hl-keyword">for</strong> more, q to quit, c to <strong class="hl-keyword">continue</strong> without paging--
|
||
section progress: <span class="hl-number">100.0</span>%, total progress: inf%
|
||
Start address <span class="hl-number">0x0000000040000100</span>, load size <span class="hl-number">1228312</span>
|
||
Transfer rate: <span class="hl-number">107</span> KB/sec, <span class="hl-number">3988</span> bytes/write.</pre></div>
|
||
<p class="- topic/p p" data-ofbid="d161916e537__20250121171616">显示以上信息,表示已经进入 GDB 调试模式。</p>
|
||
</li></ol>
|
||
</section></div></article></article></main></div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</div>
|
||
|
||
<nav role="navigation" id="wh_topic_toc" aria-label="On this page" class="col-lg-2 d-none d-lg-block navbar d-print-none">
|
||
<div id="wh_topic_toc_content">
|
||
|
||
<div class=" wh_topic_toc "><div class="wh_topic_label">在本页上</div><ul><li class="section-item"><div class="section-title"><a href="#id__id2" data-tocid="id__id2">准备工作</a></div></li><li class="section-item"><div class="section-title"><a href="#id__sdk" data-tocid="id__sdk">SDK 配置</a></div></li><li class="section-item"><div class="section-title"><a href="#id__id6" data-tocid="id__id6">连接开发板</a></div></li><li class="topic-item"><a href="#topic_n3c_cjq_gdc" data-tocid="topic_n3c_cjq_gdc">调试</a><ul><li class="section-item"><div class="section-title"><a href="#topic_n3c_cjq_gdc__id7" data-tocid="topic_n3c_cjq_gdc__id7">Windows 下使用 Eclipse 调试</a></div></li><li class="section-item"><div class="section-title"><a href="#topic_n3c_cjq_gdc__section_bqt_3jq_gdc" data-tocid="topic_n3c_cjq_gdc__section_bqt_3jq_gdc">Linux 下使用 GDB 调试</a></div></li></ul></li></ul></div>
|
||
|
||
</div>
|
||
</nav>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
|
||
|
||
</div>
|
||
<footer class="navbar navbar-default wh_footer">
|
||
<div class=" footer-container mx-auto ">
|
||
<title>footer def</title>
|
||
<style><!--
|
||
|
||
.p1 {
|
||
font-family: FangZhengShuSong, Times, serif;
|
||
}
|
||
.p2 {
|
||
font-family: Arial, Helvetica, sans-serif;
|
||
}
|
||
.p3 {
|
||
font-family: "Lucida Console", "Courier New", monospace;
|
||
}
|
||
|
||
--></style>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<div class="webhelp.fragment.footer">
|
||
<p class="p1">Copyright © 2019-2024 广东匠芯创科技有限公司. All rights reserved.</p>
|
||
</div><div>
|
||
<div class="generation_time">
|
||
Update Time: 2025-01-21
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</footer>
|
||
|
||
<div id="go2top" class="d-print-none">
|
||
<span class="oxy-icon oxy-icon-up"></span>
|
||
</div>
|
||
|
||
<div id="modal_img_large" class="modal">
|
||
<span class="close oxy-icon oxy-icon-remove"></span>
|
||
<div id="modal_img_container"></div>
|
||
<div id="caption"></div>
|
||
</div>
|
||
|
||
|
||
<script src="${pd}/publishing/publishing-styles-AIC-template/js/custom.js" defer="defer"></script>
|
||
|
||
|
||
</body>
|
||
</html> |