Although being quite old now, LPC2148 is still highly used in academic institutes as a getting started into the world of ARM7 based microcontrollers. And many industries also use LPC2148 as a starting ARM7 microcontroller for computationally advanced process. There are many different Compilers available for ARM7 but the most popular among them is still Keil uVIsion which is developed and maintained by ARM Holdings itself. If the proper steps are not known, it becomes very frustrating to get started with Keil uVision. Here are the exact steps you need to follow for creating a project with Keil uVision along with a guided video tutorial.

Here are the steps to create project with Keil uVision for LPC2148

  1. Open Keil microVision

  1. You’ll see a blank editor like this

  1. Goto Project menu and click on New uVision Project

  1. Now save this project in a new folder, Make sure you always save every new project in a separate folder so that your files don’t get mixed up

  1. Now select Device, here search for Company Name “NXP” and then select LPC2148

  1. This is Important, click “YES” to adding the startup.s file to your project

  1. Now you’ll see a blank editor like this

  1. Now right click the Target 1 and click, goto Options for target

  1. In the Target Tab, check and confirm that the clock frequency is the same as you’re using, in this case, its 12MHz

  1. Now go to Output tab and click check box of Create Hex File

  1. Now go to the Linker tab, and check the User memory layout from target Dialog checkbox

  1. Now go to file menu, and choose a new file

  1. Save that file as “anyFileName.C” the extension .c is to be given manually

  1. Now again right click the Target 1 and click on “Add Files to group Source Group 1”

  1. Now select the same .C file which you’ve saved in the last step, click ADD and then CLOSE

  1. That’s it! You can type your code here and build it using the Keyboard shortcut F7 or Build target Button. See the video below for better understanding

If you face difficulties with project creation, you can also see for the video below

Link to the Video

Happy Learning!!!