Advertisement
Guest User

assignment11_project.prm

a guest
Nov 23rd, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.96 KB | None | 0 0
  1. /* This is a linker parameter file for the MC9S12DP256B */
  2. NAMES END /* CodeWarrior will pass all the needed files to the linker by command line. But here you may add your own files too. */
  3.  
  4. SEGMENTS /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */
  5.  
  6. /* Register space */
  7. /* IO_SEG = PAGED 0x0000 TO 0x03FF; intentionally not defined */
  8.  
  9. /* EPROM */
  10. EEPROM = READ_ONLY 0x0400 TO 0x0FEF;
  11.  
  12. /* RAM */
  13. RAM = READ_WRITE 0x1000 TO 0x3FFF;
  14.  
  15. /* non-paged FLASHs */
  16. ROM_4000 = READ_ONLY 0x4000 TO 0x7FFF;
  17. ROM_C000 = READ_ONLY 0xC000 TO 0xFEFF;
  18. /* VECTORS = READ_ONLY 0xFF00 TO 0xFFFF; intentionally not defined: used for VECTOR commands below */
  19. //OSVECTORS = READ_ONLY 0xFF8C TO 0xFFFF; /* OSEK interrupt vectors (use your vector.o) */
  20.  
  21. /* paged FLASH: 0x8000 TO 0xBFFF; addressed through PPAGE */
  22. PAGE_30 = READ_ONLY 0x308000 TO 0x30BFFF;
  23. PAGE_31 = READ_ONLY 0x318000 TO 0x31BFFF;
  24. PAGE_32 = READ_ONLY 0x328000 TO 0x32BFFF;
  25. PAGE_33 = READ_ONLY 0x338000 TO 0x33BFFF;
  26. PAGE_34 = READ_ONLY 0x348000 TO 0x34BFFF;
  27. PAGE_35 = READ_ONLY 0x358000 TO 0x35BFFF;
  28. PAGE_36 = READ_ONLY 0x368000 TO 0x36BFFF;
  29. PAGE_37 = READ_ONLY 0x378000 TO 0x37BFFF;
  30. PAGE_38 = READ_ONLY 0x388000 TO 0x38BFFF;
  31. PAGE_39 = READ_ONLY 0x398000 TO 0x39BFFF;
  32. PAGE_3A = READ_ONLY 0x3A8000 TO 0x3ABFFF;
  33. PAGE_3B = READ_ONLY 0x3B8000 TO 0x3BBFFF;
  34. PAGE_3C = READ_ONLY 0x3C8000 TO 0x3CBFFF;
  35. PAGE_3D = READ_ONLY 0x3D8000 TO 0x3DBFFF;
  36. /* PAGE_3E = READ_ONLY 0x3E8000 TO 0x3EBFFF; not used: equivalent to ROM_4000 */
  37. /* PAGE_3F = READ_ONLY 0x3F8000 TO 0x3FBEFF; not used: equivalent to ROM_C000 */
  38. END
  39.  
  40. PLACEMENT /* here all predefined and user segments are placed into the SEGMENTS defined above. */
  41. _PRESTART, /* Used in HIWARE format: jump to _Startup at the code start */
  42. STARTUP, /* startup data structures */
  43. ROM_VAR, /* constant variables */
  44. STRINGS, /* string literals */
  45. VIRTUAL_TABLE_SEGMENT, /* C++ virtual table segment */
  46. //.ostext, /* OSEK */
  47. NON_BANKED, /* runtime routines which must not be banked */
  48. COPY /* copy down information: how to initialize variables */
  49. /* in case you want to use ROM_4000 here as well, make sure
  50. that all files (incl. library files) are compiled with the
  51. option: -OnB=b */
  52. INTO ROM_C000/*, ROM_4000*/;
  53.  
  54. DEFAULT_ROM INTO PAGE_30, PAGE_31, PAGE_32, PAGE_33, PAGE_34, PAGE_35, PAGE_36, PAGE_37,
  55. PAGE_38, PAGE_39, PAGE_3A, PAGE_3B, PAGE_3C, PAGE_3D ;
  56.  
  57. //.stackstart, /* eventually used for OSEK kernel awareness: Main-Stack Start */
  58. SSTACK, /* allocate stack first to avoid overwriting variables on overflow */
  59. //.stackend, /* eventually used for OSEK kernel awareness: Main-Stack End */
  60. DEFAULT_RAM INTO RAM;
  61.  
  62. //.vectors INTO OSVECTORS; /* OSEK */
  63. END
  64.  
  65. ENTRIES /* keep the following unreferenced variables */
  66. /* OSEK: always allocate the vector table and all dependent objects */
  67. //_vectab OsBuildNumber _OsOrtiStackStart _OsOrtiStart
  68. END
  69.  
  70. STACKSIZE 0x100
  71.  
  72. VECTOR 0 _Startup /* reset vector: this is the default entry point for a C/C++ application. */
  73. //VECTOR 0 Entry /* reset vector: this is the default entry point for an Assembly application. */
  74. //INIT Entry /* for assembly applications: that this is as well the initialization entry point */
  75. VECTOR 7 rti_interrupt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement