Problems with MCUXpresso debugger for LPC55S69

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problems with MCUXpresso debugger for LPC55S69

2,204 Views
r_strassburg
Contributor I

I'm having problems with the MCUXpresso IDE 10.3.1 with the SDK for the LPC55S69 version 2.5.1 on Kubuntu 18.04.

What happens is that whenever I terminate and relaunch the debugger, the IDE hangs and needs to be killed and restarted. Also, unless I kill this process before restarting it, the debugger can't connect:

rls      12701     1  1 18:15 ?        00:00:21 /usr/local/mcuxpressoide-10.3.1_2233/ide/plugins/com.nxp.mcuxpresso.tools.bin.linux_10.3.1.201902141129/binaries/redlinkserv -telnetport=3025 3050 3075

Thanks for your help.

Roger Strassburg

0 Kudos
Reply
10 Replies

1,915 Views
lpcxpresso_supp
NXP Employee
NXP Employee

I would suggest that you:

  • Click on the "Clean Up debug" button on the main IDE toolbar
  • Disconnect the USB cable from your board
  • Put a jumper on the ISP header (J10)
  • Now reconnect the USB cable to Debug Link connector (P6)
  • Now select a project in the Project Explorer view, and then click on the GUI Flash Tool on the main IDE toolbar - and use this to mass erase the flash. [More details on using the GUI Flash Tools can be found inside the supplied IDE v10.3 User Guide]

Does this succeed?

If not, please post the text from the log that is generated by the IDE

If it does succeed, then

  • Disconnect the USB cable from your board
  • Remove the jumper on the ISP header (J10)
  • Now reconnect the USB cable to Debug Link connector (P6)

Now try starting a debug session for your project again using the Quickstart Panel's Debug button. Does this now work? If not, please post the text from the Debug Message Console in the IDE (as detailed in section 19.7, The Console View, of the MCUXpresso IDE v10.3 User Guide.

Regards,

MCUXpresso IDE Support

0 Kudos
Reply

1,915 Views
r_strassburg
Contributor I

I tried your suggestion with the same result as before: I can start the debugger once, but the IDE hangs when I terminate it and start it again. This is almost certainly a problem related to something in my environment, as I have a colleague running 10.3.0 / 2.5.0 on Suse without seeing the problem.

0 Kudos
Reply

1,915 Views
r_strassburg
Contributor I

It appears that this only happens if I don't select the right-menu item "remove all terminated" in the debug window after terminating the debugger.

0 Kudos
Reply

1,915 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Roger Strassburg,

How about clean up the debug before re-debug using "clean up debug" button:

pastedImage_18.png


Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply

1,915 Views
r_strassburg
Contributor I

I've been doing that each time, yes. It still hangs when I try to relaunch.

0 Kudos
Reply

1,915 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Roger,

What about your project? About secure project?  How about simple project?

0 Kudos
Reply

1,915 Views
r_strassburg
Contributor I

Here is a log, as well.

0 Kudos
Reply

1,915 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Roger,

Sorry your attachment can't download:

pastedImage_1.png

How about test a simple demo project under SDK ?

0 Kudos
Reply

1,915 Views
r_strassburg
Contributor I

Hello Alice,

I tried it with the lpcxpresso55s69_i2s_dma_transfer example project,

with the same result.

Here's some more data that might help.

I see three mcuxpresso processes running:

rls@rls:~/vorwerk/git/lpc/pbc-lpc$ ps -ef |grep mcux

rls      25133  1823  0 14:46 ?        00:00:00

/usr/local/mcuxpressoide-10.3.1_2233/ide/mcuxpressoide

rls      25150 25133 95 14:46 ?        00:01:46

/usr/local/mcuxpressoide-10.3.1_2233/ide/jre/bin/java

-Dosgi.requiredJavaVersion=1.8 -Xms128m -Xmx1024m

-Djava.net.useSystemProxies=true -jar

/usr/local/mcuxpressoide-10.3.1_2233/ide//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar

-os linux -ws gtk -arch x86_64 -showsplash -launcher

/usr/local/mcuxpressoide-10.3.1_2233/ide/mcuxpressoide -name

Mcuxpressoide --launcher.library

/usr/local/mcuxpressoide-10.3.1_2233/ide//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.551.v20171108-1834/eclipse_1630.so

-startup

/usr/local/mcuxpressoide-10.3.1_2233/ide//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar

--launcher.overrideVmargs -exitdata 27e58000 -vm

/usr/local/mcuxpressoide-10.3.1_2233/ide/jre/bin/java -vmargs

-Dosgi.requiredJavaVersion=1.8 -Xms128m -Xmx1024m

-Djava.net.useSystemProxies=true -jar

/usr/local/mcuxpressoide-10.3.1_2233/ide//plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar

rls      25262 25150  4 14:47 ?        00:00:03

/usr/local/mcuxpressoide-10.3.1_2233/ide/plugins/com.nxp.mcuxpresso.tools.bin.linux_10.3.1.201902141129/binaries/redlinkserv

-telnetport=3025 3050 3075

Here's what I get  from gdb when I attach it to each process:

root@rls:/home/rls/vorwerk/git/lpc/pbc-lpc# gdb -p 25133

GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git

Copyright (C) 2018 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later

<http://gnu.org/licenses/gpl.html>

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.  Type "show copying"

and "show warranty" for details.

This GDB was configured as "x86_64-linux-gnu".

Type "show configuration" for configuration details.

For bug reporting instructions, please see:

<http://www.gnu.org/software/gdb/bugs/>.

Find the GDB manual and other documentation resources online at:

<http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".

Type "apropos word" to search for commands related to "word".

Attaching to process 25133

Reading symbols from

/usr/local/mcuxpressoide-10.3.1_2233/ide/mcuxpressoide...done.

Reading symbols from /lib/x86_64-linux-gnu/libpthread.so.0...Reading

symbols from

/usr/lib/debug/.build-id/28/c6aade70b2d40d1f0f3d0a1a0cad1ab816448f.debug...done.

done.

Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Reading symbols from /lib/x86_64-linux-gnu/libdl.so.2...Reading symbols

from /usr/lib/debug//lib/x86_64-linux-gnu/libdl-2.27.so...done.

done.

Reading symbols from /lib/x86_64-linux-gnu/libc.so.6...Reading symbols

from /usr/lib/debug//lib/x86_64-linux-gnu/libc-2.27.so...done.

done.

Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from

/usr/lib/debug//lib/x86_64-linux-gnu/ld-2.27.so...done.

done.

Reading symbols from

/usr/local/mcuxpressoide-10.3.1_2233/ide//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.551.v20171108-1834/eclipse_1630.so...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0...(no

debugging symbols found)...done.

Reading symbols from

/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0...(no debugging symbols

found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0...(no

debugging symbols found)...done.

Reading symbols from

/usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0...(no debugging symbols

found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0...(no

debugging symbols found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0...(no

debugging symbols found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0...(no

debugging symbols found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libfontconfig.so.1...(no

debugging symbols found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libXrender.so.1...(no

debugging symbols found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libXinerama.so.1...(no

debugging symbols found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libXi.so.6...(no

debugging symbols found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libXrandr.so.2...(no

debugging symbols found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libXcursor.so.1...(no

debugging symbols found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libXcomposite.so.1...(no

debugging symbols found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libXdamage.so.1...(no

debugging symbols found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libXfixes.so.3...(no

debugging symbols found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libcairo.so.2...(no

debugging symbols found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libX11.so.6...(no

debugging symbols found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libXext.so.6...(no

debugging symbols found)...done.

Reading symbols from /lib/x86_64-linux-gnu/libm.so.6...Reading symbols

from /usr/lib/debug//lib/x86_64-linux-gnu/libm-2.27.so...done.

done.

Reading symbols from

/usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0...(no debugging symbols

found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libfreetype.so.6...(no

debugging symbols found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libthai.so.0...(no

debugging symbols found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0...(no

debugging symbols found)...done.

Reading symbols from /lib/x86_64-linux-gnu/libz.so.1...(no debugging

symbols found)...done.

Reading symbols from /lib/x86_64-linux-gnu/libselinux.so.1...(no

debugging symbols found)...done.

Reading symbols from /lib/x86_64-linux-gnu/libresolv.so.2...Reading

symbols from /usr/lib/debug//lib/x86_64-linux-gnu/libresolv-2.27.so...done.

done.

Reading symbols from /lib/x86_64-linux-gnu/libmount.so.1...(no debugging

symbols found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libffi.so.6...(no

debugging symbols found)...done.

Reading symbols from /lib/x86_64-linux-gnu/libpcre.so.3...(no debugging

symbols found)...done.

Reading symbols from /lib/x86_64-linux-gnu/libexpat.so.1...(no debugging

symbols found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libpixman-1.so.0...(no

debugging symbols found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libpng16.so.16...(no

debugging symbols found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libxcb-shm.so.0...(no

debugging symbols found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libxcb.so.1...(no

debugging symbols found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libxcb-render.so.0...(no

debugging symbols found)...done.

Reading symbols from /lib/x86_64-linux-gnu/librt.so.1...Reading symbols

from /usr/lib/debug//lib/x86_64-linux-gnu/librt-2.27.so...done.

done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0...(no

debugging symbols found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libdatrie.so.1...(no

debugging symbols found)...done.

Reading symbols from /lib/x86_64-linux-gnu/libblkid.so.1...(no debugging

symbols found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libXau.so.6...(no

debugging symbols found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libXdmcp.so.6...(no

debugging symbols found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libgraphite2.so.3...(no

debugging symbols found)...done.

Reading symbols from /lib/x86_64-linux-gnu/libuuid.so.1...(no debugging

symbols found)...done.

Reading symbols from /lib/x86_64-linux-gnu/libbsd.so.0...(no debugging

symbols found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0...(no

debugging symbols found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libatk-1.0.so.0...(no

debugging symbols found)...done.

Reading symbols from

/usr/lib/x86_64-linux-gnu/gtk-2.0/modules/libgail.so...(no debugging

symbols found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libgailutil.so.18...(no

debugging symbols found)...done.

Reading symbols from

/usr/lib/x86_64-linux-gnu/gtk-2.0/modules/libatk-bridge.so...(no

debugging symbols found)...done.

Reading symbols from

/usr/lib/x86_64-linux-gnu/libatk-bridge-2.0.so.0...(no debugging symbols

found)...done.

Reading symbols from /lib/x86_64-linux-gnu/libdbus-1.so.3...(no

debugging symbols found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/libatspi.so.0...(no

debugging symbols found)...done.

Reading symbols from /lib/x86_64-linux-gnu/libsystemd.so.0...(no

debugging symbols found)...done.

Reading symbols from /lib/x86_64-linux-gnu/liblzma.so.5...(no debugging

symbols found)...done.

Reading symbols from /usr/lib/x86_64-linux-gnu/liblz4.so.1...(no

debugging symbols found)...done.

Reading symbols from /lib/x86_64-linux-gnu/libgcrypt.so.20...(no

debugging symbols found)...done.

Reading symbols from /lib/x86_64-linux-gnu/libgpg-error.so.0...(no

debugging symbols found)...done.

0x00007f169d5de204 in __waitpid (pid=25150, stat_loc=0x7fffd89da0fc,

options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30

30      ../sysdeps/unix/sysv/linux/waitpid.c: No such file or directory.

(gdb) bt

#0  0x00007f169d5de204 in __waitpid (pid=25150, stat_loc=0x7fffd89da0fc,

options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30

#1  0x00007f169c3fe1bc in launchJavaVM (args=0x25cf7f0) at eclipseGtk.c:366

#2  0x00007f169c3f9d0a in _run (argc=1, argv=0x255b3b0,

vmArgs=0x255c510) at ../eclipse.c:664

#3  0x00007f169c3f95cc in run (argc=1, argv=0x255b3b0, vmArgs=0x0) at

../eclipse.c:476

#4  0x000000000040163e in main (argc=5, argv=0x255b3b0) at

../eclipseMain.c:217

(gdb)

root@rls:/home/rls/vorwerk/git/lpc/pbc-lpc# gdb -p 25150

GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git

Copyright (C) 2018 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later

<http://gnu.org/licenses/gpl.html>

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.  Type "show copying"

and "show warranty" for details.

This GDB was configured as "x86_64-linux-gnu".

Type "show configuration" for configuration details.

For bug reporting instructions, please see:

<http://www.gnu.org/software/gdb/bugs/>.

Find the GDB manual and other documentation resources online at:

<http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".

Type "apropos word" to search for commands related to "word".

Attaching to process 25150

Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

0x00007fcc53d39d2d in __GI___pthread_timedjoin_ex

(threadid=140515560695552, thread_return=0x7fff733d7400, abstime=0x0,

    block=.

For help, type "help".

Type "apropos word" to search for commands related to "word".

Attaching to process 25262

Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

0x00007f27d7ccf449 in futex_wait (private=, stack_end=0x7ffcbc767518) at

../csu/libc-start.c:310

#6  0x0000000000403019 in ?? ()

(gdb)

0 Kudos
Reply

1,915 Views
r_strassburg
Contributor I

Project and cproject files attached.

0 Kudos
Reply