How do I put a program to a specific address for the PIC17C*** series of chips ?
Q. How do I put a program to a specific address for the PIC17C*** series of chips ? A. To put a program at a specific address there is a compiler option available -A. The -ROM switch is used to specify the external memory for the 17Cxx part. To place the program at address 0x2000, which is external memory on th -17c44, the command line will look like below: picc main.c jump.as -17c44 -a2000h -rom2000-fffc You will also need to include the jump.as file in your project. The jump.as file is in the samples directory of the PICC compiler. There are instructions included in the file as comments. The jump.as file redirects interrupts and the startup vectors to the relocated program.