I was using USBDM to program MC9S12G128,the error is as follows:
Programming of the target flash failed! Reason: Execution of TCL script returned an error!