This is work fine
Thank you for help
Bernard
_________________________________________________________________________________________________________________________
David Brown a écrit:
Hi,This is quite a helpful summary of how to get started with gdb, at least as far as you have come so far. I haven't yet had a chance to try it myself, but I've used gdb on other embedded micros. The problem is the "run" command - that simply does not work with gdb and embedded systems. When doing native debugging on a PC, the "run" command is used to tell the OS to create a new process, to do whatever load-time linking is required, and to generally start the program going. On an embedded system, this is not relevant. But since the program is already to run (after downloading), it is just a matter of using the "continue" (or "c") command. You might need to check that the pc is set to the correct point before continuing - it may even be a good idea to reset the target from within gdb before doing "continue" - as I say, I haven't tried it myself yet to find out the idiosyncracies.David
Hi,
I am using MSP430 microcontroler with the gnu C.
*) First I have test insight-5.1.1, the problem is that when I start configure with --target=msp430, this does not run. I have edit the source of configure and in fact there is nothing about the msp430. I have search in the source around and nothing.
*) After I have use insight-5.2.1, the problem is the same as with 5.1.1
*) I have get the gdb source from sourceforge release 5.1.1, and this release include the msp430. The compilation was ok, I have my exec file msp430-gdb.exe and msp430-run.exe in the /usr/local/msp430 dir.
*) After that I have get the rproxy20021030.exe and the setup files with dll to install gvieo on my computer.
After installation of the driver for the Texas FET (gvieo...), I start rproxy like this : rproxy --debug --port=8888 msp430 &
I have this message :
Remote proxy for GDB, v0.71, Copyright (C) 1999 Quality Quorum Inc.This is the right micro, I presume that the rproxy program communicate with FET
MSP430 adaption Copyright (C) 2002 Chris Liechti and Steve Underwood
Remote Proxy comes with ABSOLUTELY NO WARRANTY; for details
use `--warranty' option. This is free software, and you are
welcome to redistribute it under certain conditions;
use `--copying' option for details.
info: msp430: Target device is a 'MSP430F135' (type 4)
notice: rproxy-20021030.exe: waiting on TCP port 8888
*) After that I run the debuger (I have compiled my sources with the -g flag I do not strip when linking) : msp430-gdb a.out
I enter this command under gdb :
(gdb) target msp430 pc_ber:8888 (my pc name is pc_ber)If I use the command target remote pc_ber:8888 the reponse is
(after a while...) Timeout reading from remote system.
(gdb)
(gdb) target remote pc_ber:8888
Remote debugging using pc_ber:8888
0x0000fc40 in __pack_f (src="">
(gdb)
On the rproxy software I have this message :
info: msp430: Target device is a 'MSP430F135' (type 4)*) This is the start of the main code :
notice: rproxy-20021030.exe: waiting on TCP port 8888
notice: rproxy-20021030.exe: connected
(gdb) l 45
40 void main(void)
41 {
42 extern void init_Pdir(void);
43 unsigned char mode;
44 double ret = 0;
45 _TIME_OUT *pnt_timeout;
46 pnt_timeout = &TIME_OUT_MB;
47
48 // First initialization after
49 WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
I put a break at line 46 :
*) When aI run the program :
(gdb) r
Starting program: /cygdrive/c/usr/ber/msp430/rf868/a.out
Don't know how to run. Try "help target".
If you have some comments, I will apreciate them
Thank you
Bernard.
[email protected]
_____________________________________________________________________________________________________________________________________
Dmitry a écrit:
nope... what's the prob with gdb? ~dOn Wednesday 13 November 2002 12:19, Bernard MONDAN wrote:Hello, I have some problems using GDB with my Win 2$$$ / Cygwin system, and I must go forward with my project. Is it possible to convert the a.out file to a file like file.d43 to be used by the C-SPY debuger ?? Thank You Bernard o(°+°)o [email protected] ------------------------------------------------------- This sf.net email is sponsored by: Are you worried about your web server security? Click here for a FREE Thawte Apache SSL Guide and answer your Apache SSL security needs: http://www.gothawte.com/rd523.html _______________________________________________ Mspgcc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mspgcc-users
------------------------------------------------------- This sf.net email is sponsored by: Are you worried about your web server security? Click here for a FREE Thawte Apache SSL Guide and answer your Apache SSL security needs: http://www.gothawte.com/rd523.html _______________________________________________ Mspgcc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mspgcc-users
