Global Addressing problem in MC9S12XF512

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

Global Addressing problem in MC9S12XF512

ソリューションへジャンプ
1,289件の閲覧回数
Raneesh
Contributor I

Hi,

I am facing problem in assigning adress to a pointer. I am using banked memory. The variable definition and assignment as follows.

 

volatile uint16 * __far header;

 

header = ((volatile uint16 * __far)(0xff000));

 

In the debugger window I am getting the address in header as 0xf000 instead of 0xff000. Please provide help in solving this problem.

 

Thanks,

Raneesh

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
745件の閲覧回数
CrasyCat
Specialist III

Hello

 

Which version of CodeWarrior for HC12 are you using?

 

I tried with V4.7 and I get header set to 0xFF000

 

To retrieve the version number:

- Start CodeWarrior
- Select Help -> About Freescale CodeWarrior
- Click on "Install Products"
- CodeWarrior version used is displayed on top in the Installed Products dialog.

 

CrasyCat

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
746件の閲覧回数
CrasyCat
Specialist III

Hello

 

Which version of CodeWarrior for HC12 are you using?

 

I tried with V4.7 and I get header set to 0xFF000

 

To retrieve the version number:

- Start CodeWarrior
- Select Help -> About Freescale CodeWarrior
- Click on "Install Products"
- CodeWarrior version used is displayed on top in the Installed Products dialog.

 

CrasyCat

0 件の賞賛
返信