Hi Bharth Yalla
What debug interface are you using? This problem normally is related with the reset pin of your debugger, so please check this pin in your device. Also you could try to check your reset option in Project->Options->Debugger->(your debugger interface) and try to select the option that you need. For example for jlink.

Hope this could helps.
Have a great day,
Jorge Alcala
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------