Hi there!
New S12X-Developer here.
Ive been studying "MC9S12XEP100 Reference Manual Covers MC9S12XE Family"
In this documentation I'm told that global Flash addr. ranges from 0x78_0000 to 0x79_FFFF (128 kB) and 0x7C_0000 to 0x7F_FFFF (256 kB).
Now when I take a look into the .map file I see things like these:
"
OBJECT-ALLOCATION SECTION
Name Module Addr hSize dSize Ref Section RLIB
---------------------------------------------------------------------------------------------
MODULE: -- Start12.c.o --
- PROCEDURES:
Init FE8000 29 41 2 .text
_Startup C029 B 11 1 NON_BANKED
- VARIABLES:
"
-> Startcode at 0xFE8000 which exceeds 0x79FFFF.
Am I missing something?
Original Attachment has been moved to: Project.map.zip
Solved! Go to Solution.
Hi Sascha,
Yes, you just mixing local and global addresses.
The 0xFE8000 is local address (0xFE as PPAGE and 0x8000 in memory window).
In fact, address 0xFE8000 refers to 7F_8000 in the global memory map.
See attached memory map overview for more details.
The CPU and CW typically work with local addresses. Please, see TN238 and TN240 for more details how to use Local (Logical, Banked) and Global (Physical) addresses.
The default path is:
"c:\Program Files (x86)\Freescale\CWS12v5.1\Help\PDF\TN238.pdf"
"c:\Program Files (x86)\Freescale\CWS12v5.1\Help\PDF\TN240.pdf"
I hope it helps you.
Have a great day,
Radek
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Sascha,
Yes, you just mixing local and global addresses.
The 0xFE8000 is local address (0xFE as PPAGE and 0x8000 in memory window).
In fact, address 0xFE8000 refers to 7F_8000 in the global memory map.
See attached memory map overview for more details.
The CPU and CW typically work with local addresses. Please, see TN238 and TN240 for more details how to use Local (Logical, Banked) and Global (Physical) addresses.
The default path is:
"c:\Program Files (x86)\Freescale\CWS12v5.1\Help\PDF\TN238.pdf"
"c:\Program Files (x86)\Freescale\CWS12v5.1\Help\PDF\TN240.pdf"
I hope it helps you.
Have a great day,
Radek
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------