3.5 Setting up a new Project
The project has now been created. Now we need to add the files
the project. Double click on Source Group 1 and add these two files.
3.5.3 Configure the Processor
Since we have added
ure the processor. Double click
need the Clock Configuration and the General purpose I/O Configuration to be checked.
In the Clock Configuration do the following settings according to Figure
Clock Control Register Configuration (RCC CR)
Clock Configuration Register Configuration (RCC CFGR)
HSE: External High Speed Clock [Hz]: 8000000 (8MHz) (given by the board)
General purpose I/O Configuration: We need to configure the GPIO to fast outputs:
Check GPIOB: GPIO port B used and set all pins to General Purpose Output push-pull (max
speed 50MHz)
Embedded Flash Configuration: Set the settings acording to Figure 3.5.
Lukas Kohler
Figure 3.3: Add the startup code to the project
to the project we can use the Configuration Wizard to config-
STM32 Init.c
STM32 Init.c
Figure 3.4: Configuration wizard
STM32 Init.c
and select Configuration Wizard (Figure 3.4). We
2
Electrocardio
The Electrocardiogram
• Ecg: electrical ma
from the body surfa
and
gpio.c
• monitoring of heart
The Ecg signal can b
electrodes placed on the l
below.
3.4
Josef Goette
to
15
Need help?
Do you have a question about the STM32 Cortex-M3 and is the answer not in the manual?