In iMX RT 1170 EVKB i got this problem during debugging.
Probe Firmware: MCU-LINK on-board (r0E2) CMSIS-DAP V2.250 (NXP Semiconductors)
Serial Number: NVUYDXEI5YUN1
VID:PID: 1FC9:0143
USB Path: \\?\hid#vid_1fc9&pid_0143&mi_00#7&38ddcd02&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
connection failed - Em(04). Cannot provide power to DAP bus... Retrying
Failed on connect: Em(04). Cannot provide power to DAP bus.
Connected&Reset. Was: NotConnected. DpID: 6BA02477. CpuID: 00000000. Info: <None>
Last stub error 0: OK
Last sticky error: 0x0 AIndex: 0
No debug bus (MemAp) selected
DAP Speed test unexecuted or failed
Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
How can I solve it??
It is possible that the system is not powered correctly, if only using the debugger USB then you need to make sure that the jumper is on the correct position so it powers the entire system.
If everything is properly powered then refer to this post: RT board recovery for debugger connect issues - NXP Community
Best regards,
Omar