我想将部分程序放在SDRAM运行,就用了#pragma CODE_SECTION(counting,".xxxsect")
然后在.cmd文件中将.xxxsect段放入SDRAM中
MEMORY
{
IRAM: o = 00000000h l = 0000FA00h
SDRAM: o = 80000000h l = 00010000h
}
SECTIONS
{
.text : IRAM
.xxxsect : >SDRAM
.cinit > IRAM
.const > IRAM
.stack > IRAM
.bss > IRAM
.data > IRAM
.far > IRAM
.switch > IRAM
.sysmem > IRAM
.cio > IRAM
}
出现如下错误:
> error: relocation overflow occured at address 0x000000144 in section '.text' of input file 'e:\ti\myprojects\s_test\Debug\test.obj'. The 29-bit relocated address 0x1FFFFCC0 is too large to encode in the 21-bit field. You may need to add a mask to the assembly instruction or use other target specific assembly features if you really only need the lowest 21 bits of this symbol. Please see the section on Relocation in the Assembly User's Guide.
怎么回事呢 |