STM32F4 Discovery Board Installation PDF Print E-mail
Written by Monfared   

1. Download and Install the KEIL MDK-ARM, during the installation uncheck/undo the Pack Installer.
Close the Pack Installer window.
You can download the Lite version from It does not require a serial number or license key.



2. Install ST-Link Driver and update ST-Link Firmware:
Go to : …\Keil_vx\ARM\STLink\USBDriver

To install the driver, run stlink_winusb_install.bat in administrator mode, before
connecting any ST-Link to the PC.


3. Connect the STM32FDiscovery to the PC.
The driver will be installed automatically.



4. Upgrade the ST-Link firmware:
Go to : C:\Keil_vx\ARM\STLink

Run ST-LinkUpgrade.exe

In the opened window click on "Device Connect" then "yes".



5. Open Keil uVision from desktop.



6. Click Pack Installer to download and install the relevant Software Packs (some are already installed):



Note: Select the appropriate Device or Board to narrow the list of Packs. If your device is not in the list of Devices, then select Packs/Check for Updates.

In the Action menu select install or update for these three packs:




7. Verify Installation using the example project (Blinky):
In the Pack Installer, select the tab Examples. Select the appropriate Device or Board to narrow the list of examples:







Press Copy, then a dialog box will ask for the desired destination. The example will be directly installed into this folder. Folders that do not exist will be created automatically.
- Tick Launch µVision to open the project after installation.
- Enable Use Pack Folder Structure to copy example projects into a common folder. This avoids overwriting files from other example projects. Disable Use Pack Folder Structure to reduce the complexity of the example path.




After copying the example, μVision starts and looks similar to the picture below:

Most example projects contain an Abstract.txt file with essential information about the operation and hardware configuration.



Build the application using the toolbar button Rebuild.

The Build Output window shows information about the build process. An error-free build shows information about the program size.




Click Options for Target on the toolbar


 and select the Target tab. Verify the crystal frequency and the memory areas.




Select the Debug tab. Verify that the correct debug adapter of the evaluation board you are using is selected and enabled, here the ST-Link Debugger.




Click on Debug / Settings:









Click Download on the toolbar to load the application to your target hardware. The Build Output window shows information about the download progress.




Four LEDs will start blinking.


Click Start/Stop Debug Session on the toolbar


to start debugging the application on the hardware.