AnsweredAssumed Answered

RT1050 MCUXpresso GDB Error

Question asked by Ryan Shuttleworth on Nov 17, 2017
Latest reply on Apr 20, 2018 by Pradnya Mane

Hello, I am trying to debug a simple hello world application on the MIMXRT1050-EVK using the MCUXpresso IDE.  Please see my previous post.

 

As of yesterday, Nov 16th, 2017 it appears that the RT1050 SDK now supports MCUXpresso IDE.  I am able to import and compile the simple hello world application, however, when I attempt to download and debug I get the GDB error shown below. 

 

Notes:

  • I am having no issue compiling, downloading and debugging from IAR on the same board.
  • MCUXpresso is running on Ubuntu 14.04

 

Initial error message:

 

Error in final launch sequence
Failed to execute MI command:
-target-select extended-remote | crt_emu_cm_redlink -msg-port=39099 --no-packed --cachelib libm7_cache.so -g -mi -2 -pMIMXRT1052xxxxx -vendor=NXP -reset= -ProbeHandle=1 -CoreIndex=0 -cache=disable -x /home/colby/Documents/MCUXpresso_10.0.2_411/workspace/evkmimxrt1050_demo_apps_hello_world_hello_world/Debug --flash-dir /home/colby/mcuxpresso/.mcuxpressoide_packages_support/MIMXRT1052xxxxx_support/Flash --telnet 3331
Error message from debugger back end:
Remote communication error.  Target disconnected.: Connection reset by peer.
Remote communication error.  Target disconnected.: Connection reset by peer.

eclipse.buildId=unknown
java.version=1.8.0_111
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_CA
Command-line arguments:  -os linux -ws gtk -arch x86_64

org.eclipse.cdt.dsf.gdb
Error
Fri Nov 17 07:02:05 PST 2017
Failed to execute MI command:
-target-select extended-remote | crt_emu_cm_redlink -msg-port=39099 --no-packed --cachelib libm7_cache.so -g -mi -2 -pMIMXRT1052xxxxx -vendor=NXP -reset= -ProbeHandle=1 -CoreIndex=0 -cache=disable -x /home/colby/Documents/MCUXpresso_10.0.2_411/workspace/evkmimxrt1050_demo_apps_hello_world_hello_world/Debug --flash-dir /home/colby/mcuxpresso/.mcuxpressoide_packages_support/MIMXRT1052xxxxx_support/Flash --telnet 3331
Error message from debugger back end:
Remote communication error.  Target disconnected.: Connection reset by peer.

java.lang.Exception: Remote communication error.  Target disconnected.: Connection reset by peer.
     at org.eclipse.cdt.dsf.mi.service.command.AbstractMIControl$RxThread.processMIOutput(AbstractMIControl.java:940)
     at org.eclipse.cdt.dsf.mi.service.command.AbstractMIControl$RxThread.run(AbstractMIControl.java:769)

 

GDB console dump (error at end):

922,111 2-list-thread-groups
922,111 2^done,groups=[{id="i1",type="process"}]
922,113 (gdb)
923,410 3-gdb-version
923,412 ~"GNU gdb (GNU Tools for ARM Embedded Processors) 7.12.0.20161204-git\n"
923,413 ~"Copyright (C) 2016 Free Software Foundation, Inc.\n"
923,413 ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is fre\
e software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitt\
ed by law.  Type \"show copying\"\nand \"show warranty\" for details.\n"
923,413 ~"This GDB was configured as \"--host=x86_64-linux-gnu --target=arm-none-eabi\".\nType \"sho\
w configuration\" for configuration details."
923,413 ~"\nFor bug reporting instructions, please see:\n"
923,413 ~"<http://www.gnu.org/software/gdb/bugs/>.\n"
923,413 ~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/soft\
ware/gdb/documentation/>.\n"
923,413 ~"For help, type \"help\".\n"
923,413 ~"Type \"apropos word\" to search for commands related to \"word\".\n"
923,413 3^done
923,413 (gdb)
923,414 4-environment-cd /home/colby/Documents/MCUXpresso_10.0.2_411/workspace/evkmimxrt1050_demo_ap\
ps_hello_world_hello_world
923,415 4^done
923,415 (gdb)
923,416 5-gdb-set breakpoint pending on
923,417 5^done
923,417 (gdb)
923,418 6-enable-pretty-printing
923,419 6^done
923,419 (gdb)
923,419 7-gdb-set python print-stack none
923,419 7^done
923,419 (gdb)
923,420 8-gdb-set print object on
923,420 8^done
923,420 (gdb)
923,420 9-gdb-set print sevenbit-strings on
923,421 9^done
923,421 (gdb)
923,421 10-gdb-set charset ISO-8859-1
923,422 10^done
923,422 (gdb)
923,422 11-gdb-set auto-solib-add on
923,422 11^done
923,422 (gdb)
923,425 12-file-exec-and-symbols --thread-group i1 /home/colby/Documents/MCUXpresso_10.0.2_411/works\
pace/evkmimxrt1050_demo_apps_hello_world_hello_world/Debug/evkmimxrt1050_demo_apps_hello_world_hello\
_world.axf
923,429 12^done
923,429 (gdb)
923,432 13-interpreter-exec console "set non-stop on"
923,432 =cmd-param-changed,param="non-stop",value="on"
923,432 13^done
923,432 (gdb)
923,434 14-interpreter-exec console "set pagination off"
923,434 =cmd-param-changed,param="pagination",value="off"
923,435 14^done
923,435 (gdb)
923,441 15-interpreter-exec console "set mi-async"
923,442 =cmd-param-changed,param="mi-async",value="on"
923,443 15^done
923,443 (gdb)
923,446 16-interpreter-exec console "set remotetimeout 60000"
923,446 =cmd-param-changed,param="remotetimeout",value="60000"
923,447 16^done
923,447 (gdb)
923,817 17-target-select extended-remote | crt_emu_cm_redlink -msg-port=39099 --no-packed --cachelib\
libm7_cache.so -g -mi -2 -pMIMXRT1052xxxxx -vendor=NXP -reset= -ProbeHandle=1 -CoreIndex=0 -cache=d\
isable -x /home/colby/Documents/MCUXpresso_10.0.2_411/workspace/evkmimxrt1050_demo_apps_hello_world_\
hello_world/Debug --flash-dir /home/colby/mcuxpresso/.mcuxpressoide_packages_support/MIMXRT1052xxxxx\
_support/Flash --telnet 3331
923,827 &"Ea: Unrecognized option: --no-packed\n"
923,827 17^error,msg="Remote communication error.  Target disconnected.: Connection reset by peer."
923,828 (gdb)
923,834 18-target-disconnect
923,834 19-gdb-exit
923,835 18^error,msg="You can't do that when your target is `exec'"
923,836 (gdb)
923,836 19^exit

 

Here is the output from the RedLink server console:

 

[Started server]
[Connected on port 3025]
redlink>ProbeList
Index = 1
Manufacturer = ARM
Description = DAPLink CMSIS-DAP
Serial Number = 0225000041114e450025300ac207002a92d1000097969900
VID:PID = 0D28:0204
Path = /dev/hidraw1
redlink>ProbeStatus
Index = 1
Manufacturer = ARM
Description = DAPLink CMSIS-DAP
Serial Number = 0225000041114e450025300ac207002a92d1000097969900
VID:PID = 0D28:0204
Path = /dev/hidraw1
IsOpen = FALSE
WireInitialized = FALSE
WireProtocol = JTAG
CoresConfigured = FALSE
PacketSize = 64
Reference Count = 0
HasSWV = FALSE
HasETM = FALSE
HasJTAG = TRUE
HasSWD = TRUE
Probe Type = CMSIS-DAP
Probe Reference Count = 0
redlink>ProbeIsOpen 1
FALSE
redlink>ProbeOpenByIndex 1
Probe Handle 1 Open
redlink>WireIspReset 1
redlink>WireIsConnected 1
FALSE
redlink>WireSwdConnect 1
DpID = 0BD11477
redlink>CoresConfigured 1
FALSE
redlink>CoreConfig 1
Number of CORES/TAPs = 1, Fully recognized: True
redlink>ProbeStatus
Index = 1
Manufacturer = ARM
Description = DAPLink CMSIS-DAP
Serial Number = 0225000041114e450025300ac207002a92d1000097969900
VID:PID = 0D28:0204
Path = /dev/hidraw1
IsOpen = TRUE
WireInitialized = TRUE
WireProtocol = SWD
CoresConfigured = TRUE
PacketSize = 64
Reference Count = 0
HasSWV = FALSE
HasETM = FALSE
HasJTAG = TRUE
HasSWD = TRUE
Probe Type = CMSIS-DAP
Probe Reference Count = 0
redlink>quit
[Closed]

 

Any insight into how to correct the issue would be appreciated, thanks.

Outcomes