[{"data":1,"prerenderedAt":489},["ShallowReactive",2],{"wiki-page-/en-us/wiki/2024-01-21-arm-keil-mdk6-jiao-cheng/ch4-windows-pei-zhi-mdk6-huan-jing-jiao-cheng":3,"wiki-doc-items-/en-us/wiki/2024-01-21-arm-keil-mdk6-jiao-cheng/ch4-windows-pei-zhi-mdk6-huan-jing-jiao-cheng":437,"language-switcher-data-/en-us/wiki/2024-01-21-arm-keil-mdk6-jiao-cheng/ch4-windows-pei-zhi-mdk6-huan-jing-jiao-cheng":473,"wiki-i18n-paths-/en-us/wiki/2024-01-21-arm-keil-mdk6-jiao-cheng/ch4-windows-pei-zhi-mdk6-huan-jing-jiao-cheng":488},{"id":4,"title":5,"body":6,"canonicalPath":417,"chapter":418,"chapterSort":419,"date":420,"description":51,"docI18nKey":421,"docKey":422,"docRoot":423,"docTitle":424,"extension":425,"i18nKey":426,"isBlogPost":427,"isWikiDoc":428,"isWikiIndex":427,"layout":429,"legacyPath":429,"locale":430,"localeSlug":431,"meta":432,"navigation":428,"path":417,"seo":433,"sourcePath":434,"sourceStem":426,"stem":435,"wikiDepth":59,"__hash__":436},"content/_i18n/en-us/wiki/2024-01-21-Arm-Keil-MDK6教程/ch4-Windows配置MDK6环境教程.md","Tutorial on Configuring MDK6 Environment on Windows",{"type":7,"value":8,"toc":407},"minimark",[9,14,27,31,36,45,71,77,83,88,93,98,104,109,112,120,123,128,136,142,156,159,164,168,173,178,183,188,193,198,203,208,213,217,222,227,232,237,242,246,251,256,261,266,274,279,284,287,291,294,299,302,305,308,311,316,319,324,327,332,335,340,343,348,351,356,359,364,368,373,378,381,385,388,393,398,403],[10,11,13],"h3",{"id":12},"software-to-prepare","Software to prepare",[15,16,17,21,24],"ol",{},[18,19,20],"li",{},"Keil MDK 5.3x and above",[18,22,23],{},"The latest version of VScode",[18,25,26],{},"CubeMX latest version",[10,28,30],{"id":29},"vcpkg-installation-and-environment-setup","vcpkg Installation and Environment Setup",[15,32,33],{},[18,34,35],{},"Clone the vcpkg repository",[37,38,39],"p",{},[40,41,42],"a",{"href":42,"rel":43},"https://github.com/microsoft/vcpkg/tree/master",[44],"nofollow",[46,47,52],"pre",{"className":48,"code":49,"language":50,"meta":51,"style":51},"language-bash shiki shiki-themes github-light github-dark","git clone https://github.com/microsoft/vcpkg.git\n","bash","",[53,54,55],"code",{"__ignoreMap":51},[56,57,60,64,68],"span",{"class":58,"line":59},"line",1,[56,61,63],{"class":62},"sScJk","git",[56,65,67],{"class":66},"sZZnC"," clone",[56,69,70],{"class":66}," https://github.com/microsoft/vcpkg.git\n",[37,72,73],{},[74,75],"img",{"alt":51,"src":76},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image29.webp",[15,78,80],{"start":79},2,[18,81,82],{},"Generate the vcpkg program.",[37,84,85],{},[74,86],{"alt":51,"src":87},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image30.webp",[37,89,90],{},[74,91],{"alt":51,"src":92},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image31.webp",[37,94,95],{},[74,96],{"alt":51,"src":97},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image32.webp",[15,99,101],{"start":100},3,[18,102,103],{},"Set up the environment",[37,105,106],{},[74,107],{"alt":51,"src":108},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image33.webp",[37,110,111],{},"Click on Advanced System Settings.",[37,113,114,117],{},[74,115],{"alt":51,"src":116},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image34.webp",[74,118],{"alt":51,"src":119},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image35.webp",[37,121,122],{},"Configure both user environment variables and system environment variables.",[37,124,125],{},[74,126],{"alt":51,"src":127},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image36.webp",[37,129,130,133],{},[74,131],{"alt":51,"src":132},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image37.webp",[74,134],{"alt":51,"src":135},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image38.webp",[15,137,139],{"start":138},4,[18,140,141],{},"test",[46,143,145],{"className":48,"code":144,"language":50,"meta":51,"style":51},"vcpkg --version\n",[53,146,147],{"__ignoreMap":51},[56,148,149,152],{"class":58,"line":59},[56,150,151],{"class":62},"vcpkg",[56,153,155],{"class":154},"sj4cs"," --version\n",[37,157,158],{},"As shown in the image below, the installation was successful.",[37,160,161],{},[74,162],{"alt":51,"src":163},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image39.webp",[10,165,167],{"id":166},"generate-the-project-files","Generate the project files.",[15,169,170],{},[18,171,172],{},"Open CubeMX and log in to your ST account.",[37,174,175],{},[74,176],{"alt":51,"src":177},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image40.webp",[15,179,180],{"start":79},[18,181,182],{},"Install the Pack",[37,184,185],{},[74,186],{"alt":51,"src":187},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image41.webp",[37,189,190],{},[74,191],{"alt":51,"src":192},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image42.webp",[37,194,195],{},[74,196],{"alt":51,"src":197},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image43.webp",[15,199,200],{"start":100},[18,201,202],{},"Configure the project",[37,204,205],{},[74,206],{"alt":51,"src":207},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image44.webp",[37,209,210],{},[74,211],{"alt":51,"src":212},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image45.webp",[10,214,216],{"id":215},"open-the-project-and-configure-the-default-compiler","Open the project and configure the default compiler.",[15,218,219],{},[18,220,221],{},"Set the default compiler to ARMCLANG (AC6).",[37,223,224],{},[74,225],{"alt":51,"src":226},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image46.webp",[37,228,229],{},[74,230],{"alt":51,"src":231},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image47.webp",[15,233,234],{"start":79},[18,235,236],{},"Compilation verification",[37,238,239],{},[74,240],{"alt":51,"src":241},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image48.webp",[10,243,245],{"id":244},"download-and-activate-the-keil-mdk6-plugin","Download and activate the Keil MDK6 plugin.",[15,247,248],{},[18,249,250],{},"Open VScode",[37,252,253],{},[74,254],{"alt":51,"src":255},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image49.webp",[15,257,258],{"start":79},[18,259,260],{},"Install the Keil Studio Pack plugin",[37,262,263],{},[74,264],{"alt":51,"src":265},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image50.webp",[15,267,268,271],{"start":100},[18,269,270],{},"After installation, restart VSCode.",[18,272,273],{},"Then two windows will pop up in the bottom right corner. Click to activate MDK6Community.",[37,275,276],{},[74,277],{"alt":51,"src":278},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image51.webp",[37,280,281],{},[74,282],{"alt":51,"src":283},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image52.webp",[37,285,286],{},"Displaying this notification means activation was successful.",[10,288,290],{"id":289},"convert-mdk5-project-to-mdk6-project","Convert MDK5 project to MDK6 project",[37,292,293],{},"Click Convert to convert.",[37,295,296],{},[74,297],{"alt":51,"src":298},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image53.webp",[37,300,301],{},"In the bottom right corner, install all the packages that need to be installed, and allow any prompts that appear.",[37,303,304],{},"When installing Packs, you need to ensure a good network environment (one with internet access to bypass restrictions).",[37,306,307],{},"This stage will last 5–20 minutes, so please wait patiently. (Depends on the speed of your proxy service.)",[37,309,310],{},"(These operations are only needed for the first run)",[37,312,313],{},[74,314],{"alt":51,"src":315},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image54.webp",[37,317,318],{},"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.",[37,320,321],{},[74,322],{"alt":51,"src":323},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image55.webp",[37,325,326],{},"This survey can be skipped.",[37,328,329],{},[74,330],{"alt":51,"src":331},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image56.webp",[37,333,334],{},"As shown in the figure, the installation was successful.",[37,336,337],{},[74,338],{"alt":51,"src":339},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image57.webp",[37,341,342],{},"If the environment is not activated here, you need to activate it. (The image shows deactivating the environment.)",[37,344,345],{},[74,346],{"alt":51,"src":347},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image58.webp",[37,349,350],{},"Click to convert the MDK5 project",[37,352,353],{},[74,354],{"alt":51,"src":355},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image59.webp",[37,357,358],{},"This indicates that the conversion of the MDK6 project was successful.",[37,360,361],{},[74,362],{"alt":51,"src":363},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image60.webp",[10,365,367],{"id":366},"compile","Compile",[37,369,370],{},[74,371],{"alt":51,"src":372},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image61.webp",[37,374,375],{},[74,376],{"alt":51,"src":377},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image62.webp",[37,379,380],{},"As you can see, the size after compiling with KEIL MDK6 is exactly the same as after compiling with KEIL MDK5.",[10,382,384],{"id":383},"how-to-configure-st-link-and-other-debuggers-on-windows","How to configure ST-Link and other debuggers on Windows?",[37,386,387],{},"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.",[389,390,392],"h4",{"id":391},"add-device-select-st-link","Add device, select ST-Link.",[37,394,395],{},[74,396],{"alt":51,"src":397},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image63.webp",[37,399,400],{},[74,401],{"alt":51,"src":402},"https://cdn.tungchiahui.cn/tungwebsite/assets/images/2024/01/21/image64.webp",[404,405,406],"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":51,"searchDepth":79,"depth":79,"links":408},[409,410,411,412,413,414,415,416],{"id":12,"depth":100,"text":13},{"id":29,"depth":100,"text":30},{"id":166,"depth":100,"text":167},{"id":215,"depth":100,"text":216},{"id":244,"depth":100,"text":245},{"id":289,"depth":100,"text":290},{"id":366,"depth":100,"text":367},{"id":383,"depth":100,"text":384},"/en-us/wiki/2024-01-21-arm-keil-mdk6-jiao-cheng/ch4-windows-pei-zhi-mdk6-huan-jing-jiao-cheng","4",4000000,"2024-01-21","wiki/2024-01-21-arm-keil-mdk6-jiao-cheng","en-us:2024-01-21-arm-keil-mdk6-jiao-cheng","/en-us/wiki/2024-01-21-arm-keil-mdk6-jiao-cheng","Arm Keil MDK6教程","md","wiki/2024-01-21-Arm-Keil-MDK6教程/ch4-Windows配置MDK6环境教程",false,true,null,"en-US","en-us",{},{"title":5,"description":51},"/wiki/2024-01-21-arm-keil-mdk6-jiao-cheng/ch4-windows-pei-zhi-mdk6-huan-jing-jiao-cheng","_i18n/en-us/wiki/2024-01-21-Arm-Keil-MDK6教程/ch4-Windows配置MDK6环境教程","rwYYvEehF2bkBzh26GirP7Yoj7vqYDtKptKRzBnakAA",[438,444,450,456,457,463,469],{"path":439,"stem":440,"title":441,"date":420,"chapter":442,"chapterSort":443,"docKey":422,"docRoot":423,"docTitle":424,"isWikiDoc":428,"isWikiIndex":427},"/en-us/wiki/2024-01-21-arm-keil-mdk6-jiao-cheng/ch1-jian-jie","_i18n/en-us/wiki/2024-01-21-Arm-Keil-MDK6教程/ch1-简介","Introduction","1",1000000,{"path":445,"stem":446,"title":447,"date":420,"chapter":448,"chapterSort":449,"docKey":422,"docRoot":423,"docTitle":424,"isWikiDoc":428,"isWikiIndex":427},"/en-us/wiki/2024-01-21-arm-keil-mdk6-jiao-cheng/ch2-guan-fang-jiao-cheng","_i18n/en-us/wiki/2024-01-21-Arm-Keil-MDK6教程/ch2-官方教程","Official tutorial","2",2000000,{"path":451,"stem":452,"title":453,"date":420,"chapter":454,"chapterSort":455,"docKey":422,"docRoot":423,"docTitle":424,"isWikiDoc":428,"isWikiIndex":427},"/en-us/wiki/2024-01-21-arm-keil-mdk6-jiao-cheng/ch3-linux-pei-zhi-mdk6-huan-jing-jiao-cheng","_i18n/en-us/wiki/2024-01-21-Arm-Keil-MDK6教程/ch3-Linux配置MDK6环境教程","Linux MDK6 Environment Setup Tutorial","3",3000000,{"path":417,"stem":435,"title":5,"date":420,"chapter":418,"chapterSort":419,"docKey":422,"docRoot":423,"docTitle":424,"isWikiDoc":428,"isWikiIndex":427},{"path":458,"stem":459,"title":460,"date":420,"chapter":461,"chapterSort":462,"docKey":422,"docRoot":423,"docTitle":424,"isWikiDoc":428,"isWikiIndex":427},"/en-us/wiki/2024-01-21-arm-keil-mdk6-jiao-cheng/ch5-jin-jie-shi-yong-jiao-cheng-quan-ping-tai-tong-yong","_i18n/en-us/wiki/2024-01-21-Arm-Keil-MDK6教程/ch5-进阶使用教程(全平台通用)","Advanced Usage Tutorial (Universal for All Platforms)","5",5000000,{"path":464,"stem":465,"title":466,"date":420,"chapter":467,"chapterSort":468,"docKey":422,"docRoot":423,"docTitle":424,"isWikiDoc":428,"isWikiIndex":427},"/en-us/wiki/2024-01-21-arm-keil-mdk6-jiao-cheng/ch6-chang-jian-wen-ti","_i18n/en-us/wiki/2024-01-21-Arm-Keil-MDK6教程/ch6-常见问题","Frequently Asked Questions","6",6000000,{"path":423,"stem":470,"title":471,"date":420,"chapter":429,"chapterSort":472,"docKey":422,"docRoot":423,"docTitle":424,"isWikiDoc":428,"isWikiIndex":428},"_i18n/en-us/wiki/2024-01-21-Arm-Keil-MDK6教程/index","Arm-Keil-MDK6 Tutorial",0,{"variants":474},[475,476,479,482,485],{"path":417,"localeSlug":431,"i18nKey":426},{"path":477,"localeSlug":478,"i18nKey":426},"/zh-hant/wiki/2024-01-21-arm-keil-mdk6-jiao-cheng/ch4-windows-pei-zhi-mdk6-huan-jing-jiao-cheng","zh-hant",{"path":480,"localeSlug":481,"i18nKey":426},"/zh-hk/wiki/2024-01-21-arm-keil-mdk6-jiao-cheng/ch4-windows-pei-zhi-mdk6-huan-jing-jiao-cheng","zh-hk",{"path":483,"localeSlug":484,"i18nKey":426},"/zh-tw/wiki/2024-01-21-arm-keil-mdk6-jiao-cheng/ch4-windows-pei-zhi-mdk6-huan-jing-jiao-cheng","zh-tw",{"path":486,"localeSlug":487,"i18nKey":426},"/zh-cn/wiki/2024-01-21-arm-keil-mdk6-jiao-cheng/ch4-windows-pei-zhi-mdk6-huan-jing-jiao-cheng","zh-cn",[417,434,477,434,480,434,483,434,486,434],1780671797452]