123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 |
- /*==================================================================================================
- * Project : RTD AUTOSAR 4.4
- * Platform : CORTEXM
- * Peripheral :
- * Dependencies : none
- *
- * Autosar Version : 4.4.0
- * Autosar Revision : ASR_REL_4_4_REV_0000
- * Autosar Conf.Variant :
- * SW Version : 1.0.0
- * Build Version : S32K1_RTD_1_0_0_HF01_D2109_ASR_REL_4_4_REV_0000_20210907
- *
- * (c) Copyright 2020-2021 NXP Semiconductors
- * All Rights Reserved.
- *
- * NXP Confidential. This software is owned or controlled by NXP and may only be
- * used strictly in accordance with the applicable license terms. By expressly
- * accepting such terms or by downloading, installing, activating and/or otherwise
- * using the software, you are agreeing that you have read, and that you agree to
- * comply with and are bound by, such license terms. If you do not agree to be
- * bound by the applicable license terms, then you may not retain, install,
- * activate or otherwise use the software.
- ==================================================================================================*/
- /*
- * GCC Linker Command File:
- * 0x1FFF0000 0x1FFFFFFF 65536 SRAM_L
- * 0x20000000 0x2000EFFF 61440 SRAM_U
- */
- MEMORY
- {
- int_sram_results : ORIGIN = 0x1FFF0000, LENGTH = 0x00000100 /* 256bytes */
- int_sram : ORIGIN = 0x1FFF0100, LENGTH = 0x0001DF00 /* ~120K */
- int_sram_stack_c0 : ORIGIN = 0x2000E000, LENGTH = 0x00001000 /* 4K */
- ram_rsvd2 : ORIGIN = 0x2000F000, LENGTH = 0 /* End of SRAM */
- }
- HEAP_SIZE = DEFINED(__heap_size__) ? __heap_size__ : 0x00000200;
- ENTRY(Reset_Handler)
- SECTIONS
- {
-
- .sram :
- {
- . = ALIGN(4096);
- __interrupts_ram_start = .;
- KEEP(*(.intc_vector))
- . = ALIGN(4);
- __interrupts_ram_end = .;
- . = ALIGN(4);
- *(.startup)
- . = ALIGN(4);
- *(.systeminit)
- . = ALIGN(4);
- *(.text.startup)
- . = ALIGN(4);
- *(.text)
- *(.text*)
- . = ALIGN(4);
- *(.mcal_text)
- . = ALIGN(4);
- KEEP(*(.init))
- . = ALIGN(4);
- KEEP(*(.fini))
-
- . = ALIGN(4);
- *(.rodata)
- *(.rodata*)
- . = ALIGN(4);
- *(.mcal_const_cfg)
- . = ALIGN(4);
- *(.mcal_const)
- . = ALIGN(4);
- *(.mcal_const_no_cacheable)
- . = ALIGN(4);
- __init_table = .;
- KEEP(*(.init_table))
- . = ALIGN(4);
- __zero_table = .;
- KEEP(*(.zero_table))
- . = ALIGN(4);
- *(.acmcu_code_rom)
- . = ALIGN(4);
- *(.ramcode)
- . = ALIGN(4);
- *(.data)
- *(.data*)
- . = ALIGN(4);
- *(.mcal_data)
- . = ALIGN(4);
- *(.mcal_data_no_cacheable)
- . = ALIGN(16);
- __sram_bss_start = .;
- *(.bss)
- *(.bss*)
- . = ALIGN(16);
- *(.mcal_bss)
- . = ALIGN(16);
- __non_cacheable_bss_start = .;
- *(.mcal_bss_no_cacheable)
- . = ALIGN(4);
- __non_cacheable_bss_end = .;
- __sram_bss_end = .;
- } > int_sram
- .acfls_code_rom :
- {
- acfls_code_rom_start = .;
- . = ALIGN(0x4);
- *(.acfls_code_rom)
- acfls_code_rom_end = .;
- } > int_sram
-
- .acfls_code_ram :
- {
- . += (acfls_code_rom_end - acfls_code_rom_start );
- } > int_sram
-
- /* heap section */
- .heap (NOLOAD):
- {
- . = ALIGN(4);
- _end = .;
- end = .;
- _heap_start = .;
- . += HEAP_SIZE;
- _heap_end = .;
- } > int_sram
-
- int_results (NOLOAD):
- {
- . = ALIGN(4);
- KEEP(*(.int_results))
- . += 0x100;
- } > int_sram_results
- __Stack_end_c0 = ORIGIN(int_sram_stack_c0);
- __Stack_start_c0 = ORIGIN(int_sram_stack_c0) + LENGTH(int_sram_stack_c0);
- __INT_SRAM_START = ORIGIN(int_sram_results);
- __INT_SRAM_END = ORIGIN(ram_rsvd2);
-
- __RAM_INIT_START = ORIGIN(int_sram);
- __RAM_INIT_END = ORIGIN(int_sram) + LENGTH(int_sram) - 1;
- __ROM_INIT_START = 0;
- __ROM_INIT_END = 0;
-
- __BSS_SRAM_START = __sram_bss_start;
- __BSS_SRAM_END = __sram_bss_end;
- __BSS_SRAM_SIZE = __sram_bss_end - __sram_bss_start;
- __RAM_INTERRUPT_START = __interrupts_ram_start;
- __ROM_INTERRUPT_START = 0;
- __ROM_INTERRUPT_END = 0;
- __INIT_TABLE = __init_table;
- __ZERO_TABLE = __zero_table;
-
- __RAM_INIT = 0;
-
- /* Discard boot header in RAM */
- /DISCARD/ : { *(.flash_config) }
-
- /* Fls module access code support */
- Fls_ACEraseRomStart = ADDR(.acfls_code_rom);
- Fls_ACEraseRomEnd = ADDR(.acfls_code_rom) + SIZEOF(.acfls_code_rom);
- Fls_ACEraseSize = (SIZEOF(.acfls_code_rom)+3) / 4; /* Copy 4 bytes at a time*/
- Fls_ACWriteRomStart = ADDR(.acfls_code_rom);
- Fls_ACWriteRomEnd = ADDR(.acfls_code_rom) + SIZEOF(.acfls_code_rom);
- Fls_ACWriteSize = (SIZEOF(.acfls_code_rom)+3) / 4; /* Copy 4 bytes at a time*/
-
- _ERASE_FUNC_ADDRESS_ = ADDR(.acfls_code_ram);
- _WRITE_FUNC_ADDRESS_ = ADDR(.acfls_code_ram);
-
- __ENTRY_VTABLE = __RAM_INTERRUPT_START;
- }
|