Monday, January 21, 2013

Generating Hex file using Keil

Earlier i posted about Intel hex file and different components in it. And now here i am posting about how to generate hex file using Keil software. Keil is the all in one simulator which is most popular in embedded lovers as well as in industry. By using keil you can develop your source code in both the languages that is assembly language and C language but the hex file is common for both.

So first make sure that there is no error in your source code and if there is any then make it solve. Now just follow the below steps use screenshot if you find any difficulty.

Step-1: In menu bar navigate to Project >> Options to target and click on it or in project workspace window right click on Target1 >> Options for target and new window appears on your desktop.



Steps-2: In Options for Target window go to Target tab and enter the value of your crustal frequency in Xtal field. Make sure that you enter this in MHz.



Steps-3: Now go to Output tab and just tick mark the Create HEX file check box and hit ok.


Now just rebuild your target and you are done. your hex file is generated in the same folder in which your project file is located.

Important Note: Keil does not provide any path selection option for storing generated hex file. it is automatically store it in the same folder which contains your project file.

Now you can burn this hex file into ROM of micro-controller..

Please share this with your friend...

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.