EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / how to convert C code into hex code using keil compiler

how to convert C code into hex code using keil compiler

|

Microcontroller › 8051 › how to convert C code into hex code using keil compiler

  • This topic has 30 replies, 22 voices, and was last updated 6 years, 11 months ago by shivkumar.
Viewing 15 posts - 16 through 30 (of 31 total)
← 1 2 3 →
  • Author
    Posts
  • January 27, 2012 at 6:25 am #7081
    pratik
    Participant

    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 #7115
    mairaj
    Participant

    wich s/w is dis? plzz inform me

     

    February 19, 2012 at 10:48 am #7185
    Budi Santoso
    Participant

    Dear 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 help

    February 28, 2012 at 3:31 pm #7202
    shyam arshid
    Participant

    which hardware is connected to microcontroller to copy the code into it..?

     

    March 16, 2012 at 4:41 pm #7308
    rahul
    Participant

    hi 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 #7325
    priya khachane
    Participant

    sir can u plz give the hex file of servo motor control through keypad using microcontroller

    March 26, 2012 at 8:23 am #7331
    chirag verma
    Participant

    hey….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 #7386
    Saikat Sanyal
    Participant

    Hey 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 #7590
    RAJASEKAR
    Participant

     

     

     

    can you know How to convert from hex file to embedded c file??????(not c to hex)

    August 25, 2012 at 10:35 am #8506
    mon
    Participant

    sir 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 #8636
    mukesh kumar
    Participant

    hello sir help me i want convert c code in the hex file

    October 3, 2012 at 8:58 am #8637
    dagakshay
    Participant

    Hey 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 #10438
    Rathina
    Participant

    Dear 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 #11641
    sachin sh
    Participant

    Hi, 

    ‘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 #12660
    patel ketan
    Participant

    hello
    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

  • Author
    Posts
Viewing 15 posts - 16 through 30 (of 31 total)
← 1 2 3 →
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • Siemens large industrial PLC parts June 15, 2025
  • Parts required for a personal project June 15, 2025
  • Cant log in to Easy PC forum June 15, 2025
  • Failure of polypropylene motor-run capacitors June 15, 2025
  • Wideband matching an electrically short bowtie antenna; 50 ohm, 434 MHz June 15, 2025

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2025 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise