Can i see the Xgate memory map?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Can i see the Xgate memory map?

ソリューションへジャンプ
791件の閲覧回数
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 解決策
630件の閲覧回数
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 返信
631件の閲覧回数
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 件の賞賛