• Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

C to HEX

zesla

New Member
Thread starter #1
Hello,

Sorry but I am a newbie in the AVR field so need to know how to convert the C files into the HEX for the PonyProg or CodeVision?
For instance how to do so for a C file like this?:
http://people.ece.cornell.edu/land/...s2007/jjl49_mar97/jjl49_mar97/ParKontroller.c

I know that I have to use a software to do so but I don't know which software to use and if I need to make any change any where in the C files or to the suggested software?

Thanks.
 

wkrug

Active Member
#3
You have to Compile the Source Code with Code Vision AVR.
First start "Check Syntax" in the Project Menu.
Check and debug the shown Errors, Warnings can be ignored sometimes.
But check them to go shure.
Then Start "Make" in the Project Menu.
A Window pops up that will show you the usage of the Controller resources.

At this time the .hex, the .eep an the .cof ( debug exchange file ) will be created.
It appears in the current CodeVision project folder and you can program it into the controller with PonyProg e.g.
 

zesla

New Member
Thread starter #4
Ok thanks,

So CodeVision is able to do so. I will try it to see the result.
Do I need to do any extra task after onverting the file into the HEX so that I could use it in PonyProg too?

Thanks
 

wkrug

Active Member
#5
You can use any programming software also PonyProg to write the .hex File into the controller.
When you have accessed the EEPROM in Source Code you should program the EEPROM space with the .eep File too.
 

misterT

Well-Known Member
Most Helpful Member
#6
Can I ask why you chose CodeVision over AVR Studio?
 
Last edited:

Latest threads

EE World Online Articles

Loading

 
Top