Global Addressing problem in MC9S12XF512

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Global Addressing problem in MC9S12XF512

Jump to solution
799 Views
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

Labels (1)
Tags (1)
0 Kudos
1 Solution
255 Views
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

View solution in original post

0 Kudos
1 Reply
256 Views
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 Kudos