I tried what is mentioned in the thread, but I get this message when I try to halt the target:
Interrupt command received. Halting execution.
Device IDCODE is $00000082
Device ID revision is $00000000
Device IDCODE is $00000082
Device ID revision is $00000000
After that, the target restarts.