1 | // File: 18f27j53_g.lkr |
---|
2 | // Generic linker script for the PIC18F27J53 processor |
---|
3 | // Build date : Oct 21 2015 |
---|
4 | |
---|
5 | LIBPATH . |
---|
6 | |
---|
7 | #IFDEF _CRUNTIME |
---|
8 | #IFDEF _EXTENDEDMODE |
---|
9 | FILES c018i_e.o |
---|
10 | FILES clib_e.lib |
---|
11 | FILES p18f27j53_e.lib |
---|
12 | |
---|
13 | #ELSE |
---|
14 | FILES c018i.o |
---|
15 | FILES clib.lib |
---|
16 | FILES p18f27j53.lib |
---|
17 | #FI |
---|
18 | |
---|
19 | #FI |
---|
20 | |
---|
21 | CODEPAGE NAME=vectors START=0x400 END=0x429 PROTECTED |
---|
22 | CODEPAGE NAME=page START=0x42A END=0x1FFF7 |
---|
23 | CODEPAGE NAME=config START=0x1FFF8 END=0x1FFFF PROTECTED |
---|
24 | CODEPAGE NAME=devid START=0x3FFFFE END=0x3FFFFF PROTECTED |
---|
25 | |
---|
26 | #IFDEF _EXTENDEDMODE |
---|
27 | DATABANK NAME=gpre START=0x0 END=0x5F |
---|
28 | #ELSE |
---|
29 | ACCESSBANK NAME=accessram START=0x0 END=0x5F |
---|
30 | #FI |
---|
31 | |
---|
32 | DATABANK NAME=gpr0 START=0x60 END=0xFF |
---|
33 | DATABANK NAME=gpr1 START=0x100 END=0x1FF |
---|
34 | DATABANK NAME=gpr2 START=0x200 END=0x2FF |
---|
35 | DATABANK NAME=gpr3 START=0x300 END=0x3FF |
---|
36 | DATABANK NAME=gpr4 START=0x400 END=0x4FF |
---|
37 | DATABANK NAME=gpr5 START=0x500 END=0x5FF |
---|
38 | DATABANK NAME=gpr6 START=0x600 END=0x6FF |
---|
39 | DATABANK NAME=gpr7 START=0x700 END=0x7FF |
---|
40 | DATABANK NAME=gpr8 START=0x800 END=0x8FF |
---|
41 | DATABANK NAME=gpr9 START=0x900 END=0x9FF |
---|
42 | DATABANK NAME=gpr10 START=0xA00 END=0xAFF |
---|
43 | DATABANK NAME=gpr11 START=0xB00 END=0xBFF |
---|
44 | DATABANK NAME=gpr12 START=0xC00 END=0xCFF |
---|
45 | DATABANK NAME=gpr13 START=0xD00 END=0xDFF |
---|
46 | DATABANK NAME=gpr14 START=0xE00 END=0xEAF |
---|
47 | DATABANK NAME=sfr14 START=0xEB0 END=0xEFF PROTECTED |
---|
48 | DATABANK NAME=sfr15 START=0xF00 END=0xF5F PROTECTED |
---|
49 | ACCESSBANK NAME=accesssfr START=0xF60 END=0xFFF PROTECTED |
---|
50 | |
---|
51 | #IFDEF _CRUNTIME |
---|
52 | SECTION NAME=CONFIG ROM=config |
---|
53 | #IFDEF _DEBUGSTACK |
---|
54 | STACK SIZE=0x100 RAM=gpr11 |
---|
55 | #ELSE |
---|
56 | STACK SIZE=0x100 RAM=gpr12 |
---|
57 | #FI |
---|
58 | #FI |
---|