I see that similar issues were reported before but could not find any solution or troubleshooting steps.
I have MIMXRT1170-EVK board MCUXpresso IDE and was able to run different sample SDK projects using CMSIS DAP-Link in debug mode. Window 10 as a host system.
Now I created a new project for the board, builds OK, but when I run it in debug, DAP-Link reports the disconnect undocumented error 10061.
More specifically MCUXpresso displays two popups.
The first one:
Problem Occurred:
'Launching <myProjectName> LinkServer Debug' has enecountered a problem.
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) .
The second one:
31^error, msg="Remote communication error. Target disconnected.:
(Undocumented errno 10061) ."
-target-select extended-remote localhost:10989
Reason:
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) .
Again the SDK samples can run just fine on the same port.
I compared the LinkServer Debugger settings of the sample project that works OK and those of my project, they are very similar except
Additional options in my project (autogenerated by MCUXpresso tools) include:
--cachelib libahb_lmem.so
I also have Override Core Index option set to 1 for the second core.
Any ideas on troubleshooting the issue? Any insights from the people who can look up the errno 10061 in the source code?
已解决! 转到解答。
Update: I found that the Driver was not set in my project setting for the Flash - BOARD_FLASH in MCU Settings - Memory Details section.
The Driver column was empty. I set it to the MIMXRT1170_SFDP_QSPI.cfx and now I can reach the entry point of my code in Debug.
I hope this will help somebody.
Update: I found that the Driver was not set in my project setting for the Flash - BOARD_FLASH in MCU Settings - Memory Details section.
The Driver column was empty. I set it to the MIMXRT1170_SFDP_QSPI.cfx and now I can reach the entry point of my code in Debug.
I hope this will help somebody.