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

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

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

跳至解决方案
1,960 次查看
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!!

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
862 次查看
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

在原帖中查看解决方案

0 项奖励
回复
1 回复
863 次查看
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

0 项奖励
回复