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?
解決済! 解決策の投稿を見る。
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 | 2000 | 2 | 2 | 1 SHARED_DATA | |
val_2 | 2002 | 2 | 2 | 3 SHARED_DATA |
MODULE: | -- CPU12Globals.c.o -- |
- PROCEDURES:
- VARIABLES:
val_3 | 2004 | 2 | 2 | 2 SHARED_DATA | |
displayValue | 2006 | 1 | 1 | 3 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!
-----------------------------------------------------------------------------------------------------------------------
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 | 2000 | 2 | 2 | 1 SHARED_DATA | |
val_2 | 2002 | 2 | 2 | 3 SHARED_DATA |
MODULE: | -- CPU12Globals.c.o -- |
- PROCEDURES:
- VARIABLES:
val_3 | 2004 | 2 | 2 | 2 SHARED_DATA | |
displayValue | 2006 | 1 | 1 | 3 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!
-----------------------------------------------------------------------------------------------------------------------