PROCEDURE FOR KEIL PROJECT TO GENERATE .
HEX FILE FORLPC176
P Keil Setup Steps
Step1: Open the Keil software and select the New Step2: Browse to your project folder and provide the
Micro vision project from Project project name and click on Save
shown below.
Step4: Select the controller (NXP: LPC1768) for
Step3: Once the project is saved a new pop up
Interfacing and LPC2148 for ALPs and click on OK
“Select Device for Target” opens, Select the controller
(NXP:LPC1768) and click on OK.
Step6: Create a new file to write the
Step5: As LPC1768 needs the startup code, click on Yes
option to include the LPC17xx Startup file.
Step7: Type the code (sample led on off main program). Step8: After typing the code save the file as
main.c for Interfacing and main.s for ALPs
Step10: Add the main.c along with
Step9: Add the recently saved file to the Source system_LPC17xx.c. and Remove Startup file for
Group ALPs.
Step12: Code is compiled with no errors. And
Step11: Build the project and fix the compiler
Debug run Step by Step and Check the Output.
errors/warnings if any.
Step13: Click on Target Options to select the Step14: Set IROM1 start address as 0x0000.
option for generating .hex file.
Step16: .Hex file is generated after a rebuild
Step15: Enable the option to generate the
Step17: Check the project folder for the generated
.hex file.
Now .hex file with project name will be generated.