Look in the Help folder, located in your CodeWarrior installation folder. There are a number of app notes and tech notes there. One of the tech notes should explan how to copy code from ROM to RAM, in preparation for writing to Flash. This should guide you as to what to do.
---Tom