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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
1,858 次查看
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

标签 (1)
1 解答
1,607 次查看
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!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

1 回复
1,608 次查看
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!
-----------------------------------------------------------------------------------------------------------------------