karthickiw
Joined: 09 Aug 2007 Posts: 82 Location: TN, India
|
Bootloader problem |
Posted: Sat Jun 05, 2010 9:40 am |
|
|
hai friends,
I try to change device number in the bootloader program from example program folder. I change device number 16F877 to 16F877A and compile the program is show error...
Error message is
My program is
Code: |
#include <16F877a.h>
#FUSES NOWDT, XT, PUT, NOPROTECT, NODEBUG, BROWNOUT, NOLVP, NOCPD, WRT_50%
#use delay(clock=4000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7) // Jumpers: 8 to 11, 7 to 12
#define _bootloader
#include <bootloader.h>
#include <loader.c>
#org LOADER_END+1,LOADER_END+10
void application(void) {
while(TRUE);
}
#org 0x20,0x3F
void main(void) {
if(!input(PIN_B5))
{
load_program();
}
application();
}
#ORG default
#int_global
void isr(void) {
jump_to_isr(LOADER_END+5*(getenv("BITS_PER_INSTRUCTION")/8));
}
|
|
|