I hope this can help.


Installing GPS in Windows XP:

Where to get GPS:

http://libre.act-europe.fr/gps/gps-1.4.0-academic-x86-windows.exe

I would suggest installing it in the default directory (c:\GPS) because it
is not unusual to have problems when one changes the propose directory
directory.

Then, add the binaries directory to the Windows Path (The IDE needs to find
some executables there. For example the utility to build the cross reference
database). Also add the directory where the binaries of the toolchain are
(usually C:\mspgcc\bin)

Start -> Control Panel -> System -> Advanced -> Environment Variables


Building a project:

Execute c:\gps\bin\gps.exe

After a splash screen you will be proposed with three options. Choose 

"Start with default project in directory"

and choose the directory where you have your sources and makefiles. Once you
tell GPS it's a C language project, it will consider all .h and .c files as
belonging to it.

Now go to  "Project -> Edit Project Properties" and in Languages uncheck Ada
and check C.
In "Tools" modify "Debugger" and write "msp430-gdb -x gdb.ini" (without the
quotes). 
Note: Gdb should read a gdb.ini file by default, but I don´t know why
-sometimes- it doesn´t (at least in my machine). In such cases I force it to
do so by means of the -x option. 
Find at the bottom of this mail an .ini example.

Now if you go to "Project -> Project View" you should see a window showing
all your projects .c an .h.


Now, let's tell GPS to use our make:

We do so by making

Build -> Custom -> Enter the command to execute: make 
(Once set you can call it by pressing F9).

Starting the debugger:

It is done by doing: 

Debug -> Initialize -> <no main file>

(Don't forget to run gdbproxy first)

If you want the menu item "Build -> Compile file" to work you must copy your
makefile with the name makefile.your_project_name.
I guess there should be a better way to do it without duplicating makefiles
but I haven't found it yet.

You can also make "Build -> Recompute C/C++ Xref" in order to have cross
references working.

Here is a copy of my gdb.ini file:


##### gdb.ini

echo executing gdb.ini\n

##set prompt msp430-gdb>  NOOOOOOOOOOOO. The front end hungs

file your_executable.elf

target remote localhost:3333  ## I use port 3333 for gdbproxy. 

set remoteaddresssize 64
set remotetimeout 999999

set remote memory-write-packet-size 1024
set remote memory-write-packet-size fixed
set remote memory-read-packet-size 1024
set remote memory-read-packet-size fixed

Reply via email to