S12X: Converting between "Global Addresses" and "Paged Logical Addresses"

cancel
Showing results for 
Search instead for 
Did you mean: 

S12X: Converting between "Global Addresses" and "Paged Logical Addresses"

Jump to solution
1,187 Views
davekellogg
Contributor II

What is the algorithm for converting from a global address to a logical address, and from a logical address to a global address?

 

Has anyone written a little calculator program that does?

 

Thanks!!

Labels (1)
Tags (1)
0 Kudos
1 Solution
89 Views
CompilerGuru
NXP Employee
NXP Employee

With CW for HC12, there is a tool for this purpose:

"c:\Program Files\Freescale\CodeWarrior for S12(X) V5.0\Prog\hcs12xadrmap.exe"

 

Also in the HIWAVE debugger there is a component HSC12XAdrMap (use the Components->Open menu) which also translates and also shows addresses in the debugger directly. You can also drag and drop memory or other things into it to get their address in the different formats.

 

 

Daniel

View solution in original post

0 Kudos
1 Reply
90 Views
CompilerGuru
NXP Employee
NXP Employee

With CW for HC12, there is a tool for this purpose:

"c:\Program Files\Freescale\CodeWarrior for S12(X) V5.0\Prog\hcs12xadrmap.exe"

 

Also in the HIWAVE debugger there is a component HSC12XAdrMap (use the Components->Open menu) which also translates and also shows addresses in the debugger directly. You can also drag and drop memory or other things into it to get their address in the different formats.

 

 

Daniel

View solution in original post

0 Kudos