MPC57xx Linker m_dflash and m_text

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MPC57xx Linker m_dflash and m_text

708件の閲覧回数
cholland
Contributor V

I am trying to understand the linker file.

I am curious to know why m_dflash and m_text are only certain sizes.

1. m_text

In the linker file, I see m_text defined as:

m_text : org = 0x01000000, len = 1280K

1280K : 1280 * 1024 = 1310720d = 0x140000

So, that would mean m_text only covers Read Partition 6 and not Read Partition 7.

I would think its supposed to cover all of Read Partition 6 and Read Partition 7?

pastedImage_8.png

2. m_dflash 

In the linker file, I see data flash defined as: 

m_dflash :  org = 0x00F90000, len = 96K    /* data flash memory segment */   

96 * 1024 = 98304 = 0x180000

So F90000 + 180000 = FA8000

That means m_dflash covers all of partition 2 and half of partition 3.

Shouldn't m_dflash cover all of partition 3?

 

pastedImage_2.png

Thank you,

ラベル(1)
2 返答(返信)

586件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hi,

The partition sizes depends on linker definitions.

Did you wrote this linker yourself or it is taken from some templates of "unknown" compiler?

Could you share more info here?

regards,

Peter

586件の閲覧回数
cholland
Contributor V

Hi Peter,

>>Did you wrote this linker yourself or it is taken from some templates of "unknown" compiler?

I think I got it from some project on the web somewhere, or a previous project somebody else worked on.

I guess that answers my own question.

m_text should cover partitions 6 & 7

m_text : org = 0x01000000, len = 2560K

m_dflash should cover partitions 2 & 3

m_dflash :  org = 0x00F90000, len = 126K    /* data flash memory segment */   

If I wanted to at some other point, I could define my own memory sections. 

0 件の賞賛
返信