I have this same issue on my imxrt1050. My suspicion is that i had flashed a code which configured some jtag pins to be used as gpio.
After flashing the application i could debug. But upon restet / reflash i got thesame error. I think a workaround would be to use either a hyperflash / QSPI to flash a different code, that would have to erase the faulty code and reconfigure the JTAG ports as default. I expected the Firmware (Bootloader) or the HyperFlash / QSPI to do that. Unfortunately after updating / reinstalling them using the information here
OpenSDA Serial and Debug Adapter | NXP
i still could not flash or debug.
This is the error i get from MCUExpresso
Unable to connect wire for probe index 1.
Error: Wire Ack Fault - target connected?
Unable to connect wire for probe index 1.
Error: Wire Ack Fault - target connected?
Error: Wire Ack Fault - target connected?
at com.nxp.mcuxpresso.core.debug.support.linkserver.redlink.client.RedlinkServerClient.checkServerReply(RedlinkServerClient.java:214)
at com.nxp.mcuxpresso.core.debug.support.linkserver.redlink.client.RedlinkServerClient.wireConnect(RedlinkServerClient.java:1155)
at com.nxp.mcuxpresso.core.debug.support.linkserver.emulators.jtag.AbstractJtagDiscovery.ideConnect(AbstractJtagDiscovery.java:207)
at com.nxp.mcuxpresso.core.debug.support.linkserver.emulators.jtag.AbstractJtagDiscovery.connect(AbstractJtagDiscovery.java:187)
at com.nxp.mcuxpresso.core.debug.support.linkserver.emulators.jtag.AbstractJtagDiscovery.discover(AbstractJtagDiscovery.java:146)
at com.nxp.mcuxpresso.core.debug.support.linkserver.emulators.TargetDiscovery.jtagDiscovery(TargetDiscovery.java:457)
at com.nxp.mcuxpresso.core.debug.support.linkserver.launch.LaunchScriptUtils.getEmulatorInfo(LaunchScriptUtils.java:248)
at com.nxp.mcuxpresso.core.debug.support.linkserver.launch.LaunchScriptUtils.init(LaunchScriptUtils.java:488)
at com.nxp.mcuxpresso.core.debug.support.linkserver.launch.LaunchScriptUtils.<init>(LaunchScriptUtils.java:156)
at com.nxp.mcuxpresso.core.debug.support.linkserver.launch.LaunchScriptUtils.<init>(LaunchScriptUtils.java:143)
at com.nxp.mcuxpresso.core.debug.support.linkserver.services.TargetDiscoveryService.getTargetDiscovery(TargetDiscoveryService.java:138)
at com.nxp.mcuxpresso.core.debug.support.linkserver.override.LSFinalLaunchSequence$TargetDiscoveryJob.run(LSFinalLaunchSequence.java:110)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
I still havent found any solution after googling. I only found similar questions. I think Nxp really have to take a look at this.
BR
Derick