Hello Jin
What is the CodeWarrior version you are using? The latest version is CW10.6.6.
Please first install CW10.6.4 which can be downloaded from:
http://www.nxp.com/products/software-and-tools/software-development-tools/codewarrior-development-to...
Its update v10.6.5 and v10.6.6 are also available at the same link.
To instruct the CodeWarrior IDE to save changes to your source code files automatically before building the project, follow steps below:
- From the C/C++ perspective toolbar, select Window > Preferences .
The Preferences window appears.
2. Expand General .
3. Select Workspace
The Workspace settings appear.
4. Under Save required dirty editors before building , select the Always radio button.

5. Click Apply .
6.Click OK .
Hope it helps! If not, could you please attach your project to help us reproduce the problem? Thank you.
Best Regards
Fiona Kuang
Technical Information & Commercial Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Mark Correct button. Thank you!
-----------------------------------------------------------------------------------------------------------------------