how to add gfxRAM to linker file ?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

how to add gfxRAM to linker file ?

跳至解决方案
1,503 次查看
ChrisNielsen
Contributor III

I'm developing under IAR's IDE.  The attached linker file works well but only includes sysRAM0 and sysRAM1 (512KB).  I need to extend the linker file to include the 512KB in gfxRAM.  I've done some linker file editing in the past (successfully) but I'm always nervous since I'm not very familiar with the syntax and rules.

 

Does anyone know the best way to alter the linker file to include gfxRAM so the full 1 MB is available to the linker as allocatable RAM?

 

Thanks, Chris

Original Attachment has been moved to: vf600_ocram.icf.zip

0 项奖励
回复
1 解答
1,341 次查看
ChrisNielsen
Contributor III

I found it.  Need to add the bolded phrase below to add gfxRAM:

define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__   to __ICFEDIT_region_RAM_end__] | mem:[from 0x3F400000 to 0x3F47FFFF];

Without using the IAR symbols, it is:

define region RAM_region = mem:[from 0x3F000410 to 0x3F07FFFF] | mem:[from 0x3F400000 to 0x3F47FFFF];

We are skipping the first 0x410 locations for the vector table (don't let linker allocate in there).

Chris

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,342 次查看
ChrisNielsen
Contributor III

I found it.  Need to add the bolded phrase below to add gfxRAM:

define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__   to __ICFEDIT_region_RAM_end__] | mem:[from 0x3F400000 to 0x3F47FFFF];

Without using the IAR symbols, it is:

define region RAM_region = mem:[from 0x3F000410 to 0x3F07FFFF] | mem:[from 0x3F400000 to 0x3F47FFFF];

We are skipping the first 0x410 locations for the vector table (don't let linker allocate in there).

Chris

0 项奖励
回复