This is the mail archive of the ecos-discuss@sources.redhat.com 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]

Re: gdb remote debug problem...running an ecos applicatio



On 07-Jun-2001 Srinivasan Sriram wrote:
> Hello!
> When I use -
> set remote debug 1, 
> I get the following output...
> 
> Sending packet: $Hc-1#09...Sending packet:
> $Hc-1#09...Sending packet: $Hc-1#09..
> Sending packet: $Hc-1#09...Timed out.
> Timed out.
> Timed out.
> Ignoring packet error, continuing...
> Sending packet: $qC#b4...Sending packet:
> $qC#b4...Sending packet: $qC#b4...Sendi
> ng packet: $qC#b4...Timed out.
> Timed out.
> Timed out.
> Ignoring packet error, continuing...
> Sending packet: $qOffsets#4b...Sending packet:
> $qOffsets#4b...Sending packet: $q
> Offsets#4b...Sending packet: $qOffsets#4b...Timed out.
> Timed out.
> Timed out.
> Ignoring packet error, continuing...
> Couldn't establish connection to remote target
> Malformed response to offset query, timeout
> (gdb)
>  
> -----
> I repeated the above with lower baudrates, but there
> seems to be no variation in the output.
> 
> Just to check if my serial null modem connected at
> COM2 is working fine, I ran kermit on Linux host and
> Hyperterminal on my target. There is no loss of data
> at 38400 baud.
> 
> Could you help me debug this problem?

Try typing the debug commands manually, via hyperterm.  

  Connect to the unit
  Reset & wait for it to start
  Send '$Hc-1#09'  (it shouldn't echo anything)
  See what comes back

> thanks
> Kavita
> 
> --- Jonathan Larmour <jlarmour@redhat.com> wrote:
>> Srinivasan Sriram wrote:
>> > 
>> > Hello!
>> > Could someone help me fix this problem -
>> > I use Linux as host and PC as target.
>> > Using
>> > dd conv=sync if=./gdb_module.bin of=/dev/fd0h1440
>> > I copy the .bin file on to a floopy.
>> > I connect my host to target via a null modem
>> cable.
>> > When my target PC boots from this floppy, I see
>> the
>> > following line on the target monitor-
>> > ++$T0508:a43.....and so on.
>> 
>> This looks right.
>>  
>> > I type i386-elf-gdb -nw hello, then I get the
>> (gdb)
>> > prompt.
>> > I type the following -
>> > (gdb) set remotebaud 38400
>> > (gdb) target remote /dev/ttyS1
>> > Remote debugging using /dev/ttyS1
>> > Ignoring packet error, continuing....
>> > Ignoring packet error, continuing....
>> > Ignoring packet error, continuing....
>> > Couldn't establish connection to remote target
>> > Malformed response to offset query, timeout
>> > (gdb)load
>> > You can't do that when your target is 'exec'.
>> > 
>> > ----
>> > 1.Is this due to mismatch of baudrate of host and
>> > target?
>> > Setting baudrate to 19200 gives me the same
>> output.
>> > 2. How do I run my application on the target?
>> 
>> It could be a serial overrun. Try again with "set
>> remotedebug 1" fist
>> before the target remote and post the results here.
>> 
>> Jifl
>> -- 
>> Red Hat, Rustat House, Clifton Road, Cambridge, UK.
>> Tel: +44 (1223) 271062
>> Maybe this world is another planet's Hell -Aldous
>> Huxley || Opinions==mine
>> Come to the Red Hat TechWorld open source conference
>> in Brussels!
>> Keynotes, techie talks and exhibitions   
> http://www.redhat-techworld.com/
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35 
> a year!  http://personal.mail.yahoo.com/


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