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?
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?
Thank you,
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.