Global Addressing problem in MC9S12XF512

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

Global Addressing problem in MC9S12XF512

跳至解决方案
1,290 次查看
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 解答
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 项奖励
回复
1 回复
747 次查看
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 项奖励
回复