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
Page 1
STEP 4: Unzip and install the ST-LINK/V2 driver for Windows as shown:
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).
Page 2
STEP 7:
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.
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.
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.
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.
Page 6