User forums > Embedded development

MSP430 debugging closes immediately after connection

(1/3) > >>

ljstrickler:
I am using Mint14 and I had to go to a compiled svn9132 since installing the 12.11 release was going to uninstall a variety of things I did not want uninstalled (like the latest compiler).

It works fine so far except gdb now closes the debug session as soon as it opens the connection to mspdebug. This worked fine with 10.05, I was trying the new one hoping that the ability to start things before the debugger were easier (actually possible) now. Any ideas?

The shell commands before the debugger still doesn't seem to work, at least i haven't been able to get it to do anything. Is there something special that needs to be done? I am trying to use mspdebug rf2500 "gdb"

oBFusCATed:
Please post the full debug log (you have to enable it in the settings first). Please use code tags, for the paste...

About the shell commands: a better explanation will be needed here.
What and where you entered, what is expected to happen, what happens?

ljstrickler:
Here's the debug log
Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: /home/dad/projects/msp430/blink_1/
Adding source dir: /home/dad/projects/msp430/blink_1/
Adding file: /home/dad/projects/msp430/blink_1/bin/Debug/blink2.elf
Changing directory to: /home/dad/projects/msp430/blink_1/bin/Debug
Set variable: LD_LIBRARY_PATH=.:/usr/msp430/lib:

[debug]Command-line: /usr/bin/gdb -nx -fullname  -quiet  -args /home/dad/projects/msp430/blink_1/bin/Debug/blink2.elf
[debug]Working dir : /home/dad/projects/msp430/blink_1/bin/Debug

Starting debugger: /usr/bin/gdb -nx -fullname  -quiet  -args /home/dad/projects/msp430/blink_1/bin/Debug/blink2.elf
done

[debug]Reading symbols from /home/dad/projects/msp430/blink_1/bin/Debug/blink2.elf...done.
[debug](gdb)
[debug]> set prompt >>>>>>cb_gdb:

Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Connecting to remote target
Setting breakpoints

[debug]>>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb (GDB) 7.5-ubuntu
[debug]Copyright (C) 2012 Free Software Foundation, Inc.
[debug]License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
[debug]This is free software: you are free to change and redistribute it.
[debug]There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
[debug]and "show warranty" for details.
[debug]This GDB was configured as "x86_64-linux-gnu".
[debug]For bug reporting instructions, please see:
[debug]<http://www.gnu.org/software/gdb/bugs/>.
[debug]>>>>>>cb_gdb:
[debug]> set confirm off

Debugger name and version: GNU gdb (GDB) 7.5-ubuntu

[debug]>>>>>>cb_gdb:
[debug]> set width 0
[debug]>>>>>>cb_gdb:
[debug]> set height 0
[debug]>>>>>>cb_gdb:
[debug]> set breakpoint pending on
[debug]>>>>>>cb_gdb:
[debug]> set print asm-demangle on
[debug]>>>>>>cb_gdb:
[debug]> set unwindonsignal on
[debug]>>>>>>cb_gdb:
[debug]> set print elements 0
[debug]>>>>>>cb_gdb:
[debug]> set disassembly-flavor intel
[debug]>>>>>>cb_gdb:
[debug]> catch throw
[debug]Function "__cxa_throw" not defined.
[debug]Catchpoint 1 (throw)
[debug]>>>>>>cb_gdb:
[debug]> source /usr/local/share/codeblocks/scripts/stl-views-1.0.3.gdb
[debug]>>>>>>cb_gdb:
[debug]> directory /home/dad/projects/msp430/blink_1/
[debug]Source directories searched: /home/dad/projects/msp430/blink_1:$cdir:$cwd
[debug]>>>>>>cb_gdb:
[debug]> set remoteaddresssize 16
[debug]>>>>>>cb_gdb:
[debug]> set remotetimeout 999999
[debug]>>>>>>cb_gdb:
[debug]> set download-write-size 512
[debug]No symbol "download" in current context.
[debug]>>>>>>cb_gdb:
[debug]> set remote memory-write-packet-size 512
[debug]>>>>>>cb_gdb:
[debug]> set remote memory-write-packet-size fixed
[debug]>>>>>>cb_gdb:
[debug]> set remote memory-read-packet-size 512
[debug]>>>>>>cb_gdb:
[debug]> set remote memory-read-packet-size fixed
[debug]>>>>>>cb_gdb:
[debug]> target remote tcp:localhost:2000
[debug]Reply contains invalid hex digit 59
[debug]Remote debugging using tcp:localhost:2000
[debug]>>>>>>cb_gdb:

Connected

[debug]> break "/home/dad/projects/msp430/blink_1/main.c:31"
[debug]Breakpoint 2 at 0xc03e: file /home/dad/projects/msp430/blink_1/main.c, line 31.
[debug]>>>>>>cb_gdb:
[debug]> continue
[debug]The program is not being run.
[debug]>>>>>>cb_gdb:

The program is not being run.

[debug]> quit

Debugger finished with status 0


For the shell commands the command I am trying to use is
mspdebug rf2500 "gdb"
This should start the debugger so that when gdb starts it is there to be connected to. Another change I noticed is that I can't specify msp430-gdb as the debugger anymore, there is either a choice of GDB/CDB debugger or invalid debugger. We used to be able to specify our own. It looks like it is using the wrong one.

ljstrickler:
When the gdb debugger works it has the following in the version report
This GDB was configured as "--host=i686-pc-linux-gnu --target=msp430"
so it really seems like the wrong debugger is being used and I can't pick the correct one any more?

oBFusCATed:
Settings -> Debugger -> GDB/CDB Debugger -> Create config -> Your config -> set the path and any other options

Also you need to associate the debugger with the compiler or set the debugger config manually Debug -> Active config -> Your config

And please use code tags, next time!

Navigation

[0] Message Index

[#] Next page

Go to full version