i.MX Forums i.MX RT Command line compiling for RT1176

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

i.MX Forums i.MX RT Command line compiling for RT1176

Jump to solution
2,780 Views
MN19000
Contributor III

i.MX Forums i.MX RT

I am using MIMXRT1170 MCU.

I need to compile my project from command line. Please send me instruction

0 Kudos
Reply
1 Solution
2,659 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @MN19000

From the batch file you share, I see you are using a different path for the toolchain and for the IDE you are using. Please update the path to: "C:\nxp\MCUXpressoIDE_11.7.1_9221\ide\tools\bin" to make it match with the IDE version you are using.

Please try this and let me know if the issue persists.

BR,
Edwin.

View solution in original post

4 Replies
2,763 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @MN19000,

Please look into the following post, as I believe it might just be what you are looking for!

https://mcuoneclipse.com/2017/08/03/building-eclipse-and-mcuxpresso-ide-projects-from-the-command-li...

BR,
Edwin.

0 Kudos
Reply
2,714 Views
MN19000
Contributor III

Hi @EdwinHz 

I have used an example code, but it is failing due to launching Eclipse IDE.
Here is the batch file
 
-------------
 

# Batch file to build an Eclipse project from the command line on Windows

# Example for using MCUXpresso IDE
 
# path to GNU tools and compiler: arm-none-eabi-gcc.exe, ....
SET TOOLCHAIN_PATH=C:\nxp\MCUXpressoIDE_10.0.2_411\ide\tools\bin
 
# variable to the command line Eclipse IDE executable
SET IDE=C:\nxp\MCUXpressoIDE_11.7.1_9221\ide\mcuxpressoidec.exe
 
ECHO Extending PATH if not already present
ECHO %PATH%|findstr /i /c:"%TOOLCHAIN_PATH:"=%">nul || set PATH=%PATH%;%TOOLCHAIN_PATH%
 
ECHO Launching Eclipse IDE

"%IDE%" -nosplash --launcher.suppressErrors -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data "c:\tmp\wsp" -build evkmimxrt1170_freertos_event_cm7

I have followed the instruction  on the link, but it is still not working
 
WARNING: No Project matched "evkmimxrt1170_freertos_event_cm7". Skipping...
 
-----------
C:\CL_NXP\CommandLine_Test>ECHO Launching Eclipse IDE
Launching Eclipse IDE
 
C:\CL_NXP\CommandLine_Test>"C:\nxp\MCUXpressoIDE_11.7.1_9221\ide\mcuxpressoidec.exe" -nosplash --launcher.suppressErrors -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data "c:\tmp\wsp" -build evkmimxrt1170_freertos_event_cm7
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
WARNING: No Project matched "evkmimxrt1170_freertos_event_cm7". Skipping...
===========
0 Kudos
Reply
2,660 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @MN19000

From the batch file you share, I see you are using a different path for the toolchain and for the IDE you are using. Please update the path to: "C:\nxp\MCUXpressoIDE_11.7.1_9221\ide\tools\bin" to make it match with the IDE version you are using.

Please try this and let me know if the issue persists.

BR,
Edwin.

2,621 Views
MN19000
Contributor III
Thank you, that solved my issue.
0 Kudos
Reply