> For the complete documentation index, see [llms.txt](https://ykkim.gitbook.io/ec/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ykkim.gitbook.io/ec/ec-course/tutorial/mdk-uvision/installation.md).

# Tutorial: Installing MDK uVision

## Installation

{% hint style="info" %}
윈도10 User(계정) 이름이 한글이면 설치 후 동작이 안 될 수 있음!!!

무조건 영문 계정에서 설치해야 함!!!!
{% endhint %}

![](https://3453146497-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgmrEstOHxu62gXxq1t%2Fuploads%2Fgit-blob-d29a1913bef3042a175efbf3eaf6f97923dd2659%2Fimage.png?alt=media)

### Download

Go to keil.com and Download **MDK-Lite (MDK-Core)** : [click here](https://www2.keil.com/mdk5)

> v5.35 @ 2021.8

![](https://3453146497-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgmrEstOHxu62gXxq1t%2Fuploads%2Fgit-blob-2d3ec2abe9224095a18c47068d36d1fd725402b1%2Fimage.png?alt=media)

### Install uVision

Start installation.

> This lecture uses mdk535.exe

![](https://3453146497-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgmrEstOHxu62gXxq1t%2Fuploads%2Fgit-blob-4dce8016bbf1603b475e2e8532e71241cbf9fd5c%2Fimage.png?alt=media)

Pack directory는 default로 설정 (경로에 한글이름 없게, 띄어쓰기 지양)

![](https://3453146497-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgmrEstOHxu62gXxq1t%2Fuploads%2Fgit-blob-fff4975bca5877005ed627521a43ab061efcad06%2Fimage.png?alt=media)

It will ask for Ulink driver installation. Proceed with installation

> Keil Tools 범용 직렬버스 컨트롤러 설치(USB 연결 드라이브)

![](https://3453146497-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgmrEstOHxu62gXxq1t%2Fuploads%2Fgit-blob-ba9b1a0db0b45ce57baaf351c0337f0e0e1fc29c%2Fimage.png?alt=media)

### Install Packs

After the uVision IDE is installed, we need to install necessary software Packs.

We are going to use STM32F411RE board for the lab, and we will install additional software packs specific for this board.

> If you use STM32F401RE, then search for this model

On Left Window Pane: **Devices** tab: **STMicroelectronics > STM32F4 Series> STM32F411RE> STM32F411RETx** 선택

{% hint style="info" %}
uVision이 업데이트 설치 완료 될때까지 Packs>Action:install이 비활성화 됨
{% endhint %}

On Right Window Pane: Packs tab: **Keil::STM32F4xxFxx\_DFP** Install

![](https://3453146497-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgmrEstOHxu62gXxq1t%2Fuploads%2Fgit-blob-0d35c01fc33918cef123eda3be1a86c0fccd2f36%2Fimage.png?alt=media)

###

### Install ST-Link Driver

[Download driver (STSW-LINK009) here](https://www.st.com/en/development-tools/stsw-link009.html)

> ST-LINK, ST-LINK/V2, ST-LINK/V2-1, STLINK-V3 USB driver signed for Windows10. This USB driver (STSW-LINK009) is for ST-LINK/V2, ST-LINK/V2-1 and STLINK-V3 boards(STM8/STM32 discovery boards, STM8/STM32 evaluation boards and STM32 Nucleo boards).
>
> It declares to the system the USB interfaces possibly provided by the ST-LINK: ST Debug, Virtual COM port and ST Bridge interfaces. **The driver must be installed prior to connecting the device, in order to have a successful enumeration.**

After you download "**en.stsw-link009\_v2.0.2.zip**", unzip the file.

Update the driver by

1. Connect MCU to PC
2. 윈도우 **장치 관리자 > 범용직렬버스장치> ST-Link Debug >드라이버 업데이트>** Select en-stsw-link009 unzipped folder

{% hint style="info" %}
MCU board (STM32F411) must be connected to your PC to install the USB driver
{% endhint %}

![](https://3453146497-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgmrEstOHxu62gXxq1t%2Fuploads%2Fgit-blob-17a8a7416b3dddb19bef886ed5cc82e92d08fbe7%2Fimage.png?alt=media\&token=4dcb6688-1070-46f6-9fa5-894ce1a60ebc)

> What is ST Link utiliy? <https://m.blog.naver.com/ansdbtls4067/221510252896>

### Update Install ST-Link Driver

[When uVision crashes when compiling](https://developer.arm.com/documentation/ka005381/latest/) Download the [ST-Link driver STLinkUSBDriver.dll](https://github.com/ykkimhgu/course-doc/blob/master/ec-course/tutorial/mdk-uvision/STLinkUSBDriver6.1.2.0Signed.zip) file and copy it to the subfolder of your MDK installation directory, such as C:\Keil\_v5\ARM\STLink\\
