Re: [ECOS] Can't connect to remote Evaluator 7T

Gary D. Thomas
2003-02-20T14:33:33Z

On Thu, 2003-02-20 at 07:28, Pierre Habraken wrote:
> Mark Salter wrote:
> > [...]
> > % stty -a </dev/ttyS0
> > speed 115200 baud; rows 0; columns 0; line = 0;
> > intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
> > eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
> > werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 5;
> > -parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts
> ^^^^^^^^
> Ok, I got it : hardware control flow was enabled (crtscts instead of
> -crtscts).
> So, now the command 'target remote' sets up the connection, but
> uploading (command 'load') the program to the board fails, leaving gdb
> accepting no more keyboard input (not even ^C, I have to kill it from an
> other xterm).
>
> I attach below the gdb trace with logging disabled and also the contents
> of the file gdblog.txt produced when logging is enabled (beginning of
> the file only) :
>
> Anyone an idea ?
>
> Pierre
>
> ===============================================================
> $ arm-elf-gdb
> GNU gdb 5.2
> ...
> This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-elf".
> (gdb) set remotebaud 38400
> (gdb) file guirlande
> Reading symbols from guirlande...done.
> (gdb) target remote /dev/ttyS0
> Remote debugging using /dev/ttyS0
> 0x018210a8 in ?? ()
> (gdb) load
> Loading section .text, size 0x3bec lma 0x8000
> Ignoring packet error, continuing...

This happens because you're overwriting the memory used by RedBoot.
On this platform, don't try and use any memory below 0x10000.

What sort of program are you trying to load? How did you build it?

--
.--------------------------------------------------------.
| Mind: Embedded Linux and eCos Development |
|--------------------------------------------------------|
| Gary Thomas email: gary.thomas@mind.be |
| Mind ( http://mind.be ) tel: +1 (970) 229-1963 |
| gpg: http://www.chez-thomas.org/gary/gpg_key.asc |
'--------------------------------------------------------'