You need to adjust your program to start at ORG 5. I believe he explains that in a readme file somewhere. Any bootloader takes over the reset vector starting location so it can run first when you start the chip. Then the bootloader will time out and jump to your program. --- Denny Esterline wrote: > I'm having difficulties trying to get my program to run after I load > it with > a bootloader. I'm using Shane Tolime's (hope I spelled that right :-) > ) > version 2.21 for the PIC16F876A. I can use it to load the serial port > test > program he includes with the download, and it works fine. I can read > the > data out through hyperterm. But when I load my software-- nothing. I > started > with "hello world" out the serial port, but when that didn't work I > droped > back to blink an LED, it didn't work either. > > The odd part is that if I program the same Blink program into the > chip > directly, it works fine. It only fails when I use the bootloader. > > I'm sure this is somthing I've misunderstood, or I'm doing wrong, > could > someone provide some guidance? > > Thanks > Denny Esterline > > Here are the details: > CCS version 3.073 > > The complete C source code: > #if defined(__PCM__) > #include <16f876.h> > #fuses XT,NOWDT,NOPROTECT > #use delay(clock=4000000) > #use standard_io(B) > #endif > > #org 0x1F00, 0x1FFF void loader16F876(void) {} //as specified on > MicrochipC - reserves the top memory for the boot loader > > void main() > { > while(1) > { > output_bit(PIN_B0,1); > delay_ms(400); > output_bit(PIN_B0,0); > delay_ms(400); > } > } > ------------------------End of source code > > > The complete hex file as produced by the compiler: > :1000000000308A00192800002230840000080319FB > :1000100018280130F800F701F70B0C28F80B0B2813 > :100020004A30F700F70B122800000000800B092867 > :10003000003484011F30830583169F018312061448 > :100040008316061002308312A100C830A2000420DB > :10005000A10B252806108316061002308312A1007A > :0E006000C830A2000420A10B30281F28630026 > :083E000000108A110A120028CB > :02400E00F93F78 > :00000001FF > ;PIC16F876 > > --------------- End of hex file > > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. ===== Chuck Hellebuyck Electronic Products chuck@elproducts.com **** Home of the BasicBoard Development Platform********* Great for learning, teaching and developing electronic, programmable robotics and other embedded applications. Starter packages from $149.95. http://www.elproducts.com __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body