This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Running Redboot RAM mode on custom AT91x40 board


On Wed, 2006-06-21 at 15:56 -0400, David Ho wrote:
> Hi again,
> 
> > Simply disconnect your terminal [emulator] and then connect to
> > the board using GDB.  It will then tell you why it stopped and
> > you should be able to poke around, get back-traces, etc.
> 
> I am now connected to the board via serial GDB.  I am not sure what to
> make of these msgs.  Any help is really appreciated.
> 
> David
> 
> (gdb) set remotebaud 38400
> (gdb) set debug remote 1

Now that the connection is working, turn this off :-)

> (gdb) target remote /dev/com1
> Remote debugging using /dev/com1
> Sending packet: $Hc-1#09...Ack
> Packet received:
> Sending packet: $qC#b4...Ack
> Packet received:
> Sending packet: $qOffsets#4b...Ack
> Packet received:
> Sending packet: $?#3f...Ack
> Packet received: S0a
> Sending packet: $Hg0#df...Ack
> Packet received:
> Sending packet: $g#67...Ack
> Packet received: b8020310555500009cf00710aaaaffff0000010100340310603303101cd0021
> 0100a0200a000800808102702d4020310aaaa0000b0020310b431021018f00710000000000000000
> 00000000000000000000000000000000000000000000000000000000000000000000000000000000
> 00000000000000000000000000000000000000000000000000000000000000000000000000000000
> 0000000000000000000000000d3000060
> 0x1007f018 in ?? ()
> (gdb) bt
> #0  0x1007f018 in ?? ()
> Sending packet: $m100302d4,4#8b...Ack
> Packet received: 8c310210
> Sending packet: $m10023184,4#60...Ack
> Packet received: 8c509fe5
> Sending packet: $m10023188,4#64...Ack
> Packet received: 04b04ce2
> Sending packet: $m1002318c,4#8f...Ack
> Packet received: 08d04de2
> Sending packet: $m10023190,4#5d...Ack
> Packet received: 84109fe5
> Sending packet: $m10023194,4#61...Ack
> Packet received: 004095e5
> Sending packet: $m10023198,4#65...Ack
> Packet received: 80209fe5
> Sending packet: $m1002319c,4#90...Ack
> Packet received: 0400a0e1
> Sending packet: $m100231a0,4#85...Ack
> Packet received: 022061e0
> Sending packet: $m100231a4,4#89...Ack
> Packet received: c90d00eb
> Sending packet: $m100231a8,4#8d...Ack
> Packet received: 1c004be2
> Sending packet: $m100231ac,4#b8...Ack
> Packet received: 0fe0a0e1
> Sending packet: $m100231b0,4#86...Ack
> Packet received: 04f0a0e1
> Sending packet: $m100231b4,4#8a...Ack
> Packet received: bc315be1
> Sending packet: $m100231b8,4#8e...Ack
> Packet received: 1f0053e3
> Sending packet: $m100231bc,4#b9...Ack
> Packet received: 60009fe5
> Sending packet: $m100231c0,4#87...Ack
> Packet received: 0310a0e1
> (gdb)

It's a good idea to tell GDB what program you are trying
to debug.  This lets it decode the addresses and also get
into the correct endianness (this is a little endian
program, but GDB is interpreting it as big endian).
Start GDB like this:
  % arm-elf-gdb redboot.elf
  (gdb) tar rem /dev/com1

Then you should be able to see more interesting stuff:
  (gdb) info reg
  (gdb) bt
etc.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]