Hi,
Looking at your two files they are clearly different.
Importing SEROUT2.HEX into MPLAB and lookin at the disasambly listing it shows adress $00F6 being the last one used while ReadSEROUT2.hex shows adress $00FC and, obviosuly, the checksum are not the same. However the CONFIG bits seems to be set the same way in both example so I don't think that's the problem even though that WAS my first guess too (I might be wrong though).
What software are you using to run the PK2? Are you running it from within MPLAB, using the standalone application or the commandline interface? How are you telling the PK2 which the target device is? Have you tried reading back the code after it being programmed with the PK2?
/Henrik.
Bookmarks