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
Solved! Go to Solution.
in RAM mode, you need set m_text section in RAM address. for example,
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.
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!
in RAM mode, you need set m_text section in RAM address. for example,
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.
Great.
Thanks a lot
OM
Hi Fiona
Any news regarding the .pe I sent
OM
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.
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