Microcontroller › 8051 › how to convert C code into hex code using keil compiler
- This topic has 30 replies, 22 voices, and was last updated 5 years, 9 months ago by shivkumar.
-
AuthorPosts
-
January 27, 2012 at 6:25 am #7081pratikParticipant
Hello sir
I converted hex file of “Electronic code lock with user defined password using 8051 microcontroller (AT89C51)” project using keil compiler as you mentioned. But when i check the property of final hex file. It wass 5.08kb. But programming memory is just 4kb of at89c51????
Plz HELP!February 5, 2012 at 2:51 pm #7115mairajParticipantwich s/w is dis? plzz inform me
February 19, 2012 at 10:48 am #7185Budi SantosoParticipantDear dagakshay
Sorry, I still do not understand how to convert from C to hex file. I have tried to convert but it’s still wrong c. whether from the existing code in this file can directly convert or are still using other data.
Thanks for the helpFebruary 28, 2012 at 3:31 pm #7202shyam arshidParticipantwhich hardware is connected to microcontroller to copy the code into it..?
March 16, 2012 at 4:41 pm #7308rahulParticipanthi dagakshay sir,
for calculating hex file memory we consider second last line instead of last line……?actually last line indicate the memory last location.
March 23, 2012 at 4:59 pm #7325priya khachaneParticipantsir can u plz give the hex file of servo motor control through keypad using microcontroller
March 26, 2012 at 8:23 am #7331chirag vermaParticipanthey….i want some help.
when i try to start the project it say this in the command line window:
“Running with Code Size Limit: 2K
Load “C:\Users\Chirag\Documents\embedded\aiwehi”_____^*** error 56: can’t open file”
i have included the file name ‘port compliment.asm’ in the prject as shown below…
http://www.4shared.com/photo/NOVKWU-y/file.html
and it also present in the folder…
http://www.4shared.com/photo/4GWr_bQm/file.html
kindly tell me what to do….now to run this…or other programs.
reply as soon as possible
regards
chirag verma
April 3, 2012 at 6:45 am #7386Saikat SanyalParticipantHey thanx for your tutorial dagakshay it was really helpful.Ok but once the hex file is created,where do I find it.Please help me beause I cannot find it anywhere!This is really urgent and I would greatly appreciate your help!Thanx a lot in advance!!
May 5, 2012 at 12:22 pm #7590RAJASEKARParticipantcan you know How to convert from hex file to embedded c file??????(not c to hex)
August 25, 2012 at 10:35 am #8506monParticipantsir we are working on LCD Voting Machine project but the display on the LCD shows blank when the potentiometer is on its half and only boxes when its on the maximum…..kindly help us resolve this problem… thank you…
October 3, 2012 at 8:26 am #8636mukesh kumarParticipanthello sir help me i want convert c code in the hex file
October 3, 2012 at 8:58 am #8637dagakshayParticipantHey Mukesh,
Follow the above steps if you using keil.
or let us know which IDE you are using.
or you have struct some where in between in those steps.
just sayign need help wont define any thing.
September 12, 2013 at 7:05 am #10438RathinaParticipantDear sir,
i have c program in pdf file and i can’t compile with c program.It have some error.
But i want to convert that file into hex file.What i do?
please give ur mail id for i send the document.
April 27, 2014 at 8:43 am #11641sachin shParticipantHi,
‘m using 8051 micro controller for my project , the problem is ‘m receiving an error
when i try to compile a code of size 5k and error displayed is as such :
L107 :stack overflow.
Target not created.
I can’t reduce the code size beyond this.
Dont’ i have any other way?
dono how to proceed with .. Pls do suggest me with your answers.
Thanks in advance.
February 27, 2015 at 8:04 am #12660patel ketanParticipanthello
i wan tot convert my hex file back to assembly file.
hex file was generated using keil for 89S51 micro controller.
can you help me to convert it back to assembly file.
thanks -
AuthorPosts
- You must be logged in to reply to this topic.