public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] arm evaluator e7t hangs when executing exemple progs/tests
@ 2003-04-10 15:32 Matt Kober
  2003-04-11 21:28 ` Jonathan Larmour
  0 siblings, 1 reply; 2+ messages in thread
From: Matt Kober @ 2003-04-10 15:32 UTC (permalink / raw)
  To: ecos-discuss

hi,
i'm using the eCos 2.0b1 and the prebuilt ecoscentric arm tools on a win host with cygwin (ecoscentric ecos cd).
i built the ecos library using the e7t template and the default package configuration. no errors.
i compiled and linked the twothreads example program just as described in the user-guide.
i can download it without problems but the board seems to hang when the first task is being resumed. i get the following output :
...
(gdb) target remote com1
(gdb) load
Loading section .rom_vectors,size 0x40 lma 0x10000
Loading section .text, size 0xff9c lma 0x10040
Loading section .rodata, size 0x39c lma 0x1ffdc
Loading section .data, size 0x364 lma 0x20378
Start address 0x10040, load size 67292
Transfer rate: 23405 bits/sec, 304 bytes/write.
(gdb) cont
continuing.
Entering twothreads' cyg_user_start() function
Beginning execution; thread data is 0
Beginning execution; thread data is 1
the program doen't get past this point and the board isn't responding anymore. i can interrupt debugging by pressing ctrl + c after a while but need to reset the board to reestablish communicatoin with the board.
any suggestions where to start searching for the problem ?
btw: the hello world program and a thread test of the kernel tests show the same problem. the semaphore and mutex tests pass, though.
thanks for your help
______________________________________________________________________________
UNICEF bittet um Spenden für die Kinder im Irak! Hier online an
UNICEF spenden: https://spenden.web.de/unicef/special/?mc=021101


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

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

* Re: [ECOS] arm evaluator e7t hangs when executing exemple progs/tests
  2003-04-10 15:32 [ECOS] arm evaluator e7t hangs when executing exemple progs/tests Matt Kober
@ 2003-04-11 21:28 ` Jonathan Larmour
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2003-04-11 21:28 UTC (permalink / raw)
  To: Matt Kober; +Cc: ecos-discuss

Matt Kober wrote:
> i'm using the eCos 2.0b1 and the prebuilt ecoscentric arm tools on a win host with cygwin (ecoscentric ecos cd).
> i built the ecos library using the e7t template and the default package configuration. no errors.
> i compiled and linked the twothreads example program just as described in the user-guide.
> i can download it without problems but the board seems to hang when the first task is being resumed. i get the following output :
[snip]
> the program doen't get past this point and the board isn't responding anymore. i can interrupt debugging by pressing ctrl + c after a while but need to reset the board to reestablish communicatoin with the board.
> any suggestions where to start searching for the problem ?
> btw: the hello world program and a thread test of the kernel tests show the same problem. the semaphore and mutex tests pass, though.
> thanks for your help

This doesn't look promising: the common element in this appears to be 
whether interrupts and/or the scheduler is running. When you say semaphore 
/mutex tests pass, would I be right in guessing that in fact mutex0 passes 
but mutex1/2/3 don't?

It's possible the target has broken at some point :-|... none of the core 
eCos developers have access to e7t's any more I believe. On the plus side, 
it's very unlikely

The first thing to try is enabling assertions, by enabling 
CYGPKG_INFRA_DEBUG in the infra package. If that doesn't show anything, 
try enabling tracing output by enabling tracing in the infra package, and 
switch it to "fancy" from "buffered" mode, so that it outputs immediately 
so you see where it stops.

Also try compiling without optimisation (i.e. remove -O2 from the 
CYGBLD_GLOBAL_CFLAGS, do a make clean, and rebuild) to remove the 
possibility of compiler optimisations.

Jifl
-- 
eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine


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

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

end of thread, other threads:[~2003-04-11 21:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-10 15:32 [ECOS] arm evaluator e7t hangs when executing exemple progs/tests Matt Kober
2003-04-11 21:28 ` 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).