Rev Author Line No. Line
1661 kaklik 1 // File: Application_18f4550.lkr
2  
3 // Use this linker for the USB application that will be self programmed by the HID bootloader.
4 // The HID bootloader project itself uses the BootModified.18f4450.lkr file instead.
5  
6 // THIS LINKER SCRIPT HAS BEEN MODIFIED... This version is intended to be used
7 // with the "PROGRAMMABLE_WITH_USB_HID_BOOTLOADER" bootloader. The HID
8 // bootloader occupies memory ranges 0x000-0xFFF. In order for the code generated
9 // by this project to work with the bootloader, the linker must not put any code
10 // in the 0x00-0xFFF address range.
11  
12 // This linker script was originated from the 18f4550.lkr file provided by
13 // the MCC18 distribution.
14  
15 LIBPATH .
16  
17 FILES c018i.o
18 FILES clib.lib
19 FILES p18f4550.lib
20  
21 CODEPAGE NAME=bootloader START=0x0 END=0xFFF PROTECTED
22 CODEPAGE NAME=vectors START=0x1000 END=0x1029 PROTECTED
23 CODEPAGE NAME=page START=0x102A END=0x7FFF
24 CODEPAGE NAME=idlocs START=0x200000 END=0x200007 PROTECTED
25 CODEPAGE NAME=config START=0x300000 END=0x30000D PROTECTED
26 CODEPAGE NAME=devid START=0x3FFFFE END=0x3FFFFF PROTECTED
27 CODEPAGE NAME=eedata START=0xF00000 END=0xF000FF PROTECTED
28  
29 ACCESSBANK NAME=accessram START=0x0 END=0x5F
30 DATABANK NAME=gpr0 START=0x60 END=0xFF
31 DATABANK NAME=gpr1 START=0x100 END=0x1FF
32 DATABANK NAME=gpr2 START=0x200 END=0x2FF
33 DATABANK NAME=gpr3 START=0x300 END=0x3FF
34 DATABANK NAME=usb4 START=0x400 END=0x4FF PROTECTED
35 DATABANK NAME=usb5 START=0x500 END=0x5FF PROTECTED
36 DATABANK NAME=usb6 START=0x600 END=0x6FF PROTECTED
37 DATABANK NAME=usb7 START=0x700 END=0x7FF PROTECTED
38 ACCESSBANK NAME=accesssfr START=0xF60 END=0xFFF PROTECTED
39  
40 SECTION NAME=CONFIG ROM=config
41  
42 STACK SIZE=0x100 RAM=gpr3
43  
44 SECTION NAME=USB_VARS RAM=usb4