Jeethu Rao wrote: > > Hi Guys, > > Thanks a lot to Tony Nixon for his suggestions regarding the 32 bit hex > file format. > > Anyway, I checked the memory export output of MPLAB . But I could find only > :020000040000FA at he beginning of the file. I could not find any other > Linear address records. The config bits were also included in the file, but > I could not find :020000040020DA or any similar Linear address records.I > even tried to include a bit of EEPROM data into the ASM file before > assembling the file. The Data was included, but no Linear address records > could be found. > > The conclusion I have come to is that only the first line of the MPLAB > output HEX files are in 32 bit HEX format. The rest will be in 8 bit HEX > format. > > as the MPASM help file Appendix A.3 says, > > "TT - is a two digit record type record type that will always be '00' except > for the end-of-file record, which will be '01'." > > Can I straight away parse the file without bothering much about the 0x04 > (Linear Address) type records (Since I am targeting my programmer only on > the Mid Range Flash devices) , Is my conclusion true? Please comment and > suggest > > Thanking You, > > Jeethu Rao Hi Jeethu, What you have summized is not quite right. The reason that there are no more '04' address records is that the upper 16 bits of the address never need to change after being set for the first time for 12Cxxx and 16Cxxx devices. The maximum address normally specified is $2007 (fuse). ie. the upper 16 bits are always 0000h and is the reason this is the first line. :020000040000FA The ID for 18Cxxx start at $20000000, hence the need to change the upper 16 bit address with another '04' line. :020000040020DA -- Best regards Tony mICro's http://www.picnpoke.com mailto:sales@picnpoke.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu