hi @all! i have a problem with the ccs compiler. i read server web pages and the manual for the ORG directive. the bootloader i use needs "the top 214 program memory locations" which = is from Petr Kolomaznik kolomaznik@ehl.cz. how can i say the compiler that it has to look for not to use these = regions of memory? the page says two ways: http://www.microchipc.com/PIC16bootload/PIC_bootloader_FAQ.htm CCS C: add *only one* of the next two statements, depending on the micro: #ORG 0x0700,0x07FF {} //for the 2k 16F870/1/2 #ORG 0x0F00,0x0FFF {} //for the 4k 16F873/4 #ORG 0x1F00,0x1FFF {} //for the 8k 16F876/7 ->>>>> = invalid ORG range For some versions of CCS C, use the following: #org 0x0700, 0x07FF void loader16F872(void) {} //for the 2k 16F870/1/2 #org 0x0F00, 0x0FFF void loader16F874(void) {} //for the 4k 16F873/4 #org 0x1F00, 0x1FFF void loader16F877(void) {} //for the 8k = 16F876/7 ->>>>> invalid ORG range code i use: #include "Z:\Adventskr\adventskr.h" #org 0x1F00, 0x1FFF void loader16F877(void) {} //for the 8k 16F876/7 char wert=3D0; int a=3D0; void main() { port_b_pullups(TRUE); ____________________________________________ never the ness nothing work and will error in a error like this: invalid = ORG range the code of the bootloader is ok i tested these ...when it goes through power on and then the por it uses = the code which i have programmed with the picstart+ dev fw 3.11 in a = 16f877A device the code is loaded an the bootloader overritten. please can anybody help here. a lot of thanks tobias stra=DFen -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist