/* * Copyright 2020-2026 Yuntu Microelectronics Co., Ltd. * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause * * @file yt_linker.scf * @brief * */ LR_IVT_0 0x0 { IVT_start 0x0 FIXED EMPTY 0 { } isr_vector_region_start +0 FIXED EMPTY 0 { } isr_vector_region +0 NOCOMPRESS { *(.isr_vector) } isr_vector_region_end +0 EMPTY 0 { } IVT_end +0 EMPTY 0 { } } ScatterAssert(ImageLength(LR_IVT_0) <= 1024) LR_TEXT_0 0x400 { TEXT_start 0x400 FIXED EMPTY 0 { } text_region_start +0 FIXED EMPTY 0 { } text_region +0 NOCOMPRESS { *(.text*) } text_region_end +0 EMPTY 0 { } rodata_region_start +0 FIXED EMPTY 0 { } rodata_region +0 NOCOMPRESS { *(.rodata*) } rodata_region_end +0 EMPTY 0 { } mcal_text_region_start +0 FIXED EMPTY 0 { } mcal_text_region +0 NOCOMPRESS { *(.mcal_text) } mcal_text_region_end +0 EMPTY 0 { } mcal_const_region_start +0 FIXED EMPTY 0 { } mcal_const_region +0 NOCOMPRESS { *(.mcal_const) } mcal_const_region_end +0 EMPTY 0 { } mcal_const_no_cacheable_region_start +0 FIXED EMPTY 0 { } mcal_const_no_cacheable_region +0 NOCOMPRESS { *(.mcal_const_no_cacheable) } mcal_const_no_cacheable_region_end +0 EMPTY 0 { } mcal_const_cfg_region_start +0 FIXED EMPTY 0 { } mcal_const_cfg_region +0 NOCOMPRESS { *(.mcal_const_cfg) } mcal_const_cfg_region_end +0 EMPTY 0 { } TEXT_end +0 EMPTY 0 { } ARM_start +0 FIXED EMPTY 0 { } ARM_region_start +0 FIXED EMPTY 0 { } ARM_region +0 NOCOMPRESS { *(.ARM*) } ARM_region_end +0 EMPTY 0 { } ARM_end +0 EMPTY 0 { } } ScatterAssert(ImageLength(LR_TEXT_0) <= 0x3FC00) LR_IVT_RAM_0 0x20000000 { IVT_RAM_start AlignExpr(+0,1024) EMPTY 0 { } IVT_RAM AlignExpr(+0,1024) EMPTY 0X400 { } IVT_RAM_end +0 EMPTY 0 { } } ScatterAssert(ImageLength(LR_IVT_RAM_0) <= 0x400) LR_POR_0 0x200077f0 { POR_RAM_start +0 EMPTY 0 { } mcal_por_bss_region_start +0 EMPTY 0 { } mcal_por_bss_region +0 NOCOMPRESS { *(.mcal_por_bss*) } mcal_por_bss_region_end +0 EMPTY 0 { } POR_RAM_end +0 EMPTY 0 { } } ScatterAssert(ImageLength(LR_POR_0) <= 16) LR_STACK_0 0x20007800 { STACK_start +0 EMPTY 0 { } STACK +0 EMPTY 2048 { } STACK_end +0 EMPTY 0 { } } ScatterAssert(ImageLength(LR_STACK_0) <= 2048) LR_RAM_0 0x20000400 { BSS_start +0 EMPTY 0 { } bss_region_start +0 EMPTY 0 { } bss_region +0 NOCOMPRESS { *(.bss*) } bss_region_end +0 EMPTY 0 { } mcal_bss_region_start +0 EMPTY 0 { } mcal_bss_region +0 NOCOMPRESS { *(.mcal_bss) } mcal_bss_region_end +0 EMPTY 0 { } mcal_bss_no_cacheable_region_start +0 EMPTY 0 { } mcal_bss_no_cacheable_region +0 NOCOMPRESS { *(.mcal_bss_no_cacheable) } mcal_bss_no_cacheable_region_end +0 EMPTY 0 { } BSS_end +0 EMPTY 0 { } FLS_DRV_start +0 EMPTY 0 { } FLS_DRV +0 EMPTY 1024 { } FLS_DRV_end +0 EMPTY 0 { } } ScatterAssert(ImageLength(LR_RAM_0) <= 0x73F0) LR_TEXT_1 0x400 + ImageLength(LR_TEXT_0) { CODE_RAM_start AlignExpr(ImageLimit(FLS_DRV_end),4) EMPTY 0 { } ramcode_region_start +0 EMPTY 0 { } ramcode_region +0 NOCOMPRESS { *(.ramcode) } ramcode_region_end +0 EMPTY 0 { } CODE_RAM_end +0 EMPTY 0 { } } ScatterAssert( 0x3FC00 >= (0 + ImageLength(LR_TEXT_0))) ScatterAssert(ImageLength(LR_TEXT_1) <= 0x3FC00-(0 + ImageLength(LR_TEXT_0))) LR_TEXT_2 0x400 + ImageLength(LR_TEXT_0) + ImageLength(LR_TEXT_1) { DATA_RAM_start AlignExpr(ImageLimit(CODE_RAM_end),4) EMPTY 0 { } data_region_start +0 EMPTY 0 { } data_region +0 NOCOMPRESS { *(.data*) } data_region_end +0 EMPTY 0 { } mcal_data_region_start +0 EMPTY 0 { } mcal_data_region +0 NOCOMPRESS { *(.mcal_data) } mcal_data_region_end +0 EMPTY 0 { } mcal_data_no_cacheable_region_start +0 EMPTY 0 { } mcal_data_no_cacheable_region +0 NOCOMPRESS { *(.mcal_data_no_cacheable) } mcal_data_no_cacheable_region_end +0 EMPTY 0 { } DATA_RAM_end +0 EMPTY 0 { } } ScatterAssert( 0x3FC00 >= (0 + ImageLength(LR_TEXT_0) + ImageLength(LR_TEXT_1))) ScatterAssert(ImageLength(LR_TEXT_2) <= 0x3FC00-(0 + ImageLength(LR_TEXT_0) + ImageLength(LR_TEXT_1)))