View previous topic :: View next topic |
Author |
Message |
Christophe
Joined: 10 May 2005 Posts: 323 Location: Belgium
|
PCWH V3.249 vs V4.099 HEX format difference |
Posted: Mon Apr 06, 2009 6:48 am |
|
|
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
|
|
Posted: Mon Apr 06, 2009 10:27 am |
|
|
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
|
Re: PCWH V3.249 vs V4.099 HEX format difference |
Posted: Mon Apr 06, 2009 12:56 pm |
|
|
[quote="Christophe"]
V4.099
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
|
|
Posted: Tue Apr 07, 2009 12:50 am |
|
|
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
|
|
Posted: Tue Apr 07, 2009 7:44 am |
|
|
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!! |
|
|
|