3 Keil SDK
3.1 Introduction
The development of the firmware
we will write for the STM32 is done with the
µ
Vision3 from
Keil. This chapter shows how a simple project can be created, simulated and downloaded to the
target hardware.
3.2 Install
µ
Vision3
µ
Vision3 can be found on the CD delivered with this documentation. Install
µ
Vision3 as well the
demo projects. This documentation refers to a standard installation done in the folder
C:/Keil/ARM/Boards/ST/STM32F10X EVAL/
.
A quick guide about
µ
Vision3 can be found at
3.3 Install the Driver for the JTAG Adapter
Install the driver according the JTAG Adapter you are using.
3.4 Install the STM32 Peripheral Library
ST offers a free ARM-based 32-bit MCU STM32F10xxx standard peripheral library for program-
mers. This can be downloaded from
Direct Link:
This library is used for accessing the peripherals like SPI or CAN. The STM32 Peripheral Library
from ST comes as well with different examples.
Unpack the library and copy the
/Libraries/STM32F10x StdPeriph Driver/inc/
to
C:/Keil/ARM/INC/ST/STM32F10x
and
/Libraries/STM32F10x StdPeriph Driver/src
to
C:/Keil/ARM/INC/RV31/LIB/ST/STM32F10x/
. This has to be done only once to update the
libraries.
Keil offers as well a peripheral configuration wizard but not for all peripherals. Chapter
in-
troduces the peripherals and shows how they are configured - ether by the configuration wizard
from Keil or using the libraries from ST.
1
Software for microcontroller
13