Can i see the Xgate memory map?

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

Can i see the Xgate memory map?

跳至解决方案
1,606 次查看
rahulkrishna
Contributor IV

Hi,

Like global memory map which i can see in the .hex file and the local memory map in the s19 files. Is it possible for me to see only the xgate code and data variables in terms of xgate address not global or local addresses? This will help to see the variables which are shared are misaligned. One related question is why S12x does not follow any alignment for other varaibles why does it not generate bus error for misaligned data?

标签 (1)
标记 (3)
0 项奖励
回复
1 解答
1,445 次查看
trytohelp
NXP Employee
NXP Employee

Hi Rahul,

I don't understand what is the .hex, local memory and .s19 files.

The map file generated should contains all info including Xgate code and data.

Is there a way to generate the info for S12 or Xgate only ?

      The map file is generated by the linker according to the project.

      It contains all project information for S12 and Xgate cores.

By default there is a specific section for Shared Date (SHARED_DATA) which can be used by S12 and Xgate.

I've created an example containing 4 variables:

SECTION: "SHARED_DATA"

  val_1 val_2 val_3 displayValue

MODULE:         -- XGglobals.cxgate.o --

- PROCEDURES:

- VARIABLES:

val_1                             2000221  SHARED_DATA
val_2                             2002223  SHARED_DATA

MODULE:         -- CPU12Globals.c.o --

- PROCEDURES:

- VARIABLES:

val_3                             2004222  SHARED_DATA
displayValue                       2006113  SHARED_DATA

Have a great day,
Pascal
Freescale Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,446 次查看
trytohelp
NXP Employee
NXP Employee

Hi Rahul,

I don't understand what is the .hex, local memory and .s19 files.

The map file generated should contains all info including Xgate code and data.

Is there a way to generate the info for S12 or Xgate only ?

      The map file is generated by the linker according to the project.

      It contains all project information for S12 and Xgate cores.

By default there is a specific section for Shared Date (SHARED_DATA) which can be used by S12 and Xgate.

I've created an example containing 4 variables:

SECTION: "SHARED_DATA"

  val_1 val_2 val_3 displayValue

MODULE:         -- XGglobals.cxgate.o --

- PROCEDURES:

- VARIABLES:

val_1                             2000221  SHARED_DATA
val_2                             2002223  SHARED_DATA

MODULE:         -- CPU12Globals.c.o --

- PROCEDURES:

- VARIABLES:

val_3                             2004222  SHARED_DATA
displayValue                       2006113  SHARED_DATA

Have a great day,
Pascal
Freescale Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复