How to share buffer above  8  KB between HC12X and XGATE (XEP100)?

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

How to share buffer above  8  KB between HC12X and XGATE (XEP100)?

ソリューションへジャンプ
1,448件の閲覧回数
大哥张
Contributor I

hello,

     I prepare share 12KB buffer between HC12X and XGATE, but nopaged RAM is 8KB .

     How to do ?

 

 

 

          afu

ラベル(1)
0 件の賞賛
返信
1 解決策
1,268件の閲覧回数
kef2
Senior Contributor V

Global RAM 0xF_8000'G..0xF_FFFF'G  maps in XGATE address space to 0x8000..0xFFFF. So you need to edit prm to create contiguous RAM segment there and just use it.

See demo attached. prm file defines contiguous 12k RAM segment at 0xF0000'G and suppresses corresponding 3x4k R-page segments. GLO_RAM placement points to this 12k segment.

See buf12k[] declared in xgate.h, defined in main.c. Function in main.c fills buf12k[], function in xgate.cxgate inverts all bits in buf12k[].

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,269件の閲覧回数
kef2
Senior Contributor V

Global RAM 0xF_8000'G..0xF_FFFF'G  maps in XGATE address space to 0x8000..0xFFFF. So you need to edit prm to create contiguous RAM segment there and just use it.

See demo attached. prm file defines contiguous 12k RAM segment at 0xF0000'G and suppresses corresponding 3x4k R-page segments. GLO_RAM placement points to this 12k segment.

See buf12k[] declared in xgate.h, defined in main.c. Function in main.c fills buf12k[], function in xgate.cxgate inverts all bits in buf12k[].

0 件の賞賛
返信
1,268件の閲覧回数
大哥张
Contributor I

Thank you very much !

I have found the solution. In the course of creating the project selects the option " Map in RAM ", I will get 16k contiguous  RAM segment.

0 件の賞賛
返信