Thanks Kef.
I will reframe my requirements.
1. PC tool developed parses through the S19 File. The S19 file contains address and corresponding addresses.
Here is an Example for the S19 file I have
S00600004844521B
/*Start of segment 1*/
S123728001876C852005C6127B1250EC851BF2010A0A3B188734198D35E68A874A491B0076
S10872A01B866C853D16 /*End of Segment 1*/
/*Start of segment 2*/
S123772003757B18150103757B1816010375AB0000030D100000FFFFFFE70000FFFFFFFFDF
S10B7740000000004316E52ED1 /*End of Segment 2*/
S208D08000AABBCCDD99 /*THE CRC RECORD*//* Address which is supposed to contain the CRC my PC tool generates*/
S9034000BC
In my linker file, I can specify the start address and the end address.
for eg : Segment 1 belongs to the address range 7280 to 72FF
Segment 2 belongs to the address range 7720 to 7260
The start address can be known to the application from the linker file as it specified by me, but the end address in the s19 file cannot be known to the application as it doesnot correspond to the end address speciifed in the linker. The data doesnot use up the whole range.
My PC tool extracts the data from each data field of the indivitual S-Record and generates the CRC. This CRC is placed in the S19 file by editing the CRC record, shown above.
So my application needs to know the starting and end addresses of each segment.
I have tried and made it as lucid as possible.
Thanks in Advance.
Thanks you Kef and Lundin