1 Intro
2
Electrocardiogram (
Ecg
) Signals
The Electrocardiogram (
Ecg
)
•
Ecg
: electrical manifestation of heart activity recorded
from the body surface
•
monitoring of heart rate
The
Ecg
signal can be recorded fairly easily with surface
electrodes placed on the limbs and/or the chest, see pages
6
–
16
below.
Josef Goette
2
2009
3 Keil SDK
Figure 3.5:
Configuration wizard: Flash
3.5.4 Renaming the Target
Click on
Project
7→
Manage
7→
Components, ...
Rename
Target
1 to
Simulator
by a double click on it
and press OK. We will use this setting for simulating the program on the PC.
3.6 Building
Open the main file
gpio.c
and insert the minimal code for a counter on GPIOB from Listing
The building process starts by clicking on
Project
7→
Rebuild all target files
. This will assemble
STM32F10x.s
and generate an object file (*.o) and its listing report (*.lst) according to Figure
The c-files are compiled and object file (*.o) generated. The linker then puts together all the object
files and generates (with an ELF converter) the binary file and its report (*.map). The compiled
file can now be used for the simulation and not jet for downloading since we haven’t configured
the linker properly.
STM32F10x.s
assembler
STM32_Init.c
compiler
gpio.c
compiler
linker
STM32F10x.o
STM32F10x.lst
STM32_Init.o
gpio.o
gpio.hex
gpio.map
Figure 3.6:
Building Process
The build creates an Executable File *.elf which is placed in the Output folder. When you use a
JTAG adapter, the ELF file is required to download to the board using JTAG. The build creates an
Intel HEX executable file which is placed in the same output folder for external program down-
loading through the serial port.
16
STM32 Cortex-M3 Tutorial