PyUSB.C18.FSUSB.lkr 1.9 KB

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