Thanks for the sharing. Good to know the problem got solved.
If the problem can be resolved by entering ISP mode, the reason should be your onchip application disturbing debug connection. eg, program in low power mode, watchdog reset, etc.
Entering ISP can bypass the running application.
Jun Zhang