Hi kumar narendra singh
Could you share the connections for the Reset pin, did you have a external pull up in this pin? also, what do you have connected to the NMI pin, it could be causing you problems to program, so we recommend an external pull up too.
When a MCU is blank, core is constantly resetting, so it is common to see a sawtooth signal in the reset pin, even with this behavior, you should be able to program the device if the programmer is able to take control of the reset line.
I recommend you to check the following posts:
Reset signal of K64
Sawtooth on Reset_B K20
https://community.nxp.com/message/351183
Hope this helps.
Best regards
Jorge Alcala