I had this same problem and would like to share what caused it. I ended up having a small hair short (piece of wire) between TDI and the pin next to it. When the processor set that pin to an output, it made jtag not work anymore. removing the short f...