How to rebuild the EWL Libraries on Command Prompt

All library files (viz. libm.a, libc.a ...etc) are present in the ewl\lib folder.

The following steps help rebuild the EWL library files on the command prompt.

Note: The user should have access to a make utility within DOS.
  1. Open a DOS command prompt.
  2. Define the CWINSTALL environment variable.

    For example, if your Kinetis product layout is in the folder C:\Freescale\CW MCU v10.x then you can define CWINSTALL as follows:

    set CWINSTALL='C:\Freescale\CW MCU v10.x'

    Note: The single quote character (') is important because there are spaces in the path.
  3. Change your working directory to the ewl folder, for example,

    cd C:\Freescale\CW MCU V10.x\MCU\ARM_EABI_Support\ewl

  4. To clean the existing library files ... <path_to_make_utility>\make -f makefile PLATFORM=ARM_CORTEXM clean.

    You could skip the <path_to_make_utility> if you have make in your PATH variable.

  5. All the library files can be re-built using the following command:

    make -s -f makefile PLATFORM=ARM_CORTEXM all cleanobj

The PLATFORM=ARM_CORTEXM indicates that EWL is being re-built for Kinetis. After the make command is complete, check the lib folder and its sub-folders for the presence of libm.a, libc.a, ...etc.