|
- MEMORY
- {
- ROM (arx) : ORIGIN = 0x00000000, LENGTH = 0x00080000 /* 512k */
- RAM (arw) : ORIGIN = 0x20000000, LENGTH = 0x00010000 /* 64k */
- SDRAM (xrw) : ORIGIN = 0x80000000, LENGTH = 2*1024*1024 /* 2M */
- }
复制代码 ld修改如上
定义变量
- static uint8_t Read_Buff[480*272*2] __attribute__(( section(".SDRAM"), aligned(4) ));
- static uint8_t Write_Buff[480*272*2] __attribute__(( section(".SDRAM"), aligned(4) ));
复制代码
for(int i= 0; i<4;i++)
{
Read_Buff = str;
}
出现错误
c:/program files (x86)/gnu arm embedded toolchain/10 2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: out/00_template.elf section `.SDRAM' will not fit in region `RAM'
c:/program files (x86)/gnu arm embedded toolchain/10 2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: out/00_template.elf section `.SDRAM' will not fit in region `ROM'
c:/program files (x86)/gnu arm embedded toolchain/10 2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: region RAM overflowed with stack
c:/program files (x86)/gnu arm embedded toolchain/10 2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: region `ROM' overflowed by 38168 bytes
c:/program files (x86)/gnu arm embedded toolchain/10 2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: region `RAM' overflowed by 475324 bytes
|
|