On Wed, Nov 02, 2011 at 11:02:34PM +0100, Linus Rydberg wrote:
> I'm trying to get started debuging my chronos devkit with msp430-gdb and 
> mspdebug (version 0.17)
> under Ubuntu 11.10
> 
> I'm getting a Segmentation fault when i connect to the remote target. Can 
> anyone see a solution for this?
> Please help me getting started.
> 
> During installation I have run in to this bug:
> http://osdir.com/ml/ubuntu-bugs/2011-09/msg58373.html
> 
> To install gdb-msp430 I had to remove the gdb packet. I have also tried to 
> force overwrite but I'm still getting the same segmentation fault.
> 
> This is the packet:
> gdb-msp430_7.2~mspgcc-7.2-20110612-1ubuntu1_amd64.deb
> 
> Should I re-install from sources maybe? it seams a little complicated to me 
> so I'm hesitating...
> 
> Here is the command line trace from when I try to debug:
> 
> linus@linus-EliteBook:~/devel/proj/chronos/$ msp430-gdb --nxGNU gdb (Linaro 
> GDB) 7.3
> Copyright (C) 2011 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 "--host=x86_64-linux-gnu --target=msp430".
> For bug reporting instructions, please see:
> <http://bugs.launchpad.net/gdb-linaro/>.
> (gdb) target remote localhost:2000
> Remote debugging using localhost:2000
> Segmenteringsfel
> linus@linus-EliteBook:~/devel/proj/chronos/$
> 
> 
> >From another terminal:
> 
> linus@linus-EliteBook:~$ sudo mspdebug rf2500 gdb
> [sudo] password for linus: 
> MSPDebug version 0.17 - debugging tool for MSP430 MCUs
> Copyright (C) 2009-2011 Daniel Beer <dlb...@gmail.com>
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> Trying to open interface 1 on 008
> rf2500: warning: can't detach kernel driver: No data available
> Initializing FET...
> FET protocol version is 30001000
> Configured for Spy-Bi-Wire
> Set Vcc: 3000 mV
> Device ID: 0x6137
> Device: CC430F6137
> Code memory starts at 0x8000
> Number of breakpoints: 3
> fet: FET returned NAK
> fet: warning: message 0x30 failed
> Bound to port 2000. Now waiting for connection...
> Client connected from 127.0.0.1:50752
> Clearing all breakpoints...
> Connection closed
> linus@linus-EliteBook:~$

Hi Linus,

If you're using the release version of MSPDebug 0.17, then it has a bug
which might be partly to blame -- the GDB protocol implementation is
broken in this release.

Have you tried the latest git version?

- Daniel

-- 
D.L. Beer Engineering
www.dlbeer.co.nz

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to