Hi @SotirisEft,
This behavior could be caused by the reset pin of the debugger not being connected to the reset pin of your custom board. Could you please confirm they are bridged in your design?
If they are, it may be the reset pin is not being correctly connected to ground.
I hope you find this helpful! Please do not hesitate to ask if any doubt arises.
Best regards, Julián