MPC57xx Linker m_dflash and m_text

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

MPC57xx Linker m_dflash and m_text

571 Views
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,

Labels (1)
2 Replies

449 Views
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

449 Views
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 Kudos
Reply