MCUXpresso IDE v11.8.1 - How to command line build project?

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

MCUXpresso IDE v11.8.1 - How to command line build project?

Jump to solution
489 Views
mimlo
Contributor III
Hi,
I'm using MCUXpresso IDE v11.8.1 [Build 1197] [2023-10-27] and my project is built by pipeline upon PR. Since I'm setting things up in the pipeline, I was wondering How can I build MCUXpresso project from command line.
I refereed to the MCUXpresso_IDE_Command_Line_User_Guide.pdf but build mentions that I found there were merely about SDK generated example projects that did not seem to be much of help for me.

 

I also searched the web and found this:
Building Eclipse and MCUXpresso IDE Projects from the Command Line | MCU on Eclipse
In there I found this command:
"%IDE%" -nosplash --launcher.suppressErrors -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data "c:\tmp\wsp" -build frdmk64f_rtos_examples_freertos_event
The problem with above is, that the current version of MCUXpresso does not have such thing as org.eclipse.cdt.managedbuilder.core.headlessbuild. I looked all over nxp directory and didn't find it.


I used the command above in different ways but could not come up with working solution.

 

<path_to_mcuXpresso>\mcuxpressoide.exe -application com.nxp.mcuxpresso.headless.application -nosplash -noExit -data "<path_to_my_project> -build <project_name>

 

 
Can someone provide an advice or solution to this problem?

PS. I know I could use makefile and execute build using make, but for now I would like to stick to the current method if possible.

Tags (2)
0 Kudos
Reply
1 Solution
468 Views
AdrianOltean
NXP Employee
NXP Employee

Using "org.eclipse.cdt.managedbuilder.core.headlessbuild" is the right approach in your case. I've just verified the existence of "org.eclipse.cdt.managedbuilder.core.headlessbuild" plugin in MCUXpresso IDE v11.8.1 and I confirm it's there. Perhaps you're not using "mcuxpressoidec.exe"?

Details about Eclipse's command line parameters can be found at [1] whereas CDT's command line parameters can be found at [2] (could not easily find the official documentation).

I think you'd also be interested about [3].

Regards,

Adrian

[1] https://help.eclipse.org/latest/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2...

[2] https://github.com/eclipse-cdt/cdt/blob/main/build/org.eclipse.cdt.managedbuilder.core/src/org/eclip...

[3] https://community.nxp.com/t5/MCUXpresso-IDE/Mcuxpressoide-JVM-terminated-Exit-code-1/m-p/1783768

 

 

View solution in original post

0 Kudos
Reply
2 Replies
469 Views
AdrianOltean
NXP Employee
NXP Employee

Using "org.eclipse.cdt.managedbuilder.core.headlessbuild" is the right approach in your case. I've just verified the existence of "org.eclipse.cdt.managedbuilder.core.headlessbuild" plugin in MCUXpresso IDE v11.8.1 and I confirm it's there. Perhaps you're not using "mcuxpressoidec.exe"?

Details about Eclipse's command line parameters can be found at [1] whereas CDT's command line parameters can be found at [2] (could not easily find the official documentation).

I think you'd also be interested about [3].

Regards,

Adrian

[1] https://help.eclipse.org/latest/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2...

[2] https://github.com/eclipse-cdt/cdt/blob/main/build/org.eclipse.cdt.managedbuilder.core/src/org/eclip...

[3] https://community.nxp.com/t5/MCUXpresso-IDE/Mcuxpressoide-JVM-terminated-Exit-code-1/m-p/1783768

 

 

0 Kudos
Reply
454 Views
mimlo
Contributor III

Hi @AdrianOltean,
Thank you for that: Perhaps you're not using "mcuxpressoidec.exe"
It turned out that I was using the other .exe file. I was completely unaware of the existence of mcuxpressoidec.exe. It was mentioned in the documentation, but I simply overlooked that letter 'c' at the end of the name.

What I also noticed, is the fact that I needed to specify workspace path to the - data parameter, as the project source code location did not work.

All in all, this is what worked for me:

mcuxpressoidec.exe -nosplash --launcher.suppressErrors -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data "%WORKSPACE_LOC%" -build %PROJECT_NAME%/Debug

After that, I got the build up and running.
Thanks for the help!

0 Kudos
Reply