I am trying to get a bootloader running with the PIC18LF1320 micro and find the program is writing over itself. The bootloader calculates the memory top and erases from where bootloader ends and the end of memory. The problem is that instead of the bootloader being placed in the bottom 0x300 bytes the compiler is placing most of the code up at 1B62. This means the bootloader writes over itself when it runs. Does anyone know how I can make the Hi-Tech C compiler put the bootloader code in the block from 0000 to 0300 ? Thanks Regards David -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist