[{"data":1,"prerenderedAt":499},["ShallowReactive",2],{"wiki-page-\u002Fen-us\u002Fwiki\u002F2024-01-21-arm-keil-mdk6-jiao-cheng\u002F0400-windows-huan-jing-da-jian-jiu":3,"wiki-doc-items-\u002Fen-us\u002Fwiki\u002F2024-01-21-arm-keil-mdk6-jiao-cheng\u002F0400-windows-huan-jing-da-jian-jiu":448,"language-switcher-data-\u002Fen-us\u002Fwiki\u002F2024-01-21-arm-keil-mdk6-jiao-cheng\u002F0400-windows-huan-jing-da-jian-jiu":483,"wiki-i18n-paths-\u002Fen-us\u002Fwiki\u002F2024-01-21-arm-keil-mdk6-jiao-cheng\u002F0400-windows-huan-jing-da-jian-jiu":498},{"id":4,"title":5,"body":6,"canonicalPath":428,"chapterDepth":429,"chapterOrder":430,"date":431,"description":21,"docI18nKey":432,"docKey":433,"docRoot":434,"docTitle":435,"extension":436,"i18nKey":437,"isBlogPost":438,"isWikiDoc":439,"isWikiIndex":438,"layout":440,"legacyPath":440,"locale":441,"localeSlug":442,"meta":443,"navigation":439,"path":428,"seo":444,"sourcePath":445,"sourceStem":437,"stem":446,"wikiDepth":70,"__hash__":447},"content\u002F_i18n\u002Fen-us\u002Fwiki\u002F2024-01-21-Arm-Keil-MDK6教程\u002F0400-Windows环境搭建（旧）.md","Windows环境搭建（旧）",{"type":7,"value":8,"toc":418},"minimark",[9,22,27,40,44,49,57,82,88,94,99,104,109,115,120,123,131,134,139,147,153,167,170,175,179,184,189,194,199,204,209,214,219,224,228,233,238,243,248,253,257,262,267,272,277,285,290,295,298,302,305,310,313,316,319,322,327,330,335,338,343,346,351,354,359,362,367,370,375,379,384,389,392,396,399,404,409,414],[10,11,12],"p",{},[13,14,15],"em",{},[16,17,18],"strong",{},[19,20,21],"code",{},"（本教程为2024年1月创建的，可能与以后的版本有些出入）",[23,24,26],"h3",{"id":25},"software-to-prepare","Software to prepare",[28,29,30,34,37],"ol",{},[31,32,33],"li",{},"Keil MDK 5.3x and above",[31,35,36],{},"The latest version of VScode",[31,38,39],{},"CubeMX latest version",[23,41,43],{"id":42},"vcpkg-installation-and-environment-setup","vcpkg Installation and Environment Setup",[28,45,46],{},[31,47,48],{},"Clone the vcpkg repository",[10,50,51],{},[52,53,54],"a",{"href":54,"rel":55},"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvcpkg\u002Ftree\u002Fmaster",[56],"nofollow",[58,59,64],"pre",{"className":60,"code":61,"language":62,"meta":63,"style":63},"language-bash shiki shiki-themes github-light github-dark","git clone https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvcpkg.git\n","bash","",[19,65,66],{"__ignoreMap":63},[67,68,71,75,79],"span",{"class":69,"line":70},"line",1,[67,72,74],{"class":73},"sScJk","git",[67,76,78],{"class":77},"sZZnC"," clone",[67,80,81],{"class":77}," https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fvcpkg.git\n",[10,83,84],{},[85,86],"img",{"alt":63,"src":87},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage29.webp",[28,89,91],{"start":90},2,[31,92,93],{},"Generate the vcpkg program.",[10,95,96],{},[85,97],{"alt":63,"src":98},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage30.webp",[10,100,101],{},[85,102],{"alt":63,"src":103},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage31.webp",[10,105,106],{},[85,107],{"alt":63,"src":108},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage32.webp",[28,110,112],{"start":111},3,[31,113,114],{},"Set up the environment",[10,116,117],{},[85,118],{"alt":63,"src":119},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage33.webp",[10,121,122],{},"Click on Advanced System Settings.",[10,124,125,128],{},[85,126],{"alt":63,"src":127},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage34.webp",[85,129],{"alt":63,"src":130},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage35.webp",[10,132,133],{},"Configure both user environment variables and system environment variables.",[10,135,136],{},[85,137],{"alt":63,"src":138},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage36.webp",[10,140,141,144],{},[85,142],{"alt":63,"src":143},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage37.webp",[85,145],{"alt":63,"src":146},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage38.webp",[28,148,150],{"start":149},4,[31,151,152],{},"test",[58,154,156],{"className":60,"code":155,"language":62,"meta":63,"style":63},"vcpkg --version\n",[19,157,158],{"__ignoreMap":63},[67,159,160,163],{"class":69,"line":70},[67,161,162],{"class":73},"vcpkg",[67,164,166],{"class":165},"sj4cs"," --version\n",[10,168,169],{},"As shown in the image below, the installation was successful.",[10,171,172],{},[85,173],{"alt":63,"src":174},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage39.webp",[23,176,178],{"id":177},"generate-the-project-files","Generate the project files.",[28,180,181],{},[31,182,183],{},"Open CubeMX and log in to your ST account.",[10,185,186],{},[85,187],{"alt":63,"src":188},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage40.webp",[28,190,191],{"start":90},[31,192,193],{},"Install the Pack",[10,195,196],{},[85,197],{"alt":63,"src":198},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage41.webp",[10,200,201],{},[85,202],{"alt":63,"src":203},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage42.webp",[10,205,206],{},[85,207],{"alt":63,"src":208},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage43.webp",[28,210,211],{"start":111},[31,212,213],{},"Configure the project",[10,215,216],{},[85,217],{"alt":63,"src":218},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage44.webp",[10,220,221],{},[85,222],{"alt":63,"src":223},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage45.webp",[23,225,227],{"id":226},"open-the-project-and-configure-the-default-compiler","Open the project and configure the default compiler.",[28,229,230],{},[31,231,232],{},"Set the default compiler to ARMCLANG (AC6).",[10,234,235],{},[85,236],{"alt":63,"src":237},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage46.webp",[10,239,240],{},[85,241],{"alt":63,"src":242},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage47.webp",[28,244,245],{"start":90},[31,246,247],{},"Compilation verification",[10,249,250],{},[85,251],{"alt":63,"src":252},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage48.webp",[23,254,256],{"id":255},"download-and-activate-the-keil-mdk6-plugin","Download and activate the Keil MDK6 plugin.",[28,258,259],{},[31,260,261],{},"Open VScode",[10,263,264],{},[85,265],{"alt":63,"src":266},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage49.webp",[28,268,269],{"start":90},[31,270,271],{},"Install the Keil Studio Pack plugin",[10,273,274],{},[85,275],{"alt":63,"src":276},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage50.webp",[28,278,279,282],{"start":111},[31,280,281],{},"After installation, restart VSCode.",[31,283,284],{},"Then two windows will pop up in the bottom right corner. Click to activate MDK6Community.",[10,286,287],{},[85,288],{"alt":63,"src":289},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage51.webp",[10,291,292],{},[85,293],{"alt":63,"src":294},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage52.webp",[10,296,297],{},"Displaying this notification means activation was successful.",[23,299,301],{"id":300},"convert-mdk5-project-to-mdk6-project","Convert MDK5 project to MDK6 project",[10,303,304],{},"Click Convert to convert.",[10,306,307],{},[85,308],{"alt":63,"src":309},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage53.webp",[10,311,312],{},"In the bottom right corner, install all the packages that need to be installed, and allow any prompts that appear.",[10,314,315],{},"When installing Packs, you need to ensure a good network environment (one with internet access to bypass restrictions).",[10,317,318],{},"This stage will last 5–20 minutes, so please wait patiently. (Depends on the speed of your proxy service.)",[10,320,321],{},"(These operations are only needed for the first run)",[10,323,324],{},[85,325],{"alt":63,"src":326},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage54.webp",[10,328,329],{},"You can open the Task Manager to check if cmsis.exe is downloading normally. If there is network activity shown, it means the download is in progress — just wait for it to finish.",[10,331,332],{},[85,333],{"alt":63,"src":334},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage55.webp",[10,336,337],{},"This survey can be skipped.",[10,339,340],{},[85,341],{"alt":63,"src":342},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage56.webp",[10,344,345],{},"As shown in the figure, the installation was successful.",[10,347,348],{},[85,349],{"alt":63,"src":350},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage57.webp",[10,352,353],{},"If the environment is not activated here, you need to activate it. (The image shows deactivating the environment.)",[10,355,356],{},[85,357],{"alt":63,"src":358},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage58.webp",[10,360,361],{},"Click to convert the MDK5 project",[10,363,364],{},[85,365],{"alt":63,"src":366},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage59.webp",[10,368,369],{},"This indicates that the conversion of the MDK6 project was successful.",[10,371,372],{},[85,373],{"alt":63,"src":374},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage60.webp",[23,376,378],{"id":377},"compile","Compile",[10,380,381],{},[85,382],{"alt":63,"src":383},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage61.webp",[10,385,386],{},[85,387],{"alt":63,"src":388},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage62.webp",[10,390,391],{},"As you can see, the size after compiling with KEIL MDK6 is exactly the same as after compiling with KEIL MDK5.",[23,393,395],{"id":394},"how-to-configure-st-link-and-other-debuggers-on-windows","How to configure ST-Link and other debuggers on Windows?",[10,397,398],{},"Windows is even simpler—there's no need to download anything extra. As long as it works on MDK5, it will basically work on MDK6 as well.",[400,401,403],"h4",{"id":402},"add-device-select-st-link","Add device, select ST-Link.",[10,405,406],{},[85,407],{"alt":63,"src":408},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage63.webp",[10,410,411],{},[85,412],{"alt":63,"src":413},"https:\u002F\u002Fcdn.tungchiahui.cn\u002Ftungwebsite\u002Fassets\u002Fimages\u002F2024\u002F01\u002F21\u002Fimage64.webp",[415,416,417],"style",{},"html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}",{"title":63,"searchDepth":90,"depth":90,"links":419},[420,421,422,423,424,425,426,427],{"id":25,"depth":111,"text":26},{"id":42,"depth":111,"text":43},{"id":177,"depth":111,"text":178},{"id":226,"depth":111,"text":227},{"id":255,"depth":111,"text":256},{"id":300,"depth":111,"text":301},{"id":377,"depth":111,"text":378},{"id":394,"depth":111,"text":395},"\u002Fen-us\u002Fwiki\u002F2024-01-21-arm-keil-mdk6-jiao-cheng\u002F0400-windows-huan-jing-da-jian-jiu",0,"0400","2024-01-21","wiki\u002F2024-01-21-arm-keil-mdk6-jiao-cheng","en-us:2024-01-21-arm-keil-mdk6-jiao-cheng","\u002Fen-us\u002Fwiki\u002F2024-01-21-arm-keil-mdk6-jiao-cheng","Arm Keil MDK6教程","md","wiki\u002F2024-01-21-Arm-Keil-MDK6教程\u002F0400-Windows环境搭建（旧）",false,true,null,"en-US","en-us",{},{"title":5,"description":21},"\u002Fwiki\u002F2024-01-21-arm-keil-mdk6-jiao-cheng\u002F0400-windows-huan-jing-da-jian-jiu","_i18n\u002Fen-us\u002Fwiki\u002F2024-01-21-Arm-Keil-MDK6教程\u002F0400-Windows环境搭建（旧）","bB1_n2O6lRKj5Cai5Jv-29FgjBcfBrI4GbxRYZjXv38",[449,454,459,464,469,470,475,480],{"path":450,"stem":451,"title":452,"date":431,"chapterOrder":453,"chapterDepth":429,"docKey":433,"docRoot":434,"docTitle":435,"isWikiDoc":439,"isWikiIndex":438},"\u002Fen-us\u002Fwiki\u002F2024-01-21-arm-keil-mdk6-jiao-cheng\u002F0100-jian-jie","_i18n\u002Fen-us\u002Fwiki\u002F2024-01-21-Arm-Keil-MDK6教程\u002F0100-简介","Introduction","0100",{"path":455,"stem":456,"title":457,"date":431,"chapterOrder":458,"chapterDepth":429,"docKey":433,"docRoot":434,"docTitle":435,"isWikiDoc":439,"isWikiIndex":438},"\u002Fen-us\u002Fwiki\u002F2024-01-21-arm-keil-mdk6-jiao-cheng\u002F0200-guan-fang-jiao-cheng","_i18n\u002Fen-us\u002Fwiki\u002F2024-01-21-Arm-Keil-MDK6教程\u002F0200-官方教程","Official tutorial","0200",{"path":460,"stem":461,"title":462,"date":431,"chapterOrder":463,"chapterDepth":429,"docKey":433,"docRoot":434,"docTitle":435,"isWikiDoc":439,"isWikiIndex":438},"\u002Fen-us\u002Fwiki\u002F2024-01-21-arm-keil-mdk6-jiao-cheng\u002F0300-linux-huan-jing-da-jian-jiu","_i18n\u002Fen-us\u002Fwiki\u002F2024-01-21-Arm-Keil-MDK6教程\u002F0300-Linux环境搭建（旧）","Linux环境搭建（旧）","0300",{"path":465,"stem":466,"title":467,"date":431,"chapterOrder":468,"chapterDepth":429,"docKey":433,"docRoot":434,"docTitle":435,"isWikiDoc":439,"isWikiIndex":438},"\u002Fen-us\u002Fwiki\u002F2024-01-21-arm-keil-mdk6-jiao-cheng\u002F0325-linux-huan-jing-da-jian-xin","_i18n\u002Fen-us\u002Fwiki\u002F2024-01-21-Arm-Keil-MDK6教程\u002F0325-Linux环境搭建（新）","Linux环境搭建（新）","0325",{"path":428,"stem":446,"title":5,"date":431,"chapterOrder":430,"chapterDepth":429,"docKey":433,"docRoot":434,"docTitle":435,"isWikiDoc":439,"isWikiIndex":438},{"path":471,"stem":472,"title":473,"date":431,"chapterOrder":474,"chapterDepth":429,"docKey":433,"docRoot":434,"docTitle":435,"isWikiDoc":439,"isWikiIndex":438},"\u002Fen-us\u002Fwiki\u002F2024-01-21-arm-keil-mdk6-jiao-cheng\u002F0500-jin-jie-shi-yong-jiao-cheng-quan-ping-tai-tong-yong","_i18n\u002Fen-us\u002Fwiki\u002F2024-01-21-Arm-Keil-MDK6教程\u002F0500-进阶使用教程(全平台通用)","Advanced Usage Tutorial (Universal for All Platforms)","0500",{"path":476,"stem":477,"title":478,"date":431,"chapterOrder":479,"chapterDepth":429,"docKey":433,"docRoot":434,"docTitle":435,"isWikiDoc":439,"isWikiIndex":438},"\u002Fen-us\u002Fwiki\u002F2024-01-21-arm-keil-mdk6-jiao-cheng\u002F0600-chang-jian-wen-ti","_i18n\u002Fen-us\u002Fwiki\u002F2024-01-21-Arm-Keil-MDK6教程\u002F0600-常见问题","Frequently Asked Questions","0600",{"path":434,"stem":481,"title":482,"date":431,"chapterOrder":440,"chapterDepth":429,"docKey":433,"docRoot":434,"docTitle":435,"isWikiDoc":439,"isWikiIndex":439},"_i18n\u002Fen-us\u002Fwiki\u002F2024-01-21-Arm-Keil-MDK6教程\u002Findex","Arm-Keil-MDK6 Tutorial",{"variants":484},[485,486,489,492,495],{"path":428,"localeSlug":442,"i18nKey":437},{"path":487,"localeSlug":488,"i18nKey":437},"\u002Fzh-hant\u002Fwiki\u002F2024-01-21-arm-keil-mdk6-jiao-cheng\u002F0400-windows-huan-jing-da-jian-jiu","zh-hant",{"path":490,"localeSlug":491,"i18nKey":437},"\u002Fzh-hk\u002Fwiki\u002F2024-01-21-arm-keil-mdk6-jiao-cheng\u002F0400-windows-huan-jing-da-jian-jiu","zh-hk",{"path":493,"localeSlug":494,"i18nKey":437},"\u002Fzh-tw\u002Fwiki\u002F2024-01-21-arm-keil-mdk6-jiao-cheng\u002F0400-windows-huan-jing-da-jian-jiu","zh-tw",{"path":496,"localeSlug":497,"i18nKey":437},"\u002Fzh-cn\u002Fwiki\u002F2024-01-21-arm-keil-mdk6-jiao-cheng\u002F0400-windows-huan-jing-da-jian-jiu","zh-cn",[428,445,487,445,490,445,493,445,496,445],1791541698996]