linker_flash_s32k146.ld.bak2 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. /*==================================================================================================
  2. * Project : RTD AUTOSAR 4.4
  3. * Platform : CORTEXM
  4. * Peripheral :
  5. * Dependencies : none
  6. *
  7. * Autosar Version : 4.4.0
  8. * Autosar Revision : ASR_REL_4_4_REV_0000
  9. * Autosar Conf.Variant :
  10. * SW Version : 1.0.0
  11. * Build Version : S32K1_RTD_1_0_0_HF01_D2109_ASR_REL_4_4_REV_0000_20210907
  12. *
  13. * (c) Copyright 2020-2021 NXP Semiconductors
  14. * All Rights Reserved.
  15. *
  16. * NXP Confidential. This software is owned or controlled by NXP and may only be
  17. * used strictly in accordance with the applicable license terms. By expressly
  18. * accepting such terms or by downloading, installing, activating and/or otherwise
  19. * using the software, you are agreeing that you have read, and that you agree to
  20. * comply with and are bound by, such license terms. If you do not agree to be
  21. * bound by the applicable license terms, then you may not retain, install,
  22. * activate or otherwise use the software.
  23. ==================================================================================================*/
  24. /*
  25. * GCC Linker Command File:
  26. * 0x00000000 0x000FFFFF 1024KB Flash
  27. * 0x1FFF0000 0x1FFFFFFF 65536 SRAM_L
  28. * 0x20000000 0x2000EFFF 61440 SRAM_U
  29. */
  30. MEMORY
  31. {
  32. int_flash_interrupts : ORIGIN = 0x00014200, LENGTH = 0x00000400 /* 1K */ /* Do not change this section */
  33. /* int_flash_config : ORIGIN = 0x00000400, LENGTH = 0x00000010 /* 16bytes */ /* Do not change this section */
  34. int_flash : ORIGIN = 0x00014600, LENGTH = 0x000EBA00 /* ~1.0MB */
  35. int_sram_results : ORIGIN = 0x1FFF0000, LENGTH = 0x00000100 /* 256bytes */
  36. int_sram : ORIGIN = 0x1FFF0100, LENGTH = 0x0001DF00 /* ~120K */
  37. int_sram_stack_c0 : ORIGIN = 0x2000E000, LENGTH = 0x00001000 - 0x10 /* 4K */
  38. ram_rsvd2 : ORIGIN = 0x2000EFF0, LENGTH = 0 /* End of SRAM */
  39. ExchangeInfo : ORIGIN = 0x2000EFF0, LENGTH = 0x10
  40. }
  41. HEAP_SIZE = DEFINED(__heap_size__) ? __heap_size__ : 0x00000200;
  42. ENTRY(Reset_Handler)
  43. SECTIONS
  44. {
  45. .flash_interrupts :
  46. {
  47. . = ALIGN(512);
  48. __interrupts_rom_start = .;
  49. KEEP(*(.intc_vector))
  50. . = ALIGN(512);
  51. __interrupts_rom_end = .;
  52. } > int_flash_interrupts
  53. /* .flash_config : */
  54. /* { */
  55. /* KEEP(*(.flash_config)) */
  56. /* } > int_flash_config */
  57. .flash :
  58. {
  59. . = ALIGN(4);
  60. *(.startup)
  61. . = ALIGN(4);
  62. *(.systeminit)
  63. . = ALIGN(4);
  64. *(.text.startup)
  65. . = ALIGN(4);
  66. *(.text)
  67. *(.text*)
  68. . = ALIGN(4);
  69. *(.mcal_text)
  70. . = ALIGN(4);
  71. acfls_code_rom_start = .;
  72. . = ALIGN(0x4);
  73. *(.acfls_code_rom)
  74. acfls_code_rom_end = .;
  75. KEEP(*(.init))
  76. . = ALIGN(4);
  77. KEEP(*(.fini))
  78. . = ALIGN(4);
  79. *(.rodata)
  80. *(.rodata*)
  81. . = ALIGN(4);
  82. *(.mcal_const_cfg)
  83. . = ALIGN(4);
  84. *(.mcal_const)
  85. . = ALIGN(4);
  86. *(.mcal_const_no_cacheable)
  87. . = ALIGN(4);
  88. __init_table = .;
  89. KEEP(*(.init_table))
  90. . = ALIGN(4);
  91. __zero_table = .;
  92. KEEP(*(.zero_table))
  93. . = ALIGN(4);
  94. *(.acmcu_code_rom)
  95. . = ALIGN(4);
  96. _etext = .;
  97. __DATA_ROM = .;
  98. } > int_flash
  99. . = ALIGN(4);
  100. PROVIDE(__exidx_start = .);
  101. .ARM.exidx :
  102. {
  103. *(.ARM.exidx* .gnu.linkonce.armexidx.*)
  104. }> int_sram
  105. . = ALIGN(4);
  106. PROVIDE(__exidx_end = .);
  107. .ARM.extab :
  108. {
  109. *(.ARM.extab*)
  110. . = ALIGN(4);
  111. } > int_sram
  112. .sram_interrupts :
  113. {
  114. . = ALIGN(4096);
  115. __interrupts_ram_start = .;
  116. . += (__interrupts_rom_end - __interrupts_rom_start);
  117. . = ALIGN(4);
  118. __interrupts_ram_end = .;
  119. } > int_sram
  120. .sram_data : AT(__DATA_ROM)
  121. {
  122. . = ALIGN(4);
  123. __data_ram_start = .;
  124. *(.ramcode)
  125. . = ALIGN(4);
  126. *(.data)
  127. *(.data*)
  128. . = ALIGN(4);
  129. *(.mcal_data)
  130. . = ALIGN(4);
  131. *(.mcal_data_no_cacheable)
  132. . = ALIGN(4);
  133. __data_ram_end = .;
  134. } > int_sram
  135. __DATA_ROM_END = __DATA_ROM + (__data_ram_end - __data_ram_start);
  136. .sram_bss (NOLOAD) :
  137. {
  138. . = ALIGN(16);
  139. __sram_bss_start = .;
  140. *(.bss)
  141. *(.bss*)
  142. . = ALIGN(16);
  143. *(.mcal_bss)
  144. . = ALIGN(16);
  145. __non_cacheable_bss_start = .;
  146. *(.mcal_bss_no_cacheable)
  147. . = ALIGN(4);
  148. __non_cacheable_bss_end = .;
  149. __sram_bss_end = .;
  150. } > int_sram
  151. .acfls_code_ram :
  152. {
  153. . += (acfls_code_rom_end - acfls_code_rom_start );
  154. } > int_sram
  155. /* heap section */
  156. .heap (NOLOAD):
  157. {
  158. . = ALIGN(4);
  159. _end = .;
  160. end = .;
  161. _heap_start = .;
  162. . += HEAP_SIZE;
  163. _heap_end = .;
  164. } > int_sram
  165. int_results (NOLOAD):
  166. {
  167. . = ALIGN(4);
  168. KEEP(*(.int_results))
  169. . += 0x100;
  170. } > int_sram_results
  171. __Stack_end_c0 = ORIGIN(int_sram_stack_c0);
  172. __Stack_start_c0 = ORIGIN(int_sram_stack_c0) + LENGTH(int_sram_stack_c0);
  173. __INT_SRAM_START = ORIGIN(int_sram_results);
  174. __INT_SRAM_END = ORIGIN(ram_rsvd2);
  175. __RAM_INIT_START = __data_ram_start;
  176. __RAM_INIT_END = __data_ram_end;
  177. __ROM_INIT_START = __DATA_ROM;
  178. __ROM_INIT_END = __DATA_ROM_END;
  179. __BSS_SRAM_START = __sram_bss_start;
  180. __BSS_SRAM_END = __sram_bss_end;
  181. __BSS_SRAM_SIZE = __sram_bss_end - __sram_bss_start;
  182. __RAM_INTERRUPT_START = __interrupts_ram_start;
  183. __ROM_INTERRUPT_START = __interrupts_rom_start;
  184. __ROM_INTERRUPT_END = __interrupts_rom_end;
  185. __INIT_TABLE = __init_table;
  186. __ZERO_TABLE = __zero_table;
  187. __RAM_INIT = 1;
  188. /* Fls module access code support */
  189. Fls_ACEraseRomStart = acfls_code_rom_start;
  190. Fls_ACEraseRomEnd = acfls_code_rom_end;
  191. Fls_ACEraseSize = acfls_code_rom_end - acfls_code_rom_start;
  192. Fls_ACWriteRomStart = acfls_code_rom_start;
  193. Fls_ACWriteRomEnd = acfls_code_rom_end;
  194. Fls_ACWriteSize = acfls_code_rom_end - acfls_code_rom_start;
  195. _ERASE_FUNC_ADDRESS_ = ADDR(.acfls_code_ram);
  196. _WRITE_FUNC_ADDRESS_ = ADDR(.acfls_code_ram);
  197. __ENTRY_VTABLE = __RAM_INTERRUPT_START;
  198. }