Le1 2
Le1 2
Le1 2
TOOL FOR
STM32
Introduction
Keil IDE Development Tool for STM32
3. Give your project a name for example demo2 and press Save. (We suggest that you use a
separate folder for each project. You can simply use the icon Create New Folder in this dialog
to get a new empty folder. Then select this folder and enter the name for the new project.)
Kiel IDE will then display the following window as shown in Figure 2
Figure 2: Window to select CPU
4. When you create a new project µVision asks you to select a CPU for your project. The Select
Device dialog box shows the µVision device database. Select STM#2F407iGHx and press OK. This
selection sets necessary tool options for the device and simplifies in this way the tool
configuration.
Keil will then ask you
Figure 4
7. Now you have to set options for tools. Click on on the toolbar. The window shown in
Figure 5 will appear
Figure 5
8. Set the IROM to 0x80000000. You need not change anything else.
9. Go to Linker option. Thee also set the address to 0x8000000 and then select Memory
Layout from Target as shown in Figure 6
Figure 6
10. Go to the ‘Debug’ tab of the tools option window. Select ‘Use Simulator’ option.
17. The debugger can then be started by clicking on . The debugger supports both single
step and break points. There are a number of debugging windows.⇒ Code – Memory – CPU
Registers – Symbols. This is shown in Figure12
There are other buttons available as well, as you move the cursor over the buttons, the
purpose of each button will be displayed.
The debugger is user-friendly GUI and is easy to handle. To set a breakpoint in the program,
the cursor just needs to be moved to the instruction at which the breakpoint is to be set and click on
to set the breakpoint.
Indicates where the instruction to which the Program Counter is pointing to.