Anda di halaman 1dari 6

How to install the ST-LINK/V2 USB driver for Windows 7 for use with the STM32F3DISCOVERY board from

STMicroelectronics and KEIL ARM-MDK

STEP 1: First download and install the MDK-ARM Microcontroller Development Kit from KEIL here: https://www.keil.com/demo/eval/arm.htm Alternatively you can download it from the mapped ElecEngStudents$ drive when logged in using a NMMU campus PC. Ignore steps 1 and 2 if you are not going to use the MDK-ARM Microcontroller Development Kit from KEIL. STEP 2: Install the MDK-ARM Microcontroller Development Kit on your PC or laptop. It is highly recommended not to change the default folder location during the installation. (C:\Keil) STEP 3: The MDK-ARM Microcontroller Development Kit has an IDE named Vision which communicates (USB) with the ST-LINK/V2 in-circuit debugger and programmer to program and debug your code on the STM32F3DISCOVERY board. The latest ST-LINK/V2 driver and its testing program should be downloaded from here: http://www.st.com/web/catalog/tools/FM146/CL1984/SC724/SS1677/PF251168

F Adlam and G Phillips

Nelson Mandela Metropolitain University

Page 1

The latest version of the downloaded file will be similar as shown:

STEP 4: Unzip and install the ST-LINK/V2 driver for Windows as shown:

Double click on the filename to start the installation process. STEP 5:

Install the STM32 ST-LINK Utility which is used to test if there are communication between the laptop/PC and the STM32F3DISCOVERY board using USB. Double click on the downloaded filename to start the installation process. If you are Windows 8 there is another document we have written showing you how to install the ST-LINK/V2 driver under Windows 8 (How to install the ST-LINK_V2 USB driver for Windows 8).

F Adlam and G Phillips

Nelson Mandela Metropolitain University

Page 2

STEP 6: Connect the STM32F3DISCOVERY board to a USB port on the laptop/PC.

STEP 7:

Open the STM32 ST-LINK Utility. STEP 8:

Double click on ORANGE circle (connect to the target) to establish a communication connection between STM32 ST-LINK Utility and the ST-LINK/V2 using the installed ST-LINK/V2 USB driver for Windows 7.

F Adlam and G Phillips

Nelson Mandela Metropolitain University

Page 3

STEP 9:

If the installed driver works the STM32 ST-LINK Utility will indicate the status as shown. STEP 10: The ST-LINK/V2 in-circuit debugger and programmer firmware should be updated to the latest version. Unplug the USB cable from the STM32F3DISCOVERY board and remove the two STLINK jumpers labelled CN4.

Connect the USB cable to the STM32F3DISCOVERY board.

F Adlam and G Phillips

Nelson Mandela Metropolitain University

Page 4

STEP 11: Open the ST-LINK Firmware update utility as shown below.

STEP 12:

Double click the ORANGE circled button to establish a USB connection to the ST-LINK/V2. STEP 13:

If the firmware version of the ST-LINK/V2 is older than indicated by STM32 ST-LINK Utility, double click on the YES button to start the firmware update process.

F Adlam and G Phillips

Nelson Mandela Metropolitain University

Page 5

STEP 14:

Close the two upgrade windows. Unplug the USB cable from the STM32F3DISCOVERY board and insert the two ST-LINK jumpers labelled CN4. STEP 15: Connect the USB cable to the STM32F3DISCOVERY board and use the STM32 ST-LINK Utility to test the ST-LINK/V2 USB communication link after the firmware upgrade. STEP 16: If the ST-LINK/V2 USB driver for Windows 7 is installed it will be indicated in the device manager as shown below.

F Adlam and G Phillips

Nelson Mandela Metropolitain University

Page 6

Anda mungkin juga menyukai