0% found this document useful (0 votes)
6 views7 pages

Keil Project Creation Steps

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views7 pages

Keil Project Creation Steps

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Keil Project Creation Steps

Open Keil Software

Go to Project → New µVision Project

Create a separate folder for each program and give a project name. Then click on save.
‘Select Device for Target’ Window appears. Search for the Processor for which the program
is to be written. LPC2138. Select the corresponding CPU and Click on OK

Click on ‘YES’ to copy a startup.s file to the Project folder.


The Project is created. You can notice in the project window that there is only startup.s
present in the source group.

Right click on Source Group 1 and select Add New item to Group ‘ Source Group 1’
Click on ‘C File’ and give a name to the C file. Then click on Add. It will automatically
appear in .c file format.

Led Blink.c will be added under the Source Group 1 as shown in the picture. Type the
program for Led Blink.c and save it.
Right Click on Target 1 and select ‘Options for Target ‘Target1’…’

Go to Output tab and check the box for ‘Create Hex File’
Go to Linker tab and check the box for ‘Use Memory Layout from Target Dialog’

Build the Target. You can also press F7 to build the target.
The Build Output window will show the status of hex file creation and the error messages if
any.

The Project is built successfully and the hex file is created. Since these many files are created
for a project it is better to have separate folders for each experiment to avoid interlinking of
startup files.

You might also like