Hi,
I use Eclipse the same way you do it and it works fine. I wrote a
installation readme for everyone. Here it is:
1- Install Eclipse - just copy directory into hard disk
2- Install cygwin(click cygwin setup.exe in eclipse folder) from the
Internet with gcc(dlevel), gdb(dlevel), openssh(net), openssl(net),
cvs(dlevel), tcsh(shell) and xinetd(net).
The red hat and calgary servers worked for me. Red hat is faster.
3- Modify environmental variables(control panel, system, advanced):
create:
CYGWIN ntsec tty
JAVA_HOME (Home java directory)
add in PATH:
C:\cygwin\bin
%JAVA_HOME%\bin
C:\cygwin\usr\X11R6\bin
4- Run net.sf.mspgcc.zip in Eclipse folder and extract files in
Eclipse\plugins
5- Run Cygwin (you should only have to do this once)
6- Reboot the machine
7- Click eclipse.exe and create new project(file, new, project)
8- Select Standard Make C project, next, select a project name, finish
9- Click on the navigator and right-click on the project name(you should see
.cdtproject and .project underneath)
10- Select new file if you want to create new c files, or import and then
filesystem if you want to copy
c source code from an another location, then choose directory where the
files are located, select the files and then finish.
If the files are spread into different folders, create folders in the
project and then
import the files in each folders.
11- If the makefile is made correctly with the right compiler after CC you
should be able to
build the executable. Click on project and unclick build automatically
(It's personal. I prefer that).
Then click on Ctrl-B to build it. Ifyou did the aforementioned steps, it
should work fine. Verify
that the executable (.elf file) is present in the folder. Test it on the
command line.
12- Now click on Window, open perspective, debug
13- Click Run, Debug...
14- In main, give a new name(it must be the same name as the .elf file) to
the configuration, select the right project
and select the right .elf file in C/C++ Application
15- In Debugger, browse into your filesystem and find the debugger
executable. Select it in GDB debugger. Then, select the .ini file
in GDB command file (in our case gdb_load.ini). it should be
C:\mspgcc\bin\msp430-gdb.exe if you installed mspgcc in C:\.
Select the TCP Connection, choose localhost for the Host name and type 3333
for the port number.
If the steps 3, 4 5 and 6 above worked, you should see
%CygwinGDBDebugger.name in the form Debugger. If not,
redo these steps.
16- In source, select the right project name
17- Run the msp430-gdbproxy program to open the connection and leave the
window open
18- Click Apply and Debug.
19- You should see a breakpoint at the beginning of the program click
resume. You should see the program running!
for more details on how to debug please read the documentation but it's not
harder than visual studio.
Enjoy!
Yvan
From: Hansjörg Bieler <hbie...@hbieler.de>
Reply-To: mspgcc-users@lists.sourceforge.net
To: mspgcc-users@lists.sourceforge.net
Subject: [Mspgcc-users] Re: Eclipse + CDT + mspgcc
Date: Sat, 18 Sep 2004 18:42:13 +0200
Hi everybody,
I am trying debug my msp430 progs from Eclipse with msp430-gdb and
gdbproxy via TCP/IP.
I set up the system as discribed on
http://homepage.hispeed.ch/py430/mspgcc/net.sf.mspgcc.zip
( I could not get the Zylin plugin (http://www.zylin.com/embeddedcdt.html)
to work).
BUT: although the system starts downloading to msp430, it fails after some
transfer, gdbproxy message is "could not find device (or device not
supported)"
I read in some email in the mspgcc-users-archive about CDT not recognizing
the MSP430.
Could this be the reason or what else can be wrong?
For some reason I have to use windows-systems, so I can not use DDD as I
do on linux.
Is there any alternative for debugging on windows?
Any help apriciated.
Best regards
Hansjörg Bieler
hbie...@hbieler.de
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users
_________________________________________________________________
Designer Mail isn't just fun to send, it's fun to receive. Use special
stationery, fonts and colors.
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines
Start enjoying all the benefits of MSN® Premium right now and get the
first two months FREE*.