2025-09-30 11:56:06 +08:00
<!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 = "Luban-Lite 支持在 VSCode 环境中完成全流程的开发, 包括代码编辑、编译、调试和烧写。VSCode 是一款开源、免费、跨平台的源代码编辑器,由 MicroSoft 开发,特点是轻量级、高性能和可扩展。 注: 仅在打开 Luban-Lite 根目录的前提下, VSCode 才能完成以下的编译、调试和烧写操作。 插件安装 如需在 VSCode 中进行 C/C++ 语言的调试,必须先安装插件 ..." / > < 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/env/sdk-compile.html" / > < meta name = "DC.relation" content = "../../../topics/sdk/env/ubuntu2004.html" / > < meta name = "DC.relation" content = "../../../topics/sdk/env/vmware.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 > VSCode< / title > <!-- Build number 2023110923. --> < meta name = "wh-path2root" content = "../../../" / > < meta name = "wh-toc-id" content = "id-d5856e1066" / > < meta name = "wh-source-relpath" content = "topics/sdk/env/vscode.dita" / > < meta name = "wh-out-relpath" content = "topics/sdk/env/vscode.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/env/sdk-compile.html" > SDK 编译< / a > < div class = "wh-tooltip" > < p class = "shortdesc" > 介绍不同编译环境下 SDK 的详细编译流程。< / p > < / div > < / div > < / div > < / li > < li class = "active" > < div class = "topicref" data-id = "id" > < div class = "title" > < a href = "../../../topics/sdk/env/vscode.html" > VSCode< / 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/env/ubuntu2004.html" title = "Ubuntu" aria-label = "上一主题: Ubuntu" rel = "prev" > < / a > < / span >
< span class = "navnext" > < a class = "- topic/link link" href = "../../../topics/sdk/env/vmware.html" title = "VMWare 安装" aria-label = "下一主题: VMWare 安装" 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 = "true" > < div data-tocid = "id-d5856e1003" class = "topicref" data-id = "id" data-state = "expanded" > < span role = "button" tabindex = "0" aria-labelledby = "button-collapse-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 > < ul role = "group" class = "navbar-nav nav-list" > < li role = "treeitem" aria-expanded = "false" > < div data-tocid = "id-d5856e1018" class = "topicref" data-id = "id" data-state = "not-ready" > < span role = "button" tabindex = "0" aria-labelledby = "button-expand-action id-d5856e1018-link" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/env/sourcecode.html" id = "id-d5856e1018-link" > 准备代码< / a > < / div > < / div > < / li > < li role = "treeitem" > < div data-tocid = "id-d5856e1042" class = "topicref" data-id = "id" data-state = "leaf" > < span role = "button" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/env/eclipse.html" id = "id-d5856e1042-link" > Eclipse< / a > < / div > < / div > < / li > < li role = "treeitem" > < div data-tocid = "id-d5856e1054" 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-d5856e1054-link" > Ubuntu< / a > < / div > < / div > < / li > < li role = "treeitem" class = "active" > < div data-tocid = "id-d5856e1066" class = "topicref" data-id = "id" data-state = "leaf" > < span role = "button" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/env/vscode.html" id = "id-d5856e1066-link" > VSCode< / a > < / div > < / div > < / li > < li role = "treeitem" aria-expanded = "false" > < div data-tocid = "id-d5856e1078" class = "topicref" data-id = "id" data-state = "not-ready" > < span role = "button" tabindex = "0" aria-labelledby = "button-expand-action id-d5856e1078-link" class = "wh-expand-btn" > < / span > < div class = "title" > < a href = "../../../topics/sdk/env/vmware.html" id = "id-d5856e1078-link" > VMWare 安装< / a > < div class = "wh-tooltip" > < p class = "shortdesc" > 如需在虚拟机上进行 < span class = "ph" > Luban-Lite< / span > 的开发工作,可以参考本节的安装说明。< / p > < / div > < / div > < / div > < / li > < li role = "treeitem" > < div data-tocid = "id-d5856e1138" 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-d5856e1138-link" > Windows< / a > < / div > < / div > < / li > < / ul > < / li > < li role = "treeitem" aria-expanded = "false" > < div data-tocid = "id-d5856e1152" class = "topicref" data-id = "id" data-state = "not-ready" > < span role = "button" tabindex = "0" aria-labelledby = "button-expand-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 > < / 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 = "../
< / 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/env/vscode.dita" > Edit online< / a > < / span > < h1 class = "- topic/title title topictitle1" id = "ariaid-title1" > VSCode< / h1 > < div class = "date inPage" > 15 Jan 2024< / div > < div style = "color: gray;" >
Read time: 1 minute(s)
< / div > < div class = "- topic/body body" > < p class = "- topic/p p" data-ofbid = "d352711e22__20250121172130" > < span class = "- topic/ph ph" > Luban-Lite< / span > 支持在 VSCode 环境中完成全流程的开发, 包括代码编辑、编译、调试和烧写。VSCode
是一款开源、免费、跨平台的源代码编辑器,由 MicroSoft 开发,特点是轻量级、高性能和可扩展。< / p > < div class = "- topic/p p" data-ofbid = "d352711e26__20250121172130" >
< div class = "- topic/note note note note_note" id = "id__note_lqk_1yz_zcc" data-ofbid = "id__note_lqk_1yz_zcc" > < span class = "note__title" > 注:< / span > 仅在打开 < span class = "- topic/ph ph" > Luban-Lite< / span > 根目录的前提下, VSCode
才能完成以下的编译、调试和烧写操作。< / div >
< / div > < section class = "- topic/section section" id = "id__section_x2x_4lp_wcc" data-ofbid = "id__section_x2x_4lp_wcc" > < h2 class = "- topic/title title sectiontitle" > 插件安装< / h2 >
< p class = "- topic/p p section" data-ofbid = "d352711e40__20250121172130" > 如需在 VSCode 中进行 C/C++ 语言的调试,必须先安装插件 C/C++,如下所示: < / p >
< ul class = "- topic/ul ul" id = "id__ul_hg5_tcw_rcc" data-ofbid = "id__ul_hg5_tcw_rcc" > < li class = "- topic/li li" data-ofbid = "d352711e44__20250121172130" >
< div class = "- topic/p p section" data-ofbid = "d352711e46__20250121172130" > 在 PC 联网的条件下,直接点击 < span class = "+ topic/ph ui-d/uicontrol ph uicontrol" > Install< / span >
完成安装,安装完成后的界面示例如下。< br / > < div class = "imagecenter" > < img class = "- topic/image image imagecenter" id = "id__image_fyw_5t4_rcc" src = "../../../images/env/vscode_plugin.png" width = "384" alt = "vscode_plugin" / > < / div > < br / > < / div >
< / li > < li class = "- topic/li li" data-ofbid = "d352711e55__20250121172130" >
< div class = "- topic/p p section" data-ofbid = "d352711e57__20250121172130" > 在 PC 未联网的条件下,则需要按照以下步骤,手动完成安装: < ol class = "- topic/ol ol arabic simple" id = "id__ol_gyw_5t4_rcc" data-ofbid = "id__ol_gyw_5t4_rcc" > < li class = "- topic/li li" data-ofbid = "d352711e60__20250121172130" >
< p class = "- topic/p p" data-ofbid = "d352711e62__20250121172130" > 前往 VSCode 官网下载 C/C++ 插件的安装文件。< / p >
< p class = "- topic/p p" data-ofbid = "d352711e65__20250121172130" > 插件文件的后缀名为 < span class = "+ topic/ph sw-d/filepath ph filepath" > .vsix< / span > 。< / p >
< / li > < li class = "- topic/li li" data-ofbid = "d352711e71__20250121172130" >
< p class = "- topic/p p" data-ofbid = "d352711e73__20250121172130" > 打开 VSCode 终端后,在插件管理界面选择 < span class = "+ topic/ph ui-d/uicontrol ph uicontrol" > Install from
VSIX< / span > ,如图所示:< / p >
< / li > < / ol > < figure class = "- topic/fig fig fignone" data-ofbid = "d352711e79__20250121172130" > < br / > < div class = "imagecenter" > < img class = "- topic/image image imagecenter" id = "id__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 = "id__section_r2w_tlp_wcc" data-ofbid = "id__section_r2w_tlp_wcc" > < h2 class = "- topic/title title sectiontitle" > 打开工程文件< / h2 >
< ol class = "- topic/ol ol" id = "id__ol_utc_dzz_zcc" data-ofbid = "id__ol_utc_dzz_zcc" > < li class = "- topic/li li" data-ofbid = "d352711e93__20250121172130" > 选择以下任意方式打开一个文件夹目录:< ul class = "- topic/ul ul" id = "id__ul_n13_dzz_zcc" data-ofbid = "id__ul_n13_dzz_zcc" > < li class = "- topic/li li" data-ofbid = "d352711e96__20250121172130" > 在菜单栏中,选择 < 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 = "d352711e103__20250121172130" > 在 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 = "d352711e110__20250121172130" >
< figure class = "- topic/fig fig fignone" data-ofbid = "d352711e112__20250121172130" > < br / > < div class = "imagecenter" > < img class = "- topic/image image imagecenter" id = "id__image_iyw_5t4_rcc" src = "../../../images/env/vscode_open_folder.png" width = "480" alt = "vscode_open_folder" / > < / div > < br / > < / figure >
< / div > < / li > < / ul > < / li > < li class = "- topic/li li" data-ofbid = "d352711e117__20250121172130" >
< div class = "- topic/p p" data-ofbid = "d352711e119__20250121172130" > 在弹出的文件夹浏览窗口中选择 < span class = "- topic/ph ph" > Luban-Lite< / span > 根目录,并点击< span class = "+ topic/ph ui-d/uicontrol ph uicontrol" > 选择文件夹< / span > : < figure class = "- topic/fig fig fignone" data-ofbid = "d352711e129__20250121172130" > < br / > < div class = "imagecenter" > < img class = "- topic/image image imagecenter" id = "id__image_jyw_5t4_rcc" src = "../../../images/env/vscode_open_lite.png" width = "480" alt = "vscode_open_lite" / > < / div > < br / > < / figure > < / div >
< / li > < / ol >
< / section > < section class = "- topic/section section" id = "id__section_qwh_ylp_wcc" data-ofbid = "id__section_qwh_ylp_wcc" > < h2 class = "- topic/title title sectiontitle" > 编译< / h2 >
< div class = "- topic/p p section" data-ofbid = "d352711e140__20250121172130" > < span class = "- topic/ph ph" > Luban-Lite< / span > 编译前,在 VSCode 的终端中使用
< span class = "+ topic/keyword sw-d/cmdname keyword cmdname" > lunch< / span > 命令选择一个方案配置。 < ol class = "- topic/ol ol" id = "id__ol_ctz_fzz_zcc" data-ofbid = "id__ol_ctz_fzz_zcc" > < li class = "- topic/li li" data-ofbid = "d352711e148__20250121172130" > 在菜单栏选择 < 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 = "id__fig_vbc_tnk_jdc" data-ofbid = "id__fig_vbc_tnk_jdc" > < br / > < div class = "imagecenter" > < img class = "- topic/image image imagecenter" id = "id__image_kyw_5t4_rcc" src = "../../../images/env/vscode_open_terminal.png" width = "480" alt = "vscode_open_terminal" / > < / div > < br / > < / figure > < p class = "- topic/p p" data-ofbid = "d352711e160__20250121172130" > 可使用快捷键 < span class = "+ topic/ph ui-d/uicontrol ph uicontrol" > Ctrl+Shift+`< / span > 。< / p > < / li > < li class = "- topic/li li" data-ofbid = "d352711e165__20250121172130" > 在 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 = "id__image_gfj_3pc_2cc" src = "../../../images/quickstart/image14.png" width = "576" / > < / div > < br / > < / li > < li class = "- topic/li li" data-ofbid = "d352711e171__20250121172130" > 使用 < span class = "+ topic/keyword sw-d/cmdname keyword cmdname" > list< / span > 命令查询所有工程文件,查询结果如下图所示: < div class = "- topic/p p" data-ofbid = "d352711e176__20250121172130" >
< br / > < div class = "imagecenter" > < img class = "- topic/image image imagecenter" id = "id__image_hfj_3pc_2cc" src = "../../../images/quickstart/image15.png" width = "576" / > < / div > < br / >
< / div > < / li > < li class = "- topic/li li" data-ofbid = "d352711e180__20250121172130" > 选择开发板或者方案所对应的配置编号,执行命令 < span class = "+ topic/keyword sw-d/cmdname keyword cmdname" > lunch
list_no.< / span > 。< p class = "- topic/p p" data-ofbid = "d352711e187__20250121172130" > 例如,当前环境是使用的是
< span class = "+ topic/ph sw-d/filepath ph filepath" > d12x_demo68-nor_rt-thread_helloworld< / span >
方案,其配置的编号是< 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 = "d352711e198__20250121172130" >
< br / > < div class = "imagecenter" > < img class = "- topic/image image imagecenter" id = "id__image_ifj_3pc_2cc" src = "../../../images/quickstart/image16.png" width = "480" / > < / div > < br / >
< / div > < / li > < li class = "- topic/li li" data-ofbid = "d352711e202__20250121172130" > 使用以下任意一种方式,可以触发编译:< ul class = "- topic/ul ul arabic simple" id = "id__ol_nyw_5t4_rcc" data-ofbid = "id__ol_nyw_5t4_rcc" > < li class = "- topic/li li" data-ofbid = "d352711e205__20250121172130" >
< p class = "- topic/p p" data-ofbid = "d352711e207__20250121172130" > 在 VSCode 终端中输入 < span class = "+ topic/keyword sw-d/cmdname keyword cmdname" > m< / span > 命令< / p >
< / li > < li class = "- topic/li li" data-ofbid = "d352711e213__20250121172130" >
< p class = "- topic/p p" data-ofbid = "d352711e215__20250121172130" > 通过 VSCode 的快捷命令 < span class = "+ topic/ph ui-d/uicontrol ph uicontrol" > Ctrl+Shift+B< / span > 选择
< span class = "+ topic/ph ui-d/uicontrol ph uicontrol" > < span class = "- topic/keyword keyword" > Luban-Lite< / span >
make< / span > 。< / p >
< / li > < / ul > < / li > < li class = "- topic/li li" data-ofbid = "d352711e226__20250121172130" > 使用以下任意一种方式,可以清除工程:< ul class = "- topic/ul ul arabic simple" id = "id__ol_oyw_5t4_rcc" data-ofbid = "id__ol_oyw_5t4_rcc" > < li class = "- topic/li li" data-ofbid = "d352711e229__20250121172130" >
< p class = "- topic/p p" data-ofbid = "d352711e231__20250121172130" > 在 VSCode 终端中输入 < kbd class = "+ topic/ph sw-d/userinput ph userinput" > c< / kbd > 命令。< / p >
< / li > < li class = "- topic/li li" data-ofbid = "d352711e237__20250121172130" >
< p class = "- topic/p p" data-ofbid = "d352711e239__20250121172130" > 通过 VSCode 的快捷命令 < span class = "+ topic/ph ui-d/uicontrol ph uicontrol" > Ctrl+Shift+B< / span > ,选择
< span class = "+ topic/ph ui-d/uicontrol ph uicontrol" > < span class = "- topic/keyword keyword" > Luban-Lite< / span >
clean< / span > 。< / p >
< div class = "- topic/p p" data-ofbid = "d352711e250__20250121172130" >
< br / > < div class = "imagecenter" > < img class = "- topic/image image imagecenter" id = "id__image_lfj_3pc_2cc" src = "../../../images/quickstart/image17.png" width = "576" alt = "IMG_256" / > < / div > < br / >
< / div >
< div class = "- topic/p p" data-ofbid = "d352711e257__20250121172130" > 编译成功后的系统输出结果如下所示,表示生成的镜像文件为
< 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 = "id__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 = "id__section_l3r_2mp_wcc" data-ofbid = "id__section_l3r_2mp_wcc" > < h2 class = "- topic/title title sectiontitle" > 烧写< / h2 >
< ol class = "- topic/ol ol" id = "id__ol_uq4_qnk_jdc" data-ofbid = "id__ol_uq4_qnk_jdc" > < li class = "- topic/li li" data-ofbid = "d352711e271__20250121172130" > 打开 VSCode 终端窗口 < span class = "+ topic/ph ui-d/uicontrol ph uicontrol" > Terminal< / span > ,并选择 < span class = "+ topic/ph ui-d/uicontrol ph uicontrol" > Run Build
Task< / span > : < figure class = "- topic/fig fig fignone" id = "id__fig_prn_5nk_jdc" data-ofbid = "id__fig_prn_5nk_jdc" > < br / > < div class = "imagecenter" > < img class = "- topic/image image imagecenter" id = "id__image_kzw_5t4_rcc" src = "../../../images/env/vscode_run_task.png" width = "480" alt = "vscode_run_task" / > < / div > < br / > < / figure > < / li > < li class = "- topic/li li" data-ofbid = "d352711e283__20250121172130" >
< p class = "- topic/p p" data-ofbid = "d352711e285__20250121172130" > 在弹出的命令列表中,选择 < span class = "+ topic/ph ui-d/uicontrol ph uicontrol" > < span class = "- topic/keyword keyword" > Luban-Lite< / span > aicupg< / span >
执行烧写操作。< / p >
< / li > < / ol >
< / section > < section class = "- topic/section section" id = "id__section_sjv_h4k_jdc" data-ofbid = "id__section_sjv_h4k_jdc" > < h2 class = "- topic/title title sectiontitle" > 快捷命令清单< / h2 >
< div class = "- topic/p p" data-ofbid = "d352711e299__20250121172130" >
< br / > < div class = "imagecenter" > < img class = "- topic/image image imagecenter" id = "id__image_ubg_l4k_jdc" src = "../../../images/env/vscode_run_aicupg.png" width = "480" alt = "vscode_run_aicupg" / > < / div > < br / >
< / div >
< div class = "- topic/p p" data-ofbid = "d352711e306__20250121172130" > 如图所示,< span class = "- topic/ph ph" > Luban-Lite< / span > 提供了多个快捷命令,简化用户操作,包括:< ul class = "- topic/ul ul simple" id = "id__ul_mzw_5t4_rcc" data-ofbid = "id__ul_mzw_5t4_rcc" > < li class = "- topic/li li" data-ofbid = "d352711e312__20250121172130" >
< p class = "- topic/p p" data-ofbid = "d352711e314__20250121172130" > < span class = "+ topic/keyword sw-d/cmdname keyword cmdname" > aicupg< / span > :执行烧写操作< / p >
< / li > < li class = "- topic/li li" data-ofbid = "d352711e319__20250121172130" >
< p class = "- topic/p p" data-ofbid = "d352711e321__20250121172130" > < span class = "+ topic/keyword sw-d/cmdname keyword cmdname" > make< / span > :触发编译< / p >
< / li > < li class = "- topic/li li" data-ofbid = "d352711e326__20250121172130" >
< p class = "- topic/p p" data-ofbid = "d352711e328__20250121172130" > < span class = "+ topic/keyword sw-d/cmdname keyword cmdname" > list< / span > :列出当前所有方案配置< / p >
< / li > < li class = "- topic/li li" data-ofbid = "d352711e333__20250121172130" >
< p class = "- topic/p p" data-ofbid = "d352711e335__20250121172130" > < span class = "+ topic/keyword sw-d/cmdname keyword cmdname" > menuconfig< / span > :打开 menuconfig 配置界面< / p >
< / li > < li class = "- topic/li li" data-ofbid = "d352711e340__20250121172130" >
< p class = "- topic/p p" data-ofbid = "d352711e342__20250121172130" > < span class = "+ topic/keyword sw-d/cmdname keyword cmdname" > info< / span > :查看当前的方案配置< / p >
< / li > < li class = "- topic/li li" data-ofbid = "d352711e347__20250121172130" >
< p class = "- topic/p p" data-ofbid = "d352711e349__20250121172130" > < span class = "+ topic/keyword sw-d/cmdname keyword cmdname" > clean< / span > :清理工程< / p >
< / 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 = "#id__section_x2x_4lp_wcc" data-tocid = "id__section_x2x_4lp_wcc" > 插件安装< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#id__section_r2w_tlp_wcc" data-tocid = "id__section_r2w_tlp_wcc" > 打开工程文件< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#id__section_qwh_ylp_wcc" data-tocid = "id__section_qwh_ylp_wcc" > 编译< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#id__section_l3r_2mp_wcc" data-tocid = "id__section_l3r_2mp_wcc" > 烧写< / a > < / div > < / li > < li class = "section-item" > < div class = "section-title" > < a href = "#id__section_sjv_h4k_jdc" data-tocid = "id__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-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 >
2025-01-23 16:37:00 +08:00
< / html >