Go Down

Topic: NOt finding ACTUAL HEX FILE (Read 2074 times) previous topic - next topic

NI$HANT

Hello to all,
                i was in need of the HEX file of the compiled program that i write from the arduino IDE ,However the temp(Start>Run>%temp%) folder where the program HEX file i found was too large that the actual file size which arduino IDE Flashed in Atmega, IDE defined file size to be about 6kb approximately however the HEX file i got from Start>Run>%temp%>respected folder was about 19 KB is size.

i want the actual 6KB size HEX file.

Regards,
Nishant Sood :o
"Real Men can Accomplish  Anything"

- skype : nishants5  

ਫ਼ਤੇਹ ਕਰੁਂ!

Coding Badly


The HEX file will always be at least twice the size of the compiled program.  I suggest you use the file's timestamp and name rather than the size to determine which is the correct file.

NI$HANT

#2
Jan 19, 2011, 04:30 am Last Edit: Jan 19, 2011, 04:37 am by Nishant_Sood Reason: 1
What i did is kept the TEMP window open while i was compiling and flashing the program into the ATmega using the Arduino IDE ,then i saw all the file coming with the specific button's i did clicked on the IDE ,  also i saw an assembler file being manufactured and suddenly going out and then a folder placed with various C++,O,HEX format file(which had one C++,HEX file), but every file had a cpp added to it so the HEX file was like xyz.cpp.hex so it means it is the hex of c++ file,i think but dn;t know where is the 6KB file.
"Real Men can Accomplish  Anything"

- skype : nishants5  

ਫ਼ਤੇਹ ਕਰੁਂ!

Coding Badly


At this point you will need to define what you mean by "HEX file".

retrolefty

Quote
At this point you will need to define what you mean by "HEX file".


I think he might think there is a binary file stored that is an exact copy of the compiled code loaded to the arduino. There is no such file.

Lefty

NI$HANT

yes the same binary file that is the exact copy of the code and is ACTUALLY uploaded to the system. can it be accessed and loaded into the chip as i will be using the serial programmer and PONYPROG to load my sketch into the ATmega168's i have.

Regards,
Nishant Sood :o
"Real Men can Accomplish  Anything"

- skype : nishants5  

ਫ਼ਤੇਹ ਕਰੁਂ!

Coding Badly


From the PonyProg web site (http://www.lancos.com/prog.html)...

Quote
Read/Write [glow]Intel hex format file[/glow] as well as raw binary file


The dot-hex file you found in the temporary directory will work.

NI$HANT

it will work but is too heavy , Binary file which the arduino prompts about uploading to the arduino board is about 6.8 kb and the .HEX is 19KB so i'll not be able to use the Atmega168 i have. :-/ :-/ :-?

here is :Binary sketch size: 6820 bytes (of a 32256 byte maximum)

it is shown when i load the sketch to ATmega 328 which came with my UNO.

so i'm asking for this 6820 bytes file!
By the way thanks CODING BADLy(whts your name?) for always replying to my queries.

Regards,

Nishant Sood :o
"Real Men can Accomplish  Anything"

- skype : nishants5  

ਫ਼ਤੇਹ ਕਰੁਂ!

Coding Badly


Intel hex format files are a text version of the binary image.  A program like PonyProg takes the text hex file, converts the data to binary, and then uploads the binary data to the processor.

The 19KB hex file is a text version of the 6820 byte binary image.  It's 19KB on your harddrive.  It's 6820 bytes when it's uploaded to the processor.

NI$HANT

"Real Men can Accomplish  Anything"

- skype : nishants5  

ਫ਼ਤੇਹ ਕਰੁਂ!

Go Up