STM32F4 Discovery Board Installation PDF Print E-mail
Written by Monfared   
Friday, 03 April 2015 09:49

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 www.keil.com/arm/mdk.asp. It does not require a serial number or license key.


 i1

 

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.

 i2

 

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".

 i3

 

5. Open Keil uVision from desktop.

 i4

 

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


 i5

 

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:

 

i6

 

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:

 

i7

 

or

 

i8  

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.

 

i9

 

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.

 

i10 

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.

 

 i11

 

Click Options for Target on the toolbar

i18 

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

 

i12

 

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.

 

i13

 

Click on Debug / Settings:

 

i14

 

 

i15

 

i16

 

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

 

i17

 

Four LEDs will start blinking.

 

Click Start/Stop Debug Session on the toolbar

i19

to start debugging the application on the hardware.

 

 

 

 

Last Updated on Friday, 22 January 2016 17:50