Jan-Erik Soderholm wrote: > so could anyone see if the adresses > in the HEX file below are correct ? No. The HEX file contains FEBh at addresses 1FFEh,1FFFh, which translates to address FFFh in the PIC. FEBh is correct if you want RB3 to function as MCLR, code protection off, and watchdog timer disabled. However, the config word on these chips is at 3FFh, not FFFh. > And, Olin, are you sying that the following > entry in the 10F202.LKR file is incorrect ? > > CODEPAGE NAME=.config START=0xFFF END=0xFFF PROTECTED Yes. > That is, it should be "START=0x3FF END=0x3FF" !? > > All four LKR files (200/202/204/206) have "0xFFF" at that line. That should tell you its a bug right there. Even if the addresses were somehow mapped strangely to the HEX file, they would still need to be different between the 200/204 and 202/206. The 200/204 have the config word at 1FFh. As I said before, MPLAB has known bugs relating to config words and 10Fs. I have used my own linker files, avoided the __CONFIG directive, and everything worked fine. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com _______________________________________________ http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist