How to rebuild the EWL Libraries

The files (viz. libm.a, libc.a. ...etc.) are present in the ewl\lib folder under a sub-folder v<x>, where <x> is a number indicating the coldfire architecture. If the architecture supports PIC/PID then the library files for them will be present in a sub-folder (called pi) for that architecture.

The process to rebuild the EWL library files is given below.

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 the you CWINSTALL is in the folder C:\Freescale\CW MCU v10.x then you can define CWINSTALL as follows:

    set CWINSTALL='C:/Program Files/Freescale/CW MCU V10.x/MCU'

    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\ColdFire_Support\ewl

  4. To clean the existing library files ... <path_to_make_utility>\make -f makefile 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=CF all cleanobj

    The "PLATFORM=CF" indicates that EWL is being re-built for ColdFire.

  6. After the make command is complete, check the lib folder and its sub-folders for the presence of libm.a, libc.a, ...etc.

The EWL library files are rebuilt.