Le1 1
Le1 1
Le1 1
Anupama KR
Embedded System Design
TOOL FOR
LPC2378
Introduction
Keil IDE Development Tool for LPC2378
Keil IDE is an application that allows seamless integration of several different programs into
one development environment. This text editor allows the user to launch different programs including
assemblers, compilers, debuggers, programmers, and more. If configured correctly, the environment
can also read back errors from these programs and display them for the user. Having a development
environment that is made up of several separate programs allows the user to replace any part of the
environment.
If error detection is set correctly, the user’s errors will be highlighted and the compilers error
message will be displayed. The user never has to leave the editing environment to run the compiler,
and the editor automatically opens any files that contain an error.
When you use the Keil µVision, the project development cycle is roughly the same as it is for any
other software development project.
1. Create a project, select the target chip from the device database, and configure the tool
settings.
2. Create source files in C or assembly.
3. Build your application with the project manager.
4. Correct errors in source files.
5. Test the linked application.
The following block diagram illustrates the complete µVision/ARM software development cycle.
C Compiler Assembler
Linker/Locator
µVision 3 Debugger
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 NXP LPC2378 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
5. Generally when you are using Assembly Language Programming, you will select the option No.
If you are writing the program in C/C++ you have select option Yes.
6. You will now get a Keil Window shown in Figure 3
Figure 3
7. Now you have to set options for tools. Click on on the toolbar. The window shown in
Figure 4 will appear
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.
Indicates the instruction at which there is a breakpoint.
To clear the breakpoint all you have to do is move the cursor to the instruction at which the breakpoint
is set and click on .