Hello, I'm using Embedded Artists' "iMX RT1176 Developer’s Kit":
https://www.embeddedartists.com/products/imx-rt1176-developers-kit/
which mounts their "iMX RT1176 uCOM board".
The programmer/debugger is their "MCU-Link Debug Probe":
https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-/mcu-link-deb...
Here are the board's schematics (see the "rev PB3" file in the .zip):
https://www.embeddedartists.com/products/ucom-carrier-board/
The schematics show a standard JTAG/SWD connection.
I'm only using SWD in my MCUXpresso debug configuration.
If I run my test program, I get the following output in the "Debugger Console"
***
Program stopped.
POC_PowerDownNow () at ../source/tests/poc_powerdown.c:239
239 __BKPT(0);
Temporary breakpoint 1, main () at ../source/main_cm7.cpp:192
192 EnableFaults();
Note: automatically using hardware breakpoints for read-only addresses.
Breakpoint 2, POC_Powerdown () at ../source/tests/poc_powerdown.c:490
490 NVIC_SystemReset();
***
I placed a breakpoint on the NVIC_SystemReset() call, and then single stepped through it.
When I single-step over the STR instruction that actually writes SCB->AIRCR, thus triggering the reset, the debugger doesn't stop after the instruction. It shows the MCU as "running", but if I try to pause it with the pause button, nothing happens, except for an error popup saying "Suspend operation timeout".
Then I clicked on "terminate all" (the stop button), and got another error:
***
19: Could not stop execution from running
19: Could not stop execution from running
Wire ACK Fault in DAP access
Debugging context: X5plus_cm4 LinkServer Debug
***
Note that I'm using a dual core project, and the error mentions the CM4 project.
If I just select the CM7 and the click "terminate" (single stop button), then nothing happens, not even an error popup is shown.
Then I manually delete the two debug sessions (in the "Debug" view, I select them and press DEL).
At this point, if I try reconnecting to CM7 using a different debug configuration (with the "Attach only" option selected), then I get 3 error popups:
***
02: Failed on connect
02: Failed on connect
Could not connect to core.
31: No connection to chip's debug port
Debugging context: X5plus_cm7 LinkServer Debug Attach
***
Error in final launch sequence:
Failed to execute MI command:
-target-select extended-remote localhost:10989
Error message from debugger back end:
Remote communication error. Target disconnected.: (undocumented errno 10061).
Failed to execute MI command:
-target-select extended-remote localhost:10989
Error message from debugger back end:
Remote communication error. Target disconnected.: (undocumented errno 10061).
***
30^error,msg="Remote communication error. Target disconnected.: (undocumented error 10061)
***
Please let me know if you need more logs, and where to find them exactly.