Hi Rahul,
It seems you're using CW for HC12 v5.1.
The variables test1 and test2 are defined in the test_data structure.
The map file provide the info regarding the structure and not for the element contained in the structure.
In your case the info:
| test_data | 2100 | 4 | 4 | 1 .data | |
The structure is located at memory address 0x2100 and the size of 4 bytes is reserved for the element contained in the structure.
If we change int test1; by long test1 we will have:
| test_data | 2100 | 6 | 6 | 2 .data | |
Always same address but 4 bytes for test1 and 2 for test2.
Have a great day,
Pascal
Freescale Technical Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------