第 4 節

Tutorial on Configuring MDK6 Environment on Windows

0瀏覽次數0訪問次數--跳出率--平均停留

Software to prepare

  1. Keil MDK 5.3x and above
  2. The latest version of VScode
  3. CubeMX latest version

vcpkg Installation and Environment Setup

  1. Clone the vcpkg repository

https://github.com/microsoft/vcpkg/tree/master

git clone https://github.com/microsoft/vcpkg.git

  1. Generate the vcpkg program.

  1. Set up the environment

Click on Advanced System Settings.

Configure both user environment variables and system environment variables.

  1. test
vcpkg --version

As shown in the image below, the installation was successful.

Generate the project files.

  1. Open CubeMX and log in to your ST account.

  1. Install the Pack

  1. Configure the project

Open the project and configure the default compiler.

  1. Set the default compiler to ARMCLANG (AC6).

  1. Compilation verification

Download and activate the Keil MDK6 plugin.

  1. Open VScode

  1. Install the Keil Studio Pack plugin

  1. After installation, restart VSCode.
  2. Then two windows will pop up in the bottom right corner. Click to activate MDK6Community.

Displaying this notification means activation was successful.

Convert MDK5 project to MDK6 project

Click Convert to convert.

In the bottom right corner, install all the packages that need to be installed, and allow any prompts that appear.

When installing Packs, you need to ensure a good network environment (one with internet access to bypass restrictions).

This stage will last 5–20 minutes, so please wait patiently. (Depends on the speed of your proxy service.)

(These operations are only needed for the first run)

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.

This survey can be skipped.

As shown in the figure, the installation was successful.

If the environment is not activated here, you need to activate it. (The image shows deactivating the environment.)

Click to convert the MDK5 project

This indicates that the conversion of the MDK6 project was successful.

Compile

As you can see, the size after compiling with KEIL MDK6 is exactly the same as after compiling with KEIL MDK5.

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.

音乐页