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 CCS Technical Support

PCWH V3.249 vs V4.099 HEX format difference

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



Joined: 10 May 2005
Posts: 323
Location: Belgium

View user's profile Send private message

PCWH V3.249 vs V4.099 HEX format difference
PostPosted: Mon Apr 06, 2009 6:48 am     Reply with quote

Hi,

I recently updated my compiler from V3.249 to V4.099. Now I notice a difference in the HEX file:

V3.249
Code:

:1000000010308A0000280000FF00030E8301A100C9
:100010000A08A0008A010408A2007708A300780853
:10002000A4007908A5007A08A6007B08A70083131E
:1000300083120B1E1D288B1842288C308400801ED2
:1000400023288C1A45288C308400001C29280C1881
:1000500048288C308400801C2F288C184B282208BC
:1000600084002308F7002408F8002508F900260872
:10007000FA002708FB0020088A00210E8300FF0EEB
:100080007F0E09008A110A12192A8A110A12FB2806
:100090008A110A1225298A110A12A0290A108A1027
:1000A0000A11820742345234413449340034533403


V4.099
Code:

:020000040000FA
:1000000010308A0000280000FF00030E8301A100C9
:100010000A08A0008A010408A2007708A300780853
:10002000A4007908A5007A08A6007B08A70083131E
:1000300083120B1E1D288B1842288C308400801ED2
:1000400023288C1A45288C308400001C29280C1881
:1000500048288C308400801C2F288C184B282208BC
:1000600084002308F7002408F8002508F900260872
:10007000FA002708FB0020088A00210E8300FF0EEB
:100080007F0E09008A110A12192A8A110A12FB2806
:100090008A110A1225298A110A12A0290A108A1027
:1000A0000A11820742345234413449340034533403


The first line is different, in V4.099 an extra line is added to the HEX file. I do not want that as my bootloader does not work with this format. How can I setup the compiler/builder not to add this extra line?
What means that extra line ?

best regards;
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Mon Apr 06, 2009 10:27 am     Reply with quote

Quote:
V4.099
The most recent version available for download is v4.090. I guess that is the version you have?

Quote:
What means that extra line ?
The hex file is in the well documented Intel hex format: http://en.wikipedia.org/wiki/.hex
Basically it is an extension to allow 32-bit addresses instead of 16-bit.

Quote:
I do not want that as my bootloader does not work with this format.
You took a short cut by implementing part of the protocol and now this is biting you. I'm sure Murphy hase a phrase for this...

Quote:
How can I setup the compiler/builder not to add this extra line?
Good question. I don't know, but as an alternative you can manually delete the line without problems.
asmallri



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

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

Re: PCWH V3.249 vs V4.099 HEX format difference
PostPosted: Mon Apr 06, 2009 12:56 pm     Reply with quote

[quote="Christophe"]

V4.099
Code:

:020000040000FA
..


What means that extra line ?

A standard data record only has a 2 byte address range. This additional record is the next most two significant bytes. The record enables the programmer (not just bootloader) to work out where the code is to be located including the program memory space, config registers and EEPROM.
_________________
Regards, Andrew

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



Joined: 10 May 2005
Posts: 323
Location: Belgium

View user's profile Send private message

PostPosted: Tue Apr 07, 2009 12:50 am     Reply with quote

Okay, thanks guys.
I also warned CCS support about this and they said the extra line is not necessary for PIC16 and it will be solved in next releases.
asmallri



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

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

PostPosted: Tue Apr 07, 2009 7:44 am     Reply with quote

Christophe wrote:
Okay, thanks guys.
I also warned CCS support about this and they said the extra line is not necessary for PIC16 and it will be solved in next releases.


As ckielstra pointed out, it is still a bug with your bootloader.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
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