CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Size of the HEX file

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Carlos Junior



Joined: 08 Dec 2006
Posts: 2

View user's profile Send private message Send e-mail Visit poster's website

Size of the HEX file
PostPosted: Fri Dec 08, 2006 5:47 am     Reply with quote

Could, please, anyone help me ?

I am seeing an strange thing about the HEX file generated by the CCS compiler at the folder of the project in my Windows Explorer .

I am using an 8K Flash Program PIC, teh CCS (PCWH Compiler, IDE version 3.43) integrated with MPLAB IDE 7.40 .

The strange thing is about the size of the HEX file. It has 18.6KBytes, while the Flash Program Memory of the PIC has 8KWords (Word=14bits, converting to Bytes would be : 14KBytes of ROM ) . I program the PIC and it works (the program runs inside it) ... Is not that strange ? Why the HEX file is bigger than the ROM size ? Should it not have error of exceeded ROM ?

Thanks...
_________________
Carlos Junior
(carlosjunior@gmail.com)
Electrical Engineer
Location: Brasil
Sherpa Doug
Guest







PostPosted: Fri Dec 08, 2006 7:33 am     Reply with quote

The .hex file has two ascii characters representing each byte of ROM content, plus some header information. Therefore the .hex file will always be a little more than twice the size of the ROM bytes actually used.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group