Unable to change Mode on photon

I think one of the connectors that I was using before was faulty. I used a new set of connectors and now I get this error

warning: unexpected idcode: fe7e033f
SWD Protocol error

PS: Using 10k or 12k resistors does not seem to make a difference