hsize and dsize in HCS12 map file

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

hsize and dsize in HCS12 map file

810 Views
KKumar
Contributor II

Hi NXP,

 

What is the meaning of hsize ,dsize and ref in map file of S12 Application Project.

Plz refer the attached image.

image.png

 

0 Kudos
2 Replies

790 Views
lama
NXP TechSupport
NXP TechSupport

Hsize/dsize is a size of variable in hex or decimal.


 

lama_4-1644994182577.png

 

Variable arr_ub is array of size 10 bytes (0x0A bytes) and placed at global address 0x400000 in the MY_EXSRAM0_CSO memory space defined in the prm file.

 

“Ref” is the number that the procedure or variable referenced ( called or used ) in application code. For example:

Create a new xep100 project, in map file, I see Ref for PORTE is 0. this means, PORTE is not used in the application

lama_5-1644994182584.jpeg

 

Add following code to the application source code below. PORTE is used twice

lama_6-1644994182589.jpeg

 

Build the project, in map file, we will see PORTE is increased to "2"

lama_7-1644994182596.jpeg

Best regards,

Ladislav

 

 

0 Kudos

797 Views
kef2
Senior Contributor IV

dSize - decimal amount of bytes, hSize - the same in hex.

0 Kudos