Pages: [1]   Go Down
Author Topic: NOt finding ACTUAL HEX FILE  (Read 1864 times)
0 Members and 1 Guest are viewing this topic.
ਪੰਜਾਬ
Offline Offline
Edison Member
*
Karma: 12
Posts: 1601
Another year! Alone! :(
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

"Real Men can Accomplish  Anything"
-  Website  
- skype : nishants5  

ਫ਼ਤੇਹ ਕਰੂਂ !

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 208
Posts: 12936
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


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.
Logged

ਪੰਜਾਬ
Offline Offline
Edison Member
*
Karma: 12
Posts: 1601
Another year! Alone! :(
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
« Last Edit: January 18, 2011, 10:37:24 pm by Nishant_Sood » Logged

"Real Men can Accomplish  Anything"
-  Website  
- skype : nishants5  

ਫ਼ਤੇਹ ਕਰੂਂ !

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 208
Posts: 12936
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


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

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17294
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

ਪੰਜਾਬ
Offline Offline
Edison Member
*
Karma: 12
Posts: 1601
Another year! Alone! :(
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

"Real Men can Accomplish  Anything"
-  Website  
- skype : nishants5  

ਫ਼ਤੇਹ ਕਰੂਂ !

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 208
Posts: 12936
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


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.
Logged

ਪੰਜਾਬ
Offline Offline
Edison Member
*
Karma: 12
Posts: 1601
Another year! Alone! :(
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

"Real Men can Accomplish  Anything"
-  Website  
- skype : nishants5  

ਫ਼ਤੇਹ ਕਰੂਂ !

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 208
Posts: 12936
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


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.
Logged

ਪੰਜਾਬ
Offline Offline
Edison Member
*
Karma: 12
Posts: 1601
Another year! Alone! :(
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Problem Solved!
Logged

"Real Men can Accomplish  Anything"
-  Website  
- skype : nishants5  

ਫ਼ਤੇਹ ਕਰੂਂ !

Pages: [1]   Go Up
Jump to: