Dear support,
I am using pyOCD v0.33.1 and Python3.10 on Ubuntu 16.04 to debug RT110-EVK board via the default DAP-Link interface. Initially things are fine and I can use "pyocd load xxx.elf" to download sample apps to the device and then use "minicom -D /dev/ttyACM0" to see the console outputs.
However, after some use, I encountered issues.
I still can do "pyocd list" and "pyocd reset":
$ pyocd list
0 MIMXRT1170-EVK [mimxrt1170_cm7] 02440000092ced5300000000000000000000000097969905
$ pyocd reset -v0000591 I Target type is mimxrt1170_cm7 [board]
0000627 I Performing 'hw' reset... [reset_cmd]
0000836 I Done. [reset_cmd]
but can't do other operations like "pyocd load" or "pyocd gdb", they both showed below errors:
$ pyocd gdb
0000600 I Target type is mimxrt1170_cm7 [board]
0000668 I DP IDR = 0x6ba02477 (v2 rev6) [dap]
0000704 I AHB-AP#0 IDR = 0x84770001 (AHB-AP var0 rev8) [ap]
0000740 E probe exception during disconnect: [session]...
pyocd.core.exceptions.TransferFaultError: Memory transfer fault
...
pyocd.core.exceptions.TransferTimeoutError
I then tried connecting the device with MCUXpresso IDE, but still got the following error:
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).
So it seems that the device's DAP-Link port is in a strange status. Does anyone know what happened and how to recover from this situation?
Regards,
yanfeng
Solved! Go to Solution.
Hi @yfliu , well, this looks like you have problems with your Dap-Link, so you need to try deferments this to see where the problem is:
1.- to see what happen or in which moment the DAP-Link is disconnect, open a terminal, and type
$ dmesg >> error1.txt
and when you detect the disconnection, type
$dmesg >> error2.txt
$Diff error1.txt error2.txt
So, check what happened, is there some indication of why there is disconnect?
2.- if you have another board, you can try to connect dap-link with the other board and see if this unplugged too
3.- try to debug under MCUXpresso IDE directly, without DAP-link, and see if this disconnects as same
Have a good day
Hi @yfliu , well, this looks like you have problems with your Dap-Link, so you need to try deferments this to see where the problem is:
1.- to see what happen or in which moment the DAP-Link is disconnect, open a terminal, and type
$ dmesg >> error1.txt
and when you detect the disconnection, type
$dmesg >> error2.txt
$Diff error1.txt error2.txt
So, check what happened, is there some indication of why there is disconnect?
2.- if you have another board, you can try to connect dap-link with the other board and see if this unplugged too
3.- try to debug under MCUXpresso IDE directly, without DAP-link, and see if this disconnects as same
Have a good day
Dear @CarlosGarabito,
Thanks for the follow-ups!
After switching to openocd 0.11, I didn't encounter such problems with default on-board debug firmware.
So let's close this ticket for now.
Regards,
yf