Hi Hongjian Sun,
In CW v10.6 there is not a direct method to change the target CPU of a baremetal project, the recommended procedure is to create a new project for the desired device and copy the source and header files from the original project.
If you are using the Processor Expert examples then there is an alternative to do this, please take a look to the following post created by our colleague Erich Styger:
http://mcuoneclipse.com/2012/08/16/changing-the-cpu-with-processor-expert/
Hope it helps!
Best Regards,
Carlos Mendoza
Technical Support Engineer
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------