[ECOS] is it successful

Jonathan Larmour jlarmour@redhat.co.uk
Thu Apr 27 19:51:00 GMT 2000


> zhang wrote:
> 
> Hi,to verify both that a hardware target is properly set up,and that the
> GDB commands used to connect to the target work properly on my system,
> connect to the target by issuing the following commands in GDB console
> mode:(as the document says)
> (gdb) set remotebaud 38400
> (gdb) set mips-force-32bit-saved-gpregs
> (gdb) target remote /dev/ttyS0
> but I am not sure which target argument I must choose(my target is pc
> ),so I ignore the second line ,just using :
>    (gdb) set remotebaud 38400
>    (gdb) target remote /dev/ttyS0
> 
> then :
>      $ gdb -nw thread_gdb
>       (gdb) load
>       (gdb) continue

The following should be what is required:

$ gdb -nw thread_gdb
(gdb) set remotebaud 38400
(gdb) target remote /dev/ttyS0
(gdb) load
[ some output ]
(gdb) continue
 
> however ,on the target ,only lots of odd characters scroll ,so I do not
> know whether it is successful or not .
>     if it is successful ,what will I do next?

You will see that while the program loads.
 
>     And I also want to know whether the program result will be print on
> the host screen or the target screen ,and the above debug can tell us ?
>     thanks alot

It should appear on the GDB output.

Jifl
-- 
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS  Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow."  ||  These opinions are all my own fault


More information about the Ecos-discuss mailing list