CodeWarrior v10.6 and KDS are integrated development tools which are based on Eclipse, these two IDEs provide easy way to build project when using the GUI, but some engineers still want to build their projects from command line to do automated builds.
This document provides examples on how to do it!
Build project in CodeWarrior from command line:
For a CW v10.6 created project, CW provides the “Make” tool and can also generate the needed “MakeFile” to build this project out of eclipse GUI.
The below are the steps:
Now, checking the “FLASH” subfolder in project location, you will see “makefile” is generated.
4.To use “make” tool convenient, we can define an environment variable pointing to {CW}\gnu\bin where “make” is located. See command as below:
5. Go to the configuration folder “FLASH” where the project’s makefiles are located and run the follow commands to build the project.
%MCU_BIN%\make.exe
PS: to get more information of make and ecd, please just run the below command:
Build project in KDS from command line:
Compare with CodeWarrior, it is much easier to build an application in command mode. KDS provides a command “eclipse.exe” with which you can build a project with only two steps.
In this example, I have created an application with name “cmd_ke02”, and the workspace path is “C:\wks_kdscmd”.
For more details of building project from command line in KDS, please refer:
http://mcuoneclipse.com/2014/09/12/building-projects-with-eclipse-from-the-command-line/
Hi Yong Lin
You have to make sure that PATH add these two path for "make.exe" and "arm-none-eabi-gcc.exe".
Otherwise KDS will got error message while compiling.
C:\Freescale\KDS_3.0.0\bin
C:\Freescale\KDS_3.0.0\toolchain\bin