Advertisement
Guest User

Untitled

a guest
May 19th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.03 KB | None | 0 0
  1. //*****************************************************************************
  2. // COMPANY : VALEO CDA/CIC/INTERIOR SWITCHES AND SMART CONTROLS
  3. //
  4. // PROJECT : ISC_STD:LMPK_DEMTP_DEV
  5. //*****************************************************************************
  6. // !File : S32.icf
  7. //
  8. // !Description :
  9. // Specific linker file directive for no OS projects.
  10. //
  11. //
  12. // !COPYRIGHT 2014 VALEO CDA/CIC/ISC
  13. // All rights reserved
  14. //*****************************************************************************
  15. // EVOLUTIONS (automatic update under DIMENSIONS)
  16. // Current revision : %PR%
  17. //*****************************************************************************
  18. // EVOLUTIONS (automatic update under DIMENSIONS)
  19. //*****************************************************************************
  20. // %PL%
  21. // %PCMS_HEADER_SUBSTITUTION_END%
  22. //*****************************************************************************
  23. //******************************************************************************
  24. //
  25. // Freescale(TM) and the Freescale logo are trademarks of Freescale Semiconductor, Inc.
  26. // All other product or service names are the property of their respective owners.
  27. // (c) Copyright 2012 - 2015 Freescale Semiconductor Inc.
  28. // All Rights Reserved.
  29. //
  30. // You can use this example for any purpose on any computer system with the
  31. // following restrictions:
  32. //
  33. // 1. This example is provided as is, without warranty.
  34. //
  35. // 2. You don't remove this copyright notice from this example or any direct derivation
  36. // thereof.
  37. //
  38. // Description: IAR linker command file for S32
  39. //
  40. //******************************************************************************
  41.  
  42.  
  43. /**************************************/
  44. /* SYMBOLS DEFINITION */
  45. /**************************************/
  46. define symbol __intvec_start__ = 0x00000000; //Fixed address
  47.  
  48. /*-Sizes-*/
  49. define symbol __ROM1_start__ = 0x00000000;
  50. define symbol __ROM1_end__ = 0x000003ff;
  51. define symbol __ROM2_start__ = 0x00000410;
  52. define symbol __ROM2_end__ = 0x0003FFFF;
  53. define symbol __RAM_start__ = 0x1FFFFC00 ;
  54. define symbol __RAM_end__ = 0x200057FF ;
  55.  
  56. define symbol __cstack_size__ = 0x800 ;
  57.  
  58. /**********************/
  59. /* DEFINE MEMORY SIZE */
  60. /**********************/
  61. define memory mem with size = 1G;
  62.  
  63. /**********************/
  64. /* REGIONS DEFINITION */
  65. /**********************/
  66. define region ROM_region = mem:[from __ROM1_start__ to __ROM1_end__]
  67. | mem:[from __ROM2_start__ to __ROM2_end__];
  68. define region RAM_region = mem:[from __RAM_start__ to __RAM_end__];
  69.  
  70. /*********************/
  71. /* BLOCKS DEFINITION */
  72. /*********************/
  73. define block CSTACK with alignment = 8, size = __cstack_size__ { rw section CSTACK };
  74. define block RamCode with alignment = 8, size = 0x1E2 {rw section .ramcode};
  75. define block ResetCauseCode with size = 2 {rw section RESET_CAUSE_CODE_N};
  76.  
  77. /**************************************/
  78. /* SECTIONS INITIALIZATION ATTRIBUTION*/
  79. /**************************************/
  80. initialize by copy { readwrite }; //Data segment initialization by coping from ROM to RAM
  81.  
  82. do not initialize { zeroinit}; //No initialization for BSS segment
  83.  
  84. /*********************/
  85. /* MEMORY ALLOCATION */
  86. /*********************/
  87. place at address mem:__intvec_start__ { readonly section .OS_INTVEC_CORE0_CONST };
  88. place in ROM_region { readonly, ro section .CSTARTUP, ro section .text };
  89. place in RAM_region { readwrite, block CSTACK, section .bss };
  90. place at address mem:0x20005500 { block RamCode };
  91. place at address mem:0x200057fe { block ResetCauseCode };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement