rm18f14k50.lkr 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // $Id: 18f14K50.lkr,v 1.1.4.1 2005/07/25 18:23:28 nairnj Exp $
  2. // File: 18f14K50.lkr
  3. // Sample linker script for the PIC18F14k50 processor
  4. LIBPATH .
  5. FILES c018i.o
  6. FILES clib.lib
  7. FILES p18f14k50.lib
  8. // Bootloader
  9. CODEPAGE NAME=vectors START=0x0 END=0x29 PROTECTED
  10. CODEPAGE NAME=bootloader START=0x2A END=0xFFF PROTECTED
  11. CODEPAGE NAME=page START=0x1000 END=0x3FFF
  12. // Application
  13. //CODEPAGE NAME=boot START=0x0 END=0x1F PROTECTED
  14. //CODEPAGE NAME=vectors START=0x1000 END=0x1029 PROTECTED
  15. //CODEPAGE NAME=page START=0x102A END=0x3FFF
  16. CODEPAGE NAME=idlocs START=0x200000 END=0x200007 PROTECTED
  17. CODEPAGE NAME=config START=0x300000 END=0x30000D PROTECTED
  18. CODEPAGE NAME=devid START=0x3FFFFE END=0x3FFFFF PROTECTED
  19. ACCESSBANK NAME=accessram START=0x0 END=0x5F
  20. DATABANK NAME=gpr0 START=0x60 END=0xFF
  21. DATABANK NAME=gpr1 START=0x100 END=0x1F3
  22. DATABANK NAME=usb2 START=0x200 END=0x2FF PROTECTED
  23. DATABANK NAME=sfr15 START=0xF40 END=0xF5F PROTECTED
  24. ACCESSBANK NAME=accesssfr START=0xF60 END=0xFFF PROTECTED
  25. SECTION NAME=CONFIG ROM=config
  26. SECTION NAME=GP0 RAM=gpr0
  27. SECTION NAME=GP1 RAM=gpr1
  28. SECTION NAME=usbram2 RAM=usb2
  29. SECTION NAME=USB_VARS RAM=usb2
  30. STACK SIZE=0x40 RAM=gpr1