Hi Balaguru,
First of all, I'd like suggest that you should check the hardware circuit, likes the RESET_b and NMI_b should have 100nF capacitors close to the MCU for transient protection and an external 4.7K to 10K pullup is also recommended.
Then, you should hold the RESET_b pin to low voltage before programming by using the IDE with debug tool likes the J-link.
Next, you can release the RESET_b after click the debug button in the IDE.
Please have a try by following the steps above and inform me the updates.
Have a great day,
Ping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------