public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] connecting gdb to target
@ 2001-05-22  7:40 Christoph Csebits
  2001-05-22  8:16 ` Jonathan Larmour
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Csebits @ 2001-05-22  7:40 UTC (permalink / raw)
  To: ecos-discuss

hi

i have an MPC860T based board and 
i have working threads and SCC2 serial
driver (diagnostics).
(mbx based port -> cvs version May 7 2001 )

cat /dev/ttyS1 gets 
+

(Ack in initialize_stub)

when inserting breakpoint() in my main
function it gets:

+$T05thread:00000001;40:00026d78;01:000308c4;#63

so far so good (i guess):
But gdb doesnt connect to the target:

starting gdb like this:

(gdb) set remotebaud 115200
(gdb) target remote /dev/ttyS1
Remote debugging using /dev/ttyS1

waits forever.

Another problem is that my board 
is featured with a hardware watchdog
which must be triggered within a second.

Calling breakpoint() stops my watchdog
triggering thread -> board reset.

Any suggestions how to deal with?

best regards, christoph

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] connecting gdb to target
  2001-05-22  7:40 [ECOS] connecting gdb to target Christoph Csebits
@ 2001-05-22  8:16 ` Jonathan Larmour
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2001-05-22  8:16 UTC (permalink / raw)
  To: Christoph Csebits; +Cc: ecos-discuss

Christoph Csebits wrote:
> 
> cat /dev/ttyS1 gets
> +
> 
> (Ack in initialize_stub)
> 
> when inserting breakpoint() in my main
> function it gets:
> 
> +$T05thread:00000001;40:00026d78;01:000308c4;#63
> 
> so far so good (i guess):
> But gdb doesnt connect to the target:
> 
> starting gdb like this:
> 
> (gdb) set remotebaud 115200
> (gdb) target remote /dev/ttyS1
> Remote debugging using /dev/ttyS1
> 
> waits forever.

Are you sure it's really at 115200? Try enabling remote protocol debugging
with "set remotedebug 1"
 
> Another problem is that my board
> is featured with a hardware watchdog
> which must be triggered within a second.
> 
> Calling breakpoint() stops my watchdog
> triggering thread -> board reset.
> 
> Any suggestions how to deal with?

You could something in the loop in
hal/common/VERSION/src/generic-stub.c:getpacket() to reset your watchdog
there.

We should probably add a HAL_STUB_IDLE() callback macro or something.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-05-22  8:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-22  7:40 [ECOS] connecting gdb to target Christoph Csebits
2001-05-22  8:16 ` Jonathan Larmour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).