HCS12XEQ384 - Global Memory Map (Documentation) <-> Output Map

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

HCS12XEQ384 - Global Memory Map (Documentation) <-> Output Map

Jump to solution
805 Views
saschapfengler
Contributor II

Hi there!

New S12X-Developer here.

 

Ive been studying "MC9S12XEP100 Reference Manual Covers MC9S12XE Family"

http://cache.nxp.com/files/microcontrollers/doc/data_sheet/MC9S12XEP100RMV1.pdf?fpsp=1&WT_TYPE=Data%...

 

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

Labels (1)
1 Solution
555 Views
RadekS
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

1 Reply
556 Views
RadekS
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------