I was trying to unlock JTAG and debug the software and results into either debug port fail or target reset. PFB is the steps I followed.
SYStem.RESetSYStem.BdmClock 16.0MHzSYStem.DETECT CPUSYStem.Option.ResBreak OFFSYStem.Option.WaitReset 3sSYStem.Option KEYCODE 0x12345678 0x12345678 0x12345678 0x12345678 0x12345678 0x12345678 0x12345678 0x12345678System.Option ResetMode FUNCtionalSYStem.Option.WATCHDOG OFFSYStem.Up
My expectation is after SYStem.Up I should be able to flash and debug the software but after SYStem.Up if I'm trying attach i'm in running(Reset) or debug port fail