This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

【SYS/BIOS】 如何定义section的存放位置



-heap 0x800
-stack 0x1000

MEMORY
{
        L2SRAM: o = 0x00800200 l = 0xBFE00

       MSMCSRAM: o = 0x0C000000 l = 0x00200000

       DDR3: o = 0x80000000 l = 0x01000000 /*set memory protection attribitue as execution only*/
}

SECTIONS
{
    vecs > L2SRAM

.text > L2SRAM
.cinit > L2SRAM
.const > L2SRAM
.switch > L2SRAM

.stack > L2SRAM
GROUP
{
.neardata
.rodata
.bss
} > L2SRAM
.far > L2SRAM
.fardata > L2SRAM
.cio > L2SRAM
.sysmem > L2SRAM
}

在非 SYS/BIOS 的工程中,cmd 文件可以按照如上写法,

但在 SYS/BIOS 工程中,cmd 文件无法定义.cinit 这类存放变量初值和常量的段

那么,应该如何处理才能将.cinit 这类 section 根据需求放进存储空间更大的 DDR3中?

谢谢!