PROCESSOR-SDK-J721S2: Secure Debug Unlock unsuccessful on HS-SE device

Part Number: PROCESSOR-SDK-J721S2

Tool/software:

Ran the below command on HS-SE device to unlock JTAG:

dbgauth -c "C:\Users\<user>\AppData\Local\Texas Instruments\CCS\ccs1281\0\0\BrdDat\ccBoard0.dat" -x xds560 -s cs_dap_0 -o unlock -m 3  -f uidcert.der

uidcert.der is a signed certificate generated for unlocking JTAG, dbgauth is present in (C:\ti\ccs1281\ccs\ccs_base\common\uscif)

Facing the below error while running the command

Using board config file: C:\Users\panchal.prakrit\AppData\Local\Texas Instruments\CCS\ccs1281\0\0\BrdDat\ccBoard0.dat

Successfully opened certificate file uidcert.der.
Read 1652 bytes from certificate file uidcert.der.
RUNTIME ERROR(XDS): GTI_INIT exited with error
The unlock routine failed; the target device is still locked.
Check the unlock key and board configuration.