Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

generating hex file of a C prog

Status
Not open for further replies.

tronix

Advanced Member level 4
Full Member level 1
Joined
Jul 6, 2006
Messages
116
Helped
8
Reputation
16
Reaction score
1
Trophy points
1,298
Activity points
1,967
how can I generate a hex file of a C prog?
 

first tell us for what platform u have written ur c program is it for microcontroller then u need the compiler for which u have programmed there are various compliers like sdcc, keil etc.....
 

What I want to do is to , store a application let say a 'game written in C' in my microcontroller and later retrieve it back on PC.
I just think that if I save hex file of the application(which I believe will be the simplest way to store) I'll be able to retrieve it back.
Hope that makes it clear enough :D

Regards
tronix
 

then u can store .obj file many programmer support obj file
complier generates obj files and linker convert it into exe
 

    tronix

    Points: 2
    Helpful Answer Positive Rating
nikhilele said:
then u can store .obj file many programmer support obj file
complier generates obj files and linker convert it into exe

But Iam using Software namely 'Megaload' to transfer data from PC to my Microcontroller through the serial port and it sends only .hex files.
Can you please suggest to overcome this. A new s/w may be..

Thanks
 

Hex files are assci strings, text files, it would be quite difficult to convert a windows exe to a hex file, as the format outputs the address and data as strings. windows exe's do not have fixed addresses, they are relocatable.
Your microcontroller software might download the program as a hex file to the programmer. If so, use that.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top