Nt1330 Unit 6.1 Case Analysis

Words: 520
Pages: 3

6.1.2 Create a Project in Keil for LPC2148 development board
1. To create a new project, Select Project and then click on New uVision Project. Figure 6.2: Step to create New Project

2. Create a new directory and name it. Click open to enter in to this directory. Figure 6.3: Step to create New Directory
3. Inside this directory create a new project and name it and click Save to continue. Figure 6.4: Step to create New Project

4. In the next window click on NXP (founded by Philips) and then expand it. Figure 6.5: Step to locate NXP
5. Now select target device as LPC2148 and click OK to continue. Figure 6.6: Step to Select LPC2148
6. Click Yes to copy Startup.s file to project folder. This file configures stack, maps memory and PLL
…show more content…
Observe the project explorer area in the main window. Figure 6.8: Project explorer area

8. Now click Project then click Manage and then on Components, Environments, Books from the main menu to ensure compiler settings. Figure 6.9: Step to ensure compiler settings
9. In the Folders/Extensions tab ensure the compiler settings are as shown in the Figure below. Click OK to continue. Figure 6.10: compiler settings
10. Now click File then clickNew to create a new file. Figure 6.11: Step to create New File
11. Save the new file in to the same folder that was created earlier and name it as main.c and click Save to continue. Figure 6.12: Step to save New File
12. Now right click on the Source Group 1 from the project explorer and then click on Add Files to Group ‘Source Group 1’ as shown in the Figure below. Figure 6.13: Step to add “main.c” to the source group
13. Select “main.c” file and then click on Add tab. Figure 6.14: Add “main.c” to the source group
14. Now we can see that “main.c” file is added to the source group. Figure 6.15: Step to observe “main.c”
15. Right click on Target1 in the left side window and select the Options for Target ‘Target 1’ option as shown in the Figure below. Figure 6.16: Step to select option for