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

About the HEX file

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



Joined: 04 Feb 2014
Posts: 26

View user's profile Send private message

About the HEX file
PostPosted: Wed Feb 19, 2014 6:07 am     Reply with quote

Hi,

I would to know more about the hex file compiled by CCS.

I opened one and observed that the limit per line is 43 chars (":" inclusive), do you know if that is always true?
Ttelmah



Joined: 11 Mar 2010
Posts: 19382

View user's profile Send private message

PostPosted: Wed Feb 19, 2014 8:49 am     Reply with quote

Look at:
<http://en.wikipedia.org/wiki/Intel_HEX>

The lines correspond to 16bytes per line, two hex digits for each digit, with a colon, byte count, target address, record type, 32 hex digits for the data, & two digit checksum. Plus a line feed. So a total of 43 displayable characters per line.

Best Wishes
asmallri



Joined: 12 Aug 2004
Posts: 1634
Location: Perth, Australia

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

PostPosted: Wed Feb 19, 2014 9:42 am     Reply with quote

Ttelmah wrote:
Look at:
<http://en.wikipedia.org/wiki/Intel_HEX>

The lines correspond to 16bytes per line, two hex digits for each digit, with a colon, byte count, target address, record type, 32 hex digits for the data, & two digit checksum. Plus a line feed. So a total of 43 displayable characters per line.

Best Wishes


Could also include a carriage return before the linefeed.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
LiLou



Joined: 04 Feb 2014
Posts: 26

View user's profile Send private message

PostPosted: Thu Feb 20, 2014 1:09 am     Reply with quote

Thank you!
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