how to add gfxRAM to linker file ?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

how to add gfxRAM to linker file ?

ソリューションへジャンプ
1,492件の閲覧回数
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,330件の閲覧回数
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,331件の閲覧回数
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 件の賞賛
返信