Linker Configuration File isn't created

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

Linker Configuration File isn't created

Jump to solution
1,542 Views
om
Contributor III

Hello All

I have a strange problem.

I switch between configurations (FLASH and RAM) and generated files.

In FLASH, the .lcf is created. (under Project_Settings\Linker_Files)

In RAM, the .lcf is NOT created.

why ????

I read this https://community.freescale.com/thread/309605 post, I saw that there are option to check which CPU component is Enabled, and still, all the 4 options (of RAM and CPU) didn't produce .lcf, when I am in RAM.

What to do ?

Thanks a lot

OM

0 Kudos
Reply
1 Solution
1,260 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

in RAM mode, you need set m_text section in RAM address. for example,

untitled.JPG

thus the generated memory section in lcf file is as:

MEMORY {

  m_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 0x000001E0

  m_text      (RX) : ORIGIN = 0x20000000, LENGTH = 0x00010000

  m_data      (RW) : ORIGIN = 0x1FFF0000, LENGTH = 0x00010000

  m_cfmprotrom  (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010

}

I will also attach the pe file that i modifed as i am talking above.

View solution in original post

0 Kudos
Reply
7 Replies
1,260 Views
TICS_Fiona
NXP Employee
NXP Employee

1) Please enable the 'Generate linker file' under 'Build Options' in CPU Componnet Inspector.

2) Click on 'Generate Processor Expert code' button to re-generate code

The generated link file will be placed under <\Project_Settings\Linker_Files\> subfolder with the name *.lcf, or *.ld, or *.cmd.

If this does not help, would you please attach the project? Thanks!

generate linker file.png

0 Kudos
Reply
1,260 Views
om
Contributor III

Hi Fiona

Sorry for the late respond

I was not near a computer.

Attached the PE project.

RAM config linker file isn't created.

FLASH, yes.

OM

0 Kudos
Reply
1,261 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

in RAM mode, you need set m_text section in RAM address. for example,

untitled.JPG

thus the generated memory section in lcf file is as:

MEMORY {

  m_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 0x000001E0

  m_text      (RX) : ORIGIN = 0x20000000, LENGTH = 0x00010000

  m_data      (RW) : ORIGIN = 0x1FFF0000, LENGTH = 0x00010000

  m_cfmprotrom  (RX) : ORIGIN = 0x00000400, LENGTH = 0x00000010

}

I will also attach the pe file that i modifed as i am talking above.

0 Kudos
Reply
1,260 Views
om
Contributor III

Great.

Thanks a lot

  OM

0 Kudos
Reply
1,260 Views
om
Contributor III

Hi Fiona

Any news regarding the .pe I sent

OM

0 Kudos
Reply
1,260 Views
BlackNight
NXP Employee
NXP Employee

Hi OM,

right click on the RAM configuration, and make it the active one.

Then re-generate Processor Expert code.

You will see that the linker file will be re-generated for RAM.

0 Kudos
Reply
1,260 Views
om
Contributor III

Hi Erich

Thanks for the answer.

It is exactly what I did before, (and I re-tried now) and tried again now, but the file ism't generated.

When I choose Flash configuration, the file created.

Why in ram it is not ?

(I can attach .pe file, if it will help)

OM

0 Kudos
Reply