Renaming The Target; Building - STMicroelectronics STM32 Cortex-M3 Manual

Table of Contents

Advertisement

2
Electrocardiogram (Ecg) Signals
The Electrocardiogram (Ecg)
• Ecg: electrical manifestation of heart activity recorded
from the body surface

3.5.4 Renaming the Target

• monitoring of heart rate
Click on Project
Manage
and press OK. We will use this setting for simulating the program on the PC.
The Ecg signal can be recorded fairly easily with surface

3.6 Building

electrodes placed on the limbs and/or the chest, see pages
below.
Open the main file
gpio.c
The building process starts by clicking on Project
and generate an object file (*.o) and its listing report (*.lst) according to Figure 3.6.
STM32F10x.s
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.
Josef Goette
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
Figure 3.5: Configuration wizard: Flash
Components, ... Rename Target 1 to Simulator by a double click on it
and insert the minimal code for a counter on GPIOB from Listing 3.1.
STM32F10x.s
assembler
STM32F10x.o
STM32F10x.lst
Figure 3.6: Building Process
2
1 Intro
Rebuild all target files. This will assemble
STM32_Init.c
compiler
STM32_Init.o
linker
gpio.hex
gpio.map
6–16
gpio.c
compiler
gpio.o
2009
STM32 Cortex-M3 Tutorial
3 Keil SDK

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32 Cortex-M3 and is the answer not in the manual?

Table of Contents