Re: Debugging msp430 with mspdebug and ccsv6

Olivier Girard <[email protected]>
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.user
Message-ID <CAMHY+NYBomM_-Kt4mtVuE7A6rszMVey5J5QjGzqQcSo=BuARzQ@mail.gmail.com>
Hi Keane,

I have the exact same problem using the gdb beta together with the
openmsp430-gdbproxy (this is the mspdebug equivalent for the openMSP430
core: http://opencores.org/project,openmsp430).

Apparently, it seems to me that the error is generated when an expedited
response ("T") message is sent by the proxy to GDB to the new GDB beta.
In the openmsp430-gdbproxy, such a response is currently formatted as
following: "$T0500:f8c0;04:0000;".

Basically, together with the "T05" response, the proxy also returns the PC
value (00:f8c0) as well as the R4 value (04:0000)... now, as GDB complains
about the semicolon (i.e. digit 59) in the middle of this command because I
think it expects 32 bit register values instead of 16 bit previously (i.e.
it sees a semicolon while it expects two more bytes).
In fact, if I modify the openmsp430-gdbproxy to return such a response,
everything works fine again: "$T0500:f8c00000;04:00000000;"

Personally I have no idea if this is a bug or if this was implemented on
purpose (maybe a hint to an upcoming architecture)... however, it would be
really interested to know which one it is so that I can update my tool...
or not.

Cheers,
Olivier



> Date: Mon, 23 Dec 2013 10:36:05 -0800
> From: Wylder Keane <[email protected]>
> Subject: [Mspgcc-users] Debugging msp430 with mspdebug and ccsv6
>         (beta) gdb
> To: [email protected]
> Message-ID:
>         <CAP1=f4zqX=gTMkQriz6v5CzkLDex=
> [email protected]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I'm having trouble debugging an msp430fr5969 using the new ccsv6 gcc
> toolchain. I'm trying to debug on the command line using mspdebug-0.22 as a
> proxy for the new msp430-elf-gdb that came with the ccsv6 beta and I keep
> getting the following error while trying to connect to mspdebug:
>
> (gdb) target remote localhost:2000
> Remote debugging using localhost:2000
> Reply contains invalid hex digit 59
>
> Is this because gdb was configured differently than mspdebug? Is there any
> way around this?
>
> I would very much like to debug my msp430's via GDB on the command line
> instead of through the CCS IDE.
>
> Thanks.

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk

_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.