Can i see the Xgate memory map?

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

Can i see the Xgate memory map?

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

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

View solution in original post

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