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