linker_flash_s32k146.ld.bak2 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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. m_flexram : ORIGIN = 0x10000000, LENGTH = 0x00001000
  36. int_sram_results : ORIGIN = 0x1FFF0000, LENGTH = 0x00000100 /* 256bytes */
  37. int_sram : ORIGIN = 0x1FFF0100, LENGTH = 0x0001DF00 /* ~120K */
  38. int_sram_stack_c0 : ORIGIN = 0x2000E000, LENGTH = 0x00001000 - 0x10 /* 4K */
  39. ram_rsvd2 : ORIGIN = 0x2000EFF0, LENGTH = 0 /* End of SRAM */
  40. ExchangeInfo : ORIGIN = 0x2000EFF0, LENGTH = 0x10
  41. }
  42. HEAP_SIZE = DEFINED(__heap_size__) ? __heap_size__ : 0x00000200;
  43. ENTRY(Reset_Handler)
  44. SECTIONS
  45. {
  46. .eeeprom (NOLOAD):
  47. {
  48. *(.eeprom)
  49. } >m_flexram
  50. .flash_interrupts :
  51. {
  52. . = ALIGN(512);
  53. __interrupts_rom_start = .;
  54. KEEP(*(.intc_vector))
  55. . = ALIGN(512);
  56. __interrupts_rom_end = .;
  57. } > int_flash_interrupts
  58. /* .flash_config : */
  59. /* { */
  60. /* KEEP(*(.flash_config)) */
  61. /* } > int_flash_config */
  62. .flash :
  63. {
  64. . = ALIGN(4);
  65. *(.startup)
  66. . = ALIGN(4);
  67. *(.systeminit)
  68. . = ALIGN(4);
  69. *(.text.startup)
  70. . = ALIGN(4);
  71. *(.text)
  72. *(.text*)
  73. . = ALIGN(4);
  74. *(.mcal_text)
  75. . = ALIGN(4);
  76. acfls_code_rom_start = .;
  77. . = ALIGN(0x4);
  78. *(.acfls_code_rom)
  79. acfls_code_rom_end = .;
  80. KEEP(*(.init))
  81. . = ALIGN(4);
  82. KEEP(*(.fini))
  83. . = ALIGN(4);
  84. *(.rodata)
  85. *(.rodata*)
  86. . = ALIGN(4);
  87. *(.mcal_const_cfg)
  88. . = ALIGN(4);
  89. *(.mcal_const)
  90. . = ALIGN(4);
  91. *(.mcal_const_no_cacheable)
  92. . = ALIGN(4);
  93. __init_table = .;
  94. KEEP(*(.init_table))
  95. . = ALIGN(4);
  96. __zero_table = .;
  97. KEEP(*(.zero_table))
  98. . = ALIGN(4);
  99. *(.acmcu_code_rom)
  100. . = ALIGN(4);
  101. _etext = .;
  102. __DATA_ROM = .;
  103. } > int_flash
  104. . = ALIGN(4);
  105. PROVIDE(__exidx_start = .);
  106. .ARM.exidx :
  107. {
  108. *(.ARM.exidx* .gnu.linkonce.armexidx.*)
  109. }> int_sram
  110. . = ALIGN(4);
  111. PROVIDE(__exidx_end = .);
  112. .ARM.extab :
  113. {
  114. *(.ARM.extab*)
  115. . = ALIGN(4);
  116. } > int_sram
  117. .sram_interrupts :
  118. {
  119. . = ALIGN(4096);
  120. __interrupts_ram_start = .;
  121. . += (__interrupts_rom_end - __interrupts_rom_start);
  122. . = ALIGN(4);
  123. __interrupts_ram_end = .;
  124. } > int_sram
  125. .sram_data : AT(__DATA_ROM)
  126. {
  127. . = ALIGN(4);
  128. __data_ram_start = .;
  129. *(.ramcode)
  130. . = ALIGN(4);
  131. *(.data)
  132. *(.data*)
  133. . = ALIGN(4);
  134. *(.mcal_data)
  135. . = ALIGN(4);
  136. *(.mcal_data_no_cacheable)
  137. . = ALIGN(4);
  138. __data_ram_end = .;
  139. } > int_sram
  140. __DATA_ROM_END = __DATA_ROM + (__data_ram_end - __data_ram_start);
  141. .sram_bss (NOLOAD) :
  142. {
  143. . = ALIGN(16);
  144. __sram_bss_start = .;
  145. *(.bss)
  146. *(.bss*)
  147. . = ALIGN(16);
  148. *(.mcal_bss)
  149. . = ALIGN(16);
  150. __non_cacheable_bss_start = .;
  151. *(.mcal_bss_no_cacheable)
  152. . = ALIGN(4);
  153. __non_cacheable_bss_end = .;
  154. __sram_bss_end = .;
  155. } > int_sram
  156. .acfls_code_ram :
  157. {
  158. . += (acfls_code_rom_end - acfls_code_rom_start );
  159. } > int_sram
  160. /* heap section */
  161. .heap (NOLOAD):
  162. {
  163. . = ALIGN(4);
  164. _end = .;
  165. end = .;
  166. _heap_start = .;
  167. . += HEAP_SIZE;
  168. _heap_end = .;
  169. } > int_sram
  170. int_results (NOLOAD):
  171. {
  172. . = ALIGN(4);
  173. KEEP(*(.int_results))
  174. . += 0x100;
  175. } > int_sram_results
  176. __Stack_end_c0 = ORIGIN(int_sram_stack_c0);
  177. __Stack_start_c0 = ORIGIN(int_sram_stack_c0) + LENGTH(int_sram_stack_c0);
  178. __INT_SRAM_START = ORIGIN(int_sram_results);
  179. __INT_SRAM_END = ORIGIN(ram_rsvd2);
  180. __RAM_INIT_START = __data_ram_start;
  181. __RAM_INIT_END = __data_ram_end;
  182. __ROM_INIT_START = __DATA_ROM;
  183. __ROM_INIT_END = __DATA_ROM_END;
  184. __BSS_SRAM_START = __sram_bss_start;
  185. __BSS_SRAM_END = __sram_bss_end;
  186. __BSS_SRAM_SIZE = __sram_bss_end - __sram_bss_start;
  187. __RAM_INTERRUPT_START = __interrupts_ram_start;
  188. __ROM_INTERRUPT_START = __interrupts_rom_start;
  189. __ROM_INTERRUPT_END = __interrupts_rom_end;
  190. __INIT_TABLE = __init_table;
  191. __ZERO_TABLE = __zero_table;
  192. __RAM_INIT = 1;
  193. /* Fls module access code support */
  194. Fls_ACEraseRomStart = acfls_code_rom_start;
  195. Fls_ACEraseRomEnd = acfls_code_rom_end;
  196. Fls_ACEraseSize = acfls_code_rom_end - acfls_code_rom_start;
  197. Fls_ACWriteRomStart = acfls_code_rom_start;
  198. Fls_ACWriteRomEnd = acfls_code_rom_end;
  199. Fls_ACWriteSize = acfls_code_rom_end - acfls_code_rom_start;
  200. _ERASE_FUNC_ADDRESS_ = ADDR(.acfls_code_ram);
  201. _WRITE_FUNC_ADDRESS_ = ADDR(.acfls_code_ram);
  202. __ENTRY_VTABLE = __RAM_INTERRUPT_START;
  203. }