MCUXpresso change .cproject from LPCXpresso

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

MCUXpresso change .cproject from LPCXpresso

2,000 Views
erenaud
Contributor II

Hello !

I am currently working with some project that were originally designed with LPCXpresso 7.9.2 and that I imported in MCUXpresso v11.4.1.

My problem is that I noticed that when closing MCUXpresso, my .cproject get modified in a way that forbids me from compiling it with LPCXpresso afterward.

Example :

This is the .cproject part before MCUXpresso's modification :

 

<option id="com.crt.advproject.link.scriptdir.941879009" name="Script path" superClass="com.crt.advproject.link.scriptdir" value="&quot;linkscripts/&quot;" valueType="string"/>
<option id="com.crt.advproject.link.gcc.multicore.master.userobjs.865184089" name="Slave Objects (not visible)" superClass="com.crt.advproject.link.gcc.multicore.master.userobjs" valueType="userObjs"/>
<inputType id="cdt.managedbuild.tool.gnu.c.linker.input.1771063841" superClass="cdt.managedbuild.tool.gnu.c.linker.input">
	<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
	<additionalInput kind="additionalinput" paths="$(LIBS)"/>
</inputType>

 

 After modification :

 

<option id="com.crt.advproject.link.scriptdir.941879009" name="Script path" superClass="com.crt.advproject.link.scriptdir" value="&quot;linkscripts/&quot;" valueType="string"/>
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="true" id="com.crt.advproject.link.gcc.multicore.master.userobjs.865184089" name="Slave Objects (not visible)" superClass="com.crt.advproject.link.gcc.multicore.master.userobjs" valueType="userObjs"/>
<option id="com.crt.advproject.link.memory.load.image.1279603817" superClass="com.crt.advproject.link.memory.load.image" value="" valueType="string"/>
<option defaultValue="com.crt.advproject.heapAndStack.lpcXpressoStyle" id="com.crt.advproject.link.memory.heapAndStack.style.781524659" superClass="com.crt.advproject.link.memory.heapAndStack.style" valueType="enumerated"/>
<option id="com.crt.advproject.link.memory.heapAndStack.1965334611" superClass="com.crt.advproject.link.memory.heapAndStack" value="&amp;Heap:Default;Post Data;Default&amp;Stack:Default;End;Default" valueType="string"/>
<option id="com.crt.advproject.link.memory.data.231457980" superClass="com.crt.advproject.link.memory.data" value="" valueType="string"/>
<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="true" id="com.crt.advproject.link.memory.sections.1062436042" superClass="com.crt.advproject.link.memory.sections" valueType="stringList"/>
<option id="com.crt.advproject.link.fpu.1591754971" superClass="com.crt.advproject.link.fpu"/>
<inputType id="cdt.managedbuild.tool.gnu.c.linker.input.1771063841" superClass="cdt.managedbuild.tool.gnu.c.linker.input">
	<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
	<additionalInput kind="additionalinput" paths="$(LIBS)"/>
</inputType>

 

 

So now, if a try to compile the project with modified .cproject with LPCXpresso, I get this error :

 

arm-none-eabi-gcc -Xlinker -Map=project.map -Xlinker --gc-sections -mcpu=cortex-m3 -mthumb -T project.ld -L linkscripts/ &Heap:Default;Post Data;Default&Stack:Default;End;Default -o project.axf [ALL .o FILES]
arm-none-eabi-gcc: error: &Heap:Default;Post: No such file or directory
arm-none-eabi-gcc: error: Data;Default&Stack:Default;End;Default: No such file or directory

 

 

And in deed, I can see in project settings that my linker command now looks like this :

erenaud_0-1639673425568.png


So I have two questions :
1) What is causing this ?
2) Is there anyway of preventing MCUXpresso of modifiying my .cproject like this ? And thus, have a project that can be used from both MCUXpresso and LPCXpresso.

Best regards

Tags (1)
0 Kudos
Reply
1 Reply

1,963 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi

LPCXpresso IDE is based on old Eclipse Mars(v4.5) platform and GNU toolchain(V5),  MCUXpresso IDE are based on newer platform and toolchain.

Project setting could be changed in order to adjust the environment changing.

Whilst a new MCUXpresso IDE version can open workspaces created by an earlier release, a workspace (and the projects it contains) that have been used by a new MCUXpresso IDE version may not correctly load into an earlier version. Thus we would strongly recommend that you back up your projects before commencing any migration.

The simplest way to do this is to create a new workspace in the new MCUXpresso IDE version, and then import any projects into this new workspace. How to import projects into a new workspace is detailed in the FAQ

https://community.nxp.com/message/630625

On my side, In order to test, I use LPCXpresso IDE opened and built a lpcopen project that was preciously built by MCUXpresso IDE. There was no error.

Best Regards

Jun Zhang

 

0 Kudos
Reply