2025-04-23 17:54:31 +08:00
<!DOCTYPE html> < html xmlns = "http://www.w3.org/1999/xhtml" xml:lang = "zh-cn" lang = "zh-cn" data-whc_version = "26.1" >
2025-07-22 11:15:46 +08:00
< 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 = "DC.rights.owner" content = "(C) 版权 2025" / > < meta name = "copyright" content = "(C) 版权 2025" / > < meta name = "generator" content = "DITA-OT" / > < meta name = "DC.type" content = "concept" / > < meta name = "description" content = "插件安装 如需在 VSCode 中进行 C/C++ 语言的调试,必须先安装插件 C/C++,如下所示: 在 PC 联网的条件下,直接点击 Install 完成安装,安装完成后的界面示例如下。 在 PC 未联网的条件下,则需要按照以下步骤,手动完成安装: 前往 VSCode 官网下载 C/C++ 插件的安装文件插件文件的后缀名为 .vsix 。 打开 VSCode 终端后,选择 Extensions ..." / > < meta name = "DC.relation" content = "../../../topics/sdk/env/vscode.html" / > < meta name = "DC.relation" content = "../../../topics/sdk/env/vscode.html" / > < meta name = "DC.relation" content = "../../../topics/sdk/env/lite-compile-vscode-extension.html" / > < meta name = "DC.contributor" content = "yan.wang" / > < meta name = "DC.contributor" content = "yan.wang" / > < meta name = "DC.date.modified" content = "2025-05-16" / > < meta name = "DC.format" content = "HTML5" / > < meta name = "DC.identifier" content = "lite-compile-vscode-cmd" / >
< title > 使用命令行< / title > <!-- Generated with build number 2025051600. --> < meta name = "wh-path2root" content = "../../../" / > < meta name = "wh-toc-id" content = "lite-compile-vscode-cmd-d3752e555" / > < meta name = "wh-source-relpath" content = "topics/sdk/env/lite-compile-vscode-cmd.dita" / > < meta name = "wh-out-relpath" content = "topics/sdk/env/lite-compile-vscode-cmd.html" / >
2025-04-23 17:54:31 +08:00
< link rel = "stylesheet" type = "text/css" href = "../../../webhelp/app/commons.css?buildId=2024041900" / >
< link rel = "stylesheet" type = "text/css" href = "../../../webhelp/app/topic.css?buildId=2024041900" / >
2025-07-22 11:15:46 +08:00
< script src = "../../../webhelp/app/options/properties.js?buildId=20250519091401" > < / script >
2025-04-23 17:54:31 +08:00
< script src = "../../../webhelp/app/localization/strings.js?buildId=2024041900" > < / script >
2025-07-22 11:15:46 +08:00
< script src = "../../../webhelp/app/search/index/keywords.js?buildId=20250519091401" > < / script >
2025-04-23 17:54:31 +08:00
< script defer = "defer" src = "../../../webhelp/app/commons.js?buildId=2024041900" > < / script >
< script defer = "defer" src = "../../../webhelp/app/topic.js?buildId=2024041900" > < / script >
< link rel = "stylesheet" type = "text/css" href = "../../../webhelp/template/css/aic-styles-web-internal.css?buildId=2024041900" / > < link rel = "stylesheet" type = "text/css" href = "../../../webhelp/template/css/notes.css?buildId=2024041900" / > < link rel = "stylesheet" type = "text/css" href = "../../../webhelp/template/css/aic-common.css?buildId=2024041900" / > < link rel = "stylesheet" type = "text/css" href = "../../../webhelp/template/css/aic-images.css?buildId=2024041900" / > < link rel = "stylesheet" type = "text/css" href = "../../../webhelp/template/css/footnote.css?buildId=2024041900" / > < link rel = "stylesheet" type = "text/css" href = "../../../webhelp/template/css/aic-highlight-changes.css?buildId=2024041900" / > < link rel = "stylesheet" type = "text/css" href = "../../../webhelp/template/css/search-in-header.css?buildId=2024041900" / > < link rel = "stylesheet" type = "text/css" href = "../../../webhelp/template/css/topic-body-list.css?buildId=2024041900" / > < / head >
< body id = "lite-compile-vscode-cmd" 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 xmlns:whc = "http://www.oxygenxml.com/webhelp/components" 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 = "https://www.artinchip.com" class = " wh_logo d-none d-sm-block " > < img src = "../../../company-logo.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 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 >
< / div >
< / header >
< 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/env/sdk-compile.html" > SDK 编译< / a > < div class = "wh-tooltip" > < p class = "shortdesc" > 介绍不同编译环境下 SDK 的详细编译流程。< / p > < / div > < / div > < / div > < / li > < li > < div class = "topicref" data-id = "id" > < div class = "title" > < a href = "../../../topics/sdk/env/vscode.html" > VSCode< / a > < / div > < / div > < / li > < li class = "active" > < div class = "topicref" data-id = "lite-compile-vscode-cmd" > < div class = "title" > < a href = "../../../topics/sdk/env/lite-compile-vscode-cmd.html" > 使用命令行< / a > < div class = "wh-tooltip" > < p class = "shortdesc" > < / p > < / div > < / 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/env/vscode.html" title = "VSCode" aria-label = "上一主题: VSCode" rel = "prev" > < / a > < / span >
2025-07-22 11:15:46 +08:00
< span class = "navnext" > < a class = "- topic/link link" href = "../../../topics/sdk/env/lite-compile-vscode-extension.html" title = "使用 Extension 工具" aria-label = "下一主题: 使用 Extension 工具" rel = "next" > < / a > < / span > < / span > < / div >
2025-04-23 17:54:31 +08:00
< 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" >
2025-07-22 11:15:46 +08:00
< 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-d3752e463" 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-d3752e463-link" > 修订记录< / a > < / div > < / div > < / li > < li role = "treeitem" aria-expanded = "true" > < div data-tocid = "id-d3752e480" class = "topicref" data-id = "id" data-state = "expanded" > < span role = "button" tabindex = "0" aria-labelledby = "button-collapse-action id-d3752e480-link" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/env/sdk-compile.html" id = "id-d3752e480-link" > SDK 编译< / a > < div class = "wh-tooltip" > < p class = "shortdesc" > 介绍不同编译环境下 SDK 的详细编译流程。< / p > < / div > < / div > < / div > < ul role = "group" class = "navbar-nav nav-list" > < li role = "treeitem" aria-expanded = "false" > < div data-tocid = "id-d3752e497" class = "topicref" data-id = "id" data-state = "not-ready" > < span role = "button" tabindex = "0" aria-labelledby = "button-expand-action id-d3752e497-link" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/env/sourcecode.html" id = "id-d3752e497-link" > 准备代码< / a > < / div > < / div > < / li > < li role = "treeitem" > < div data-tocid = "id-d3752e525" class = "topicref" data-id = "id" data-state = "leaf" > < span role = "button" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/env/windows.html" id = "id-d3752e525-link" > Windows< / a > < / div > < / div > < / li > < li role = "treeitem" aria-expanded = "true" > < div data-tocid = "id-d3752e541" class = "topicref" data-id = "id" data-state = "expanded" > < span role = "button" tabindex = "0" aria-labelledby = "button-collapse-action id-d3752e541-link" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/env/vscode.html" id = "id-d3752e541-link" > VSCode< / a > < / div > < / div > < ul role = "group" class = "navbar-nav nav-list" > < li role = "treeitem" class = "active" > < div data-tocid = "lite-compile-vscode-cmd-d3752e555" class = "topicref" data-id = "lite-compile-vscode-cmd" data-state = "leaf" > < span role = "button" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/env/lite-compile-vscode-cmd.html" id = "lite-compile-vscode-cmd-d3752e555-link" > 使用命令行< / a > < div class = "wh-tooltip" > < p class = "shortdesc" > < / p > < / div > < / div > < / div > < / li > < li role = "treeitem" > < div data-tocid = "lite-compile-vscode-extension-d3752e571" class = "topicref" data-id = "lite-compile-vscode-extension" data-state = "leaf" > < span role = "button" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/env/lite-compile-vscode-extension.html" id = "lite-compile-vscode-extension-d3752e571-link" > 使用 Extension 工具< / a > < div class = "wh-tooltip" > < p class = "shortdesc" > < / p > < / div > < / div > < / div > < / li > < / ul > < / li > < li role = "treeitem" > < div data-tocid = "id-d3752e589" class = "topicref" data-id = "id" data-state = "leaf" > < span role = "button" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/env/ubuntu2004.html" id = "id-d3752e589-link" > Ubuntu< / a > < / div > < / div > < / li > < / ul > < / li > < li role = "treeitem" aria-expanded = "false" > < div data-tocid = "id-d3752e604" class = "topicref" data-id = "id" data-state = "not-ready" > < span role = "button" tabindex = "0" aria-labelledby = "button-expand-action id-d3752e604-link" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/advanced/sdk-usage.html" id = "id-d3752e604-link" > 使用指南< / a > < div class = "wh-tooltip" > < p class = "shortdesc" > 命令详解,编译选项,镜像和分区配置,添加应用和驱动等的详细使用说明。< / p > < / div > < / div > < / div > < / li > < li role = "treeitem" aria-expanded = "false" > < div data-tocid = "concept_rcx_czh_pzb-d3752e1004" class = "topicref" data-id = "concept_rcx_czh_pzb" d
2025-04-23 17:54:31 +08:00
< / 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 concept/concept topic concept" 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://aicdocco/taskstopics/sdk/env/lite-compile-vscode-cmd.dita" > Edit online< / a > < / span > < h1 class = "- topic/title title topictitle1" id = "ariaid-title1" > 使用命令行< / h1 >
2025-07-22 11:15:46 +08:00
< div class = "date inPage" > 16 May 2025< / div > < div style = "color: gray;" >
2025-04-23 17:54:31 +08:00
Read time: 2 minute(s)
< / div >
< div class = "- topic/body concept/conbody body conbody" > < p class = "- topic/shortdesc shortdesc" > < / p >
< section class = "- topic/section section" id = "lite-compile-vscode-cmd__section_x2x_4lp_wcc" data-ofbid = "lite-compile-vscode-cmd__section_x2x_4lp_wcc" > < h2 class = "- topic/title title sectiontitle" > 插件安装< / h2 >
2025-07-22 11:15:46 +08:00
< p class = "- topic/p p section" data-ofbid = "d53495e35__20250519091507" > 如需在 VSCode 中进行 C/C++ 语言的调试,必须先安装插件 C/C++,如下所示: < / p >
2025-04-23 17:54:31 +08:00
< ul class = "- topic/ul ul" id = "lite-compile-vscode-cmd__ul_hg5_tcw_rcc" data-ofbid = "lite-compile-vscode-cmd__ul_hg5_tcw_rcc" >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d53495e40__20250519091507" >
< div class = "- topic/p p section" data-ofbid = "d53495e42__20250519091507" > 在 PC 联网的条件下,直接点击 < span class = "+ topic/ph ui-d/uicontrol ph uicontrol" > Install< / span >
2025-04-23 17:54:31 +08:00
完成安装,安装完成后的界面示例如下。< br / > < div class = "imagecenter" > < img class = "- topic/image image imagecenter" id = "lite-compile-vscode-cmd__image_fyw_5t4_rcc" src = "../../../images/env/vscode_plugin.png" width = "384" alt = "vscode_plugin" / > < / div > < br / > < / div >
< / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d53495e54__20250519091507" >
< div class = "- topic/p p section" data-ofbid = "d53495e56__20250519091507" > 在 PC 未联网的条件下,则需要按照以下步骤,手动完成安装: < ol class = "- topic/ol ol arabic simple" id = "lite-compile-vscode-cmd__ol_gyw_5t4_rcc" data-ofbid = "lite-compile-vscode-cmd__ol_gyw_5t4_rcc" >
< li class = "- topic/li li" data-ofbid = "d53495e60__20250519091507" >
< p class = "- topic/p p" data-ofbid = "d53495e62__20250519091507" > 前往 VSCode 官网下载 C/C++ 插件的安装文件插件文件的后缀名为 < span class = "+ topic/ph sw-d/filepath ph filepath" > .vsix< / span >
2025-04-23 17:54:31 +08:00
。< / p >
< / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d53495e69__20250519091507" >
< p class = "- topic/p p" data-ofbid = "d53495e71__20250519091507" > 打开 VSCode 终端后,选择 < span class = "+ topic/ph ui-d/menucascade ph menucascade" > < span class = "+ topic/ph ui-d/uicontrol ph uicontrol" > Extensions< / span > < abbr > > < / abbr > < span class = "+ topic/ph ui-d/uicontrol ph uicontrol" > More < / span > < abbr > > < / abbr > < span class = "+ topic/ph ui-d/uicontrol ph uicontrol" > Install from VSIX< / span > < / span > ,如图所示:< / p >
2025-04-23 17:54:31 +08:00
< / li >
< / ol > < figure class = "- topic/fig fig fignone" id = "lite-compile-vscode-cmd__fig_wdw_mkb_w2c" data-ofbid = "lite-compile-vscode-cmd__fig_wdw_mkb_w2c" >
< br / > < div class = "imagecenter" > < img class = "- topic/image image imagecenter" id = "lite-compile-vscode-cmd__image_hyw_5t4_rcc" src = "../../../images/env/vscode_plugin_local.png" width = "480" alt = "vscode_plugin_local" / > < / div > < br / >
< / figure >
< / div >
< / li >
< / ul >
< / section >
< section class = "- topic/section section" id = "lite-compile-vscode-cmd__section_r2w_tlp_wcc" data-ofbid = "lite-compile-vscode-cmd__section_r2w_tlp_wcc" > < h2 class = "- topic/title title sectiontitle" > 打开工程文件< / h2 >
< ol class = "- topic/ol ol" id = "lite-compile-vscode-cmd__ol_utc_dzz_zcc" data-ofbid = "lite-compile-vscode-cmd__ol_utc_dzz_zcc" >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d53495e107__20250519091507" > 选择以下任意方式打开一个文件夹目录:< ul class = "- topic/ul ul" id = "lite-compile-vscode-cmd__ul_n13_dzz_zcc" data-ofbid = "lite-compile-vscode-cmd__ul_n13_dzz_zcc" >
< li class = "- topic/li li" data-ofbid = "d53495e111__20250519091507" > 在菜单栏中,选择 < span class = "+ topic/ph ui-d/menucascade ph menucascade" > < span class = "+ topic/ph ui-d/uicontrol ph uicontrol" > File< / span > < abbr > > < / abbr > < span class = "+ topic/ph ui-d/uicontrol ph uicontrol" > Open Folder...< / span > < / span > < / li >
< li class = "- topic/li li" data-ofbid = "d53495e122__20250519091507" > 在 VSCode 的编辑视图中,选择 < span class = "+ topic/ph ui-d/uicontrol ph uicontrol" > Start< / span > 区域的 < span class = "+ topic/ph ui-d/uicontrol ph uicontrol" > Open
Folder...< / span > < div class = "- topic/p p" data-ofbid = "d53495e129__20250519091507" >
2025-04-23 17:54:31 +08:00
< figure class = "- topic/fig fig fignone" id = "lite-compile-vscode-cmd__fig_xdw_mkb_w2c" data-ofbid = "lite-compile-vscode-cmd__fig_xdw_mkb_w2c" >
< br / > < div class = "imagecenter" > < img class = "- topic/image image imagecenter" id = "lite-compile-vscode-cmd__image_iyw_5t4_rcc" src = "../../../images/env/vscode_open_folder.png" width = "480" alt = "vscode_open_folder" / > < / div > < br / >
< / figure >
< / div > < / li >
< / ul > < / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d53495e142__20250519091507" >
< div class = "- topic/p p" data-ofbid = "d53495e144__20250519091507" > 在弹出的文件夹浏览窗口中选择 < span class = "- topic/ph ph" > Luban-Lite< / span >
2025-04-23 17:54:31 +08:00
根目录,并点击< span class = "+ topic/ph ui-d/uicontrol ph uicontrol" > 选择文件夹< / span > : < figure class = "- topic/fig fig fignone" id = "lite-compile-vscode-cmd__fig_ydw_mkb_w2c" data-ofbid = "lite-compile-vscode-cmd__fig_ydw_mkb_w2c" >
< br / > < div class = "imagecenter" > < img class = "- topic/image image imagecenter" id = "lite-compile-vscode-cmd__image_jyw_5t4_rcc" src = "../../../images/env/vscode_open_lite.png" width = "480" alt = "vscode_open_lite" / > < / div > < br / >
< / figure > < / div >
2025-07-22 11:15:46 +08:00
< p class = "- topic/p p" data-ofbid = "d53495e161__20250519091507" > VSCode
插件在打开一个文件夹时会自动识别
Luban Lite SDK
并显示出对应的图标和按钮。< / p >
2025-04-23 17:54:31 +08:00
< div class = "- topic/note note note note_note" id = "lite-compile-vscode-cmd__note_x15_j21_w2c" data-ofbid = "lite-compile-vscode-cmd__note_x15_j21_w2c" > < span class = "note__title" > 注:< / span > Luban Lite 仓库中部分工具都没有可执行权限,无法通过共享的目录执行,因此在 Windows
环境中,勿直接打开通过 SAMBA 共享的 Linux Server 目录。在 Windows 上 checkout
的仓库工具则不受此限制。< / div >
< / li >
< / ol >
< / section >
< section class = "- topic/section section" id = "lite-compile-vscode-cmd__section_qwh_ylp_wcc" data-ofbid = "lite-compile-vscode-cmd__section_qwh_ylp_wcc" > < h2 class = "- topic/title title sectiontitle" > 编译< / h2 >
2025-07-22 11:15:46 +08:00
< div class = "- topic/p p section" data-ofbid = "d53495e190__20250519091507" > < span class = "- topic/ph ph" > Luban-Lite< / span > 编译前,在 VSCode 的终端中使用
2025-04-23 17:54:31 +08:00
< span class = "+ topic/keyword sw-d/cmdname keyword cmdname" > lunch< / span > 命令选择一个方案配置。 < ol class = "- topic/ol ol" id = "lite-compile-vscode-cmd__ol_ctz_fzz_zcc" data-ofbid = "lite-compile-vscode-cmd__ol_ctz_fzz_zcc" >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d53495e199__20250519091507" > 在菜单栏选择 < span class = "+ topic/ph ui-d/menucascade ph menucascade" > < span class = "+ topic/ph ui-d/uicontrol ph uicontrol" > Terminal< / span > < abbr > > < / abbr > < span class = "+ topic/ph ui-d/uicontrol ph uicontrol" > New Terminal< / span > < / span > 打开 VSCode 终端窗口。< figure class = "- topic/fig fig fignone" id = "lite-compile-vscode-cmd__fig_vbc_tnk_jdc" data-ofbid = "lite-compile-vscode-cmd__fig_vbc_tnk_jdc" >
2025-04-23 17:54:31 +08:00
< br / > < div class = "imagecenter" > < img class = "- topic/image image imagecenter" id = "lite-compile-vscode-cmd__image_kyw_5t4_rcc" src = "../../../images/env/vscode_open_terminal.png" width = "480" alt = "vscode_open_terminal" / > < / div > < br / >
2025-07-22 11:15:46 +08:00
< / figure > < p class = "- topic/p p" data-ofbid = "d53495e218__20250519091507" > 可使用快捷键 < span class = "+ topic/ph ui-d/uicontrol ph uicontrol" > Ctrl+Shift+`< / span > 。< / p > < / li >
< li class = "- topic/li li" data-ofbid = "d53495e224__20250519091507" > 在 VSCode 终端窗口中输入并执行 < span class = "+ topic/keyword sw-d/cmdname keyword cmdname" > win_cmd.bat< / span > 。< br / > < div class = "imagecenter" > < img class = "- topic/image image imagecenter" id = "lite-compile-vscode-cmd__image_gfj_3pc_2cc" src = "../../../images/quickstart/image14.png" width = "576" / > < / div > < br / > < / li >
< li class = "- topic/li li" data-ofbid = "d53495e231__20250519091507" > 使用 < span class = "+ topic/keyword sw-d/cmdname keyword cmdname" > list< / span > 命令查询所有工程文件,查询结果如下图所示: < div class = "- topic/p p" data-ofbid = "d53495e236__20250519091507" >
2025-04-23 17:54:31 +08:00
< br / > < div class = "imagecenter" > < img class = "- topic/image image imagecenter" id = "lite-compile-vscode-cmd__image_hfj_3pc_2cc" src = "../../../images/quickstart/image15.png" width = "576" / > < / div > < br / >
< / div > < / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d53495e241__20250519091507" > 选择开发板或者方案所对应的配置编号,执行命令 < span class = "+ topic/keyword sw-d/cmdname keyword cmdname" > lunch
编号.< / span > 。< p class = "- topic/p p" data-ofbid = "d53495e252__20250519091507" > 例如,当前环境是使用的是
2025-04-23 17:54:31 +08:00
< span class = "+ topic/ph sw-d/filepath ph filepath" > d12x_demo68-nor_rt-thread_helloworld< / span >
2025-07-22 11:15:46 +08:00
方案,其分配的编号是< kbd class = "+ topic/ph sw-d/userinput ph userinput" > 3< / kbd > ,则执行命令
< span class = "+ topic/keyword sw-d/cmdname keyword cmdname" > lunch 3< / span > 。< / p > < div class = "- topic/p p" data-ofbid = "d53495e268__20250519091507" >
2025-04-23 17:54:31 +08:00
< br / > < div class = "imagecenter" > < img class = "- topic/image image imagecenter" id = "lite-compile-vscode-cmd__image_ifj_3pc_2cc" src = "../../../images/quickstart/image16.png" width = "480" / > < / div > < br / >
< / div > < / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d53495e273__20250519091507" > 使用以下任意一种方式,可以触发编译:< ul class = "- topic/ul ul arabic simple" id = "lite-compile-vscode-cmd__ol_nyw_5t4_rcc" data-ofbid = "lite-compile-vscode-cmd__ol_nyw_5t4_rcc" >
< li class = "- topic/li li" data-ofbid = "d53495e277__20250519091507" >
< p class = "- topic/p p" data-ofbid = "d53495e279__20250519091507" > 在 VSCode 终端中输入 < span class = "+ topic/keyword sw-d/cmdname keyword cmdname" > m< / span > 命令< / p >
2025-04-23 17:54:31 +08:00
< / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d53495e286__20250519091507" >
< p class = "- topic/p p" data-ofbid = "d53495e288__20250519091507" > 通过 VSCode 的快捷命令 < span class = "+ topic/ph ui-d/uicontrol ph uicontrol" > Ctrl+Shift+B< / span > 选择
2025-04-23 17:54:31 +08:00
< span class = "+ topic/ph ui-d/uicontrol ph uicontrol" > < span class = "- topic/keyword keyword" > Luban-Lite< / span >
make< / span > 。< / p >
< / li >
< / ul > < / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d53495e302__20250519091507" > 使用以下任意一种方式,可以清除工程:< ul class = "- topic/ul ul arabic simple" id = "lite-compile-vscode-cmd__ol_oyw_5t4_rcc" data-ofbid = "lite-compile-vscode-cmd__ol_oyw_5t4_rcc" >
< li class = "- topic/li li" data-ofbid = "d53495e306__20250519091507" >
< p class = "- topic/p p" data-ofbid = "d53495e308__20250519091507" > 在 VSCode 终端中输入 < kbd class = "+ topic/ph sw-d/userinput ph userinput" > c< / kbd > 命令。< / p >
2025-04-23 17:54:31 +08:00
< / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d53495e315__20250519091507" >
< p class = "- topic/p p" data-ofbid = "d53495e317__20250519091507" > 通过 VSCode 的快捷命令 < span class = "+ topic/ph ui-d/uicontrol ph uicontrol" > Ctrl+Shift+B< / span > ,选择
2025-04-23 17:54:31 +08:00
< span class = "+ topic/ph ui-d/uicontrol ph uicontrol" > < span class = "- topic/keyword keyword" > Luban-Lite< / span >
clean< / span > 。< / p >
2025-07-22 11:15:46 +08:00
< div class = "- topic/p p" data-ofbid = "d53495e328__20250519091507" >
2025-04-23 17:54:31 +08:00
< br / > < div class = "imagecenter" > < img class = "- topic/image image imagecenter" id = "lite-compile-vscode-cmd__image_lfj_3pc_2cc" src = "../../../images/quickstart/image17.png" width = "576" alt = "IMG_256" / > < / div > < br / >
< / div >
2025-07-22 11:15:46 +08:00
< div class = "- topic/p p" data-ofbid = "d53495e337__20250519091507" > 编译成功后的系统输出结果如下所示,表示生成的镜像文件为
2025-04-23 17:54:31 +08:00
< span class = "+ topic/ph sw-d/filepath ph filepath" > luban-lite\output\D12X_demo88-nor_rt-thread_helloworld\images\D12X_demo88-nor_v1.0.0.img< / span > : < br / > < div class = "imagecenter" > < img class = "- topic/image image imagecenter" id = "lite-compile-vscode-cmd__image_mfj_3pc_2cc" src = "../../../images/quickstart/image18.png" width = "288" / > < / div > < br / > < / div >
< / li >
< / ul > < / li >
< / ol > < / div >
< / section >
< section class = "- topic/section section" id = "lite-compile-vscode-cmd__section_l3r_2mp_wcc" data-ofbid = "lite-compile-vscode-cmd__section_l3r_2mp_wcc" > < h2 class = "- topic/title title sectiontitle" > 烧写< / h2 >
< ol class = "- topic/ol ol" id = "lite-compile-vscode-cmd__ol_uq4_qnk_jdc" data-ofbid = "lite-compile-vscode-cmd__ol_uq4_qnk_jdc" >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d53495e355__20250519091507" > 打开 VSCode 终端窗口 < span class = "+ topic/ph ui-d/uicontrol ph uicontrol" > Terminal< / span > ,并选择 < span class = "+ topic/ph ui-d/uicontrol ph uicontrol" > Run Build
2025-04-23 17:54:31 +08:00
Task< / span > : < figure class = "- topic/fig fig fignone" id = "lite-compile-vscode-cmd__fig_prn_5nk_jdc" data-ofbid = "lite-compile-vscode-cmd__fig_prn_5nk_jdc" >
< br / > < div class = "imagecenter" > < img class = "- topic/image image imagecenter" id = "lite-compile-vscode-cmd__image_kzw_5t4_rcc" src = "../../../images/env/vscode_run_task.png" width = "480" alt = "vscode_run_task" / > < / div > < br / >
< / figure > < / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d53495e372__20250519091507" >
< p class = "- topic/p p" data-ofbid = "d53495e374__20250519091507" > 在弹出的命令列表中,选择 < span class = "+ topic/ph ui-d/uicontrol ph uicontrol" > < span class = "- topic/keyword keyword" > Luban-Lite< / span > aicupg< / span >
2025-04-23 17:54:31 +08:00
执行烧写操作。< / p >
< / li >
< / ol >
< / section >
< section class = "- topic/section section" id = "lite-compile-vscode-cmd__section_sjv_h4k_jdc" data-ofbid = "lite-compile-vscode-cmd__section_sjv_h4k_jdc" > < h2 class = "- topic/title title sectiontitle" > 快捷命令清单< / h2 >
2025-07-22 11:15:46 +08:00
< div class = "- topic/p p" data-ofbid = "d53495e390__20250519091507" >
2025-04-23 17:54:31 +08:00
< br / > < div class = "imagecenter" > < img class = "- topic/image image imagecenter" id = "lite-compile-vscode-cmd__image_ubg_l4k_jdc" src = "../../../images/env/vscode_run_aicupg.png" width = "480" alt = "vscode_run_aicupg" / > < / div > < br / >
< / div >
2025-07-22 11:15:46 +08:00
< div class = "- topic/p p" data-ofbid = "d53495e399__20250519091507" > 如图所示,< span class = "- topic/ph ph" > Luban-Lite< / span > 提供了多个快捷命令,简化用户操作,包括:< ul class = "- topic/ul ul simple" id = "lite-compile-vscode-cmd__ul_mzw_5t4_rcc" data-ofbid = "lite-compile-vscode-cmd__ul_mzw_5t4_rcc" >
< li class = "- topic/li li" data-ofbid = "d53495e406__20250519091507" >
< p class = "- topic/p p" data-ofbid = "d53495e408__20250519091507" > < span class = "+ topic/keyword sw-d/cmdname keyword cmdname" > aicupg< / span > :执行烧写操作< / p >
2025-04-23 17:54:31 +08:00
< / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d53495e414__20250519091507" >
< p class = "- topic/p p" data-ofbid = "d53495e416__20250519091507" > < span class = "+ topic/keyword sw-d/cmdname keyword cmdname" > make< / span > :触发编译< / p >
2025-04-23 17:54:31 +08:00
< / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d53495e422__20250519091507" >
< p class = "- topic/p p" data-ofbid = "d53495e424__20250519091507" > < span class = "+ topic/keyword sw-d/cmdname keyword cmdname" > list< / span > :列出当前所有方案配置< / p >
2025-04-23 17:54:31 +08:00
< / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d53495e430__20250519091507" >
< p class = "- topic/p p" data-ofbid = "d53495e432__20250519091507" > < span class = "+ topic/keyword sw-d/cmdname keyword cmdname" > menuconfig< / span > :打开 menuconfig 配置界面< / p >
2025-04-23 17:54:31 +08:00
< / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d53495e438__20250519091507" >
< p class = "- topic/p p" data-ofbid = "d53495e440__20250519091507" > < span class = "+ topic/keyword sw-d/cmdname keyword cmdname" > info< / span > :查看当前的方案配置< / p >
2025-04-23 17:54:31 +08:00
< / li >
2025-07-22 11:15:46 +08:00
< li class = "- topic/li li" data-ofbid = "d53495e447__20250519091507" >
< p class = "- topic/p p" data-ofbid = "d53495e449__20250519091507" > < span class = "+ topic/keyword sw-d/cmdname keyword cmdname" > clean< / span > :清理工程< / p >
2025-04-23 17:54:31 +08:00
< / li >
< / ul > < / div >
< / section >
< / div >
< / 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 = "#lite-compile-vscode-cmd__section_x2x_4lp_wcc" data-tocid = "lite-compile-vscode-cmd__section_x2x_4lp_wcc" > 插件安装< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#lite-compile-vscode-cmd__section_r2w_tlp_wcc" data-tocid = "lite-compile-vscode-cmd__section_r2w_tlp_wcc" > 打开工程文件< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#lite-compile-vscode-cmd__section_qwh_ylp_wcc" data-tocid = "lite-compile-vscode-cmd__section_qwh_ylp_wcc" > 编译< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#lite-compile-vscode-cmd__section_l3r_2mp_wcc" data-tocid = "lite-compile-vscode-cmd__section_l3r_2mp_wcc" > 烧写< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#lite-compile-vscode-cmd__section_sjv_h4k_jdc" data-tocid = "lite-compile-vscode-cmd__section_sjv_h4k_jdc" > 快捷命令清单< / a > < / div > < / 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-2025 广东匠芯创科技有限公司. All rights reserved.< / p >
< / div >
< div >
< div class = "generation_time" >
2025-07-22 11:15:46 +08:00
Update Time: 2025-05-19
2025-04-23 17:54:31 +08:00
< / 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 >