Thanks Eric,
So, as I understood the most comfortable way to debug msp430 without using
commercial software is to use mspdebug from shell?
Or is there any way to make it work with some IDE?
I tried to tie it to Eclipse under Ubuntu and managed to run it as external
tool and connect to the target. But I couldn't load the program following
the same instructions as for msp430-gdbproxy from Tutorial by Alvaro
Aguilar.
I got next output:
set remoteaddresssize 64
set remotetimeout 999999
target remote localhost:2000
localhost:2000: Connection timed out.
set download-write-size 2000
No symbol "download" in current context.
set remote memory-write-packet-size 2000
set remote memory-write-packet-size fixed
set remote memory-read-packet-size 2000
set remote memory-read-packet-size fixed
And nothing happens after this. I googled the problem and found a post on
some forum with the same problem and no good answer. The post was dated
January 2011 but I don't know if someone has solved this already...
I wonder how are you guys working with msp430? Are you using any IDE or is
it enough for you to have just text editor and mspdebug in terminal?
Regards,
Glib
2011/7/4 Eric Decker <cire...@gmail.com>
>
> msp430-gdbproxy hasn't been supported for a long time.
>
> you can try porting mspdebug to the windows/cygwin environment. I don't
> know what is required, prehaps a port of libusb.
>
> or
>
> you can switch to a linux environment, perhaps dual boot.
>
> sorry that there isn't a better answer.
>
> I started my development work on tinyos and mspgcc years ago using
> windows/cygwin but found the whole environment way too buggy and frustrating
> so bailed years ago back to Linux. When Daniel pulled together his
> mspdebug project and it worked for me it started to fill the last major gap
> in the tools I needed. An with Peter's work on mspgcc that completes the
> picture.
>
> So I would recommend that the least frustrating approach would be to move
> over to a Linux based development environment.
>
> eric
>
>
> On Mon, Jul 4, 2011 at 8:16 AM, Glib Dovgych <g.dovg...@googlemail.com>wrote:
>
>> Hi guys,
>>
>> I've managed to load, run the program and even to do some kind of
>> debugging
>> from Eclipse via msp430-gdbproxy under Wine. But it doesn't work good
>> enough, I loose connection to the target even during single-stepping.
>> So I wonder if anyone has already tried to compile the latest MSPGCC under
>> Windows. I'd like to try to tie MSPGCC to CCS, as debugging should work
>> well
>> there.
>>
>> Can anyone give any advice? Or maybe there's a manual about how to do
>> it...
>> Or maybe how to reach reliable work with Eclipse?..
>>
>> Best regards,
>> Glib
>>
>> 2011/6/30 Glib Dovgych <g.dovg...@googlemail.com>
>>
>> > D'oh!
>> >
>> > Thanks a lot! :)
>> > I have even thought about it but it wasn't in the manual... Don't know
>> why
>> > I didn't try it by myself...
>> >
>> > But now it's linking fine, so thanks again, Baruch!
>> >
>> > Regards,
>> > Glib
>> >
>> >
>> > 2011/6/30 Baruch Siach <bar...@tkos.co.il>
>> >
>> >> Hi Glib,
>> >>
>> >> On Thu, Jun 30, 2011 at 02:52:29PM +0200, Glib Dovgych wrote:
>> >> > After installing msp430-gcc I decided to get some convenient
>> debugging
>> >> tool.
>> >> > So I followed the instructions from here:
>> >> >
>> >>
>> http://www.google.com/url?sa=t&source=web&cd=7&ved=0CEUQFjAG&url=http%3A%2F%2Fwww.43oh.com%2Fwp-content%2Fuploads%2F2010%2F11%2FMSP430_MSPGCC_Eclipse_gdb.pdf&rct=j&q=msp430%20mspgcc%20eclipse&ei=x24MTqnzJ8iJhQft08TEDQ&usg=AFQjCNECsy6TGOpUXmcFoguE5XhynW2SWg&sig2=9QDUc2pNAU7D_X6nD0uUgA&cad=rja
>> >> >
>> >> > Then I took one of Sergio's example projects for msp430g2231 from
>> here:
>> >> > https://github.com/sergiocampama/Launchpad/tree/master/TimerBlink
>> >> >
>> >> > And it was compiled successfully but during the linking I got an
>> error
>> >> with
>> >> > the next console output:
>> >> >
>> >> > make all
>> >> > Building file: ../blink.c
>> >> > Invoking: GCC C Compiler
>> >> > /usr/local/mspgcc/bin/msp430-gcc -mmcu=msp430G2231
>> >> > -I/usr/local/mspgcc/include -I/usr/local/mspgcc/msp430/include
>> >> > -I/usr/include -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP
>> -MF"blink.d"
>> >> > -MT"blink.d" -o"blink.o" "../blink.c"
>> >> > Finished building: ../blink.c
>> >> >
>> >> > Building target: led.elf
>> >> > Invoking: GCC C Linker
>> >> > gcc -L/usr/local/mspgcc/lib -L/usr/local/mspgcc/msp430/lib
>> >> -L/usr/local/lib
>> >>
>> >> This is your wrong. Your are running your host gcc as linker. This
>> should
>> >> be
>> >> msp430-gcc as above.
>> >>
>> >> baruch
>> >>
>> >> > -o"led.elf" ./blink.o
>> >> > /usr/bin/ld: ./blink.o: Relocations in generic ELF (EM: 105)
>> >> > /usr/bin/ld: ./blink.o: Relocations in generic ELF (EM: 105)
>> >> > /usr/bin/ld: ./blink.o: Relocations in generic ELF (EM: 105)
>> >> > /usr/bin/ld: ./blink.o: Relocations in generic ELF (EM: 105)
>> >> > /usr/bin/ld: ./blink.o: Relocations in generic ELF (EM: 105)
>> >> > /usr/bin/ld: ./blink.o: Relocations in generic ELF (EM: 105)
>> >> > /usr/bin/ld: ./blink.o: Relocations in generic ELF (EM: 105)
>> >> > /usr/bin/ld: ./blink.o: Relocations in generic ELF (EM: 105)
>> >> > /usr/bin/ld: ./blink.o: Relocations in generic ELF (EM: 105)
>> >> > /usr/bin/ld: ./blink.o: Relocations in generic ELF (EM: 105)
>> >> > ./blink.o: could not read symbols: File in wrong format
>> >> > collect2: ld returned 1 exit status
>> >> > make: *** [led.elf] Error 1
>> >> >
>> >> > I've checked all the Eclipse settings and they seem to be the same as
>> in
>> >> > manual but with my paths.
>> >> >
>> >> > Could anyone tell me where I'm wrong?
>> >>
>> >> --
>> >> ~. .~ Tk Open
>> >> Systems
>> >>
>> >>
>> =}------------------------------------------------ooO--U--Ooo------------{=
>> >> - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
>> >>
>> >
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> All of the data generated in your IT infrastructure is seriously valuable.
>> Why? It contains a definitive record of application performance, security
>> threats, fraudulent activity, and more. Splunk takes this data and makes
>> sense of it. IT sense. And common sense.
>> http://p.sf.net/sfu/splunk-d2d-c2
>> _______________________________________________
>> Mspgcc-users mailing list
>> Mspgcc-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>>
>>
>
>
> --
> Eric B. Decker
> Senior (over 50 :-) Researcher
>
>
>
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users