This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: sid
- From: Scott Dattalo <scott at dattalo dot com>
- To: arun at anwsi dot com
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Fri, 26 Jul 2002 07:15:39 -0700 (PDT)
- Subject: [ECOS] Re: sid
I'm sending the response to the list to
On Fri, 26 Jul 2002, arun%anwsi.com@mail3.srivari.net wrote:
>
> hello scott
>
> after clicking arm-simulator in insight .
> it got struck up .it was running for more than a hour without ending.
>
> since i am new to sid can iknow where to download sid and how to use it?
>
> please guide me to use sid
I assume you followed the instructions in the second half of:
http://sources.redhat.com/ml/ecos-discuss/2002-07/msg00267.html
After you've connected to the target and loaded the code, set a break in
main. At the gdb prompt:
gdb> break main
and then run the program.
(i.e. type run at the gdb prompt or navigate through the gui windows or
type r while the source window has focus).
If you don't reach the break point in main then you have a problem! I
experienced this on one occasion and it turned out that eCos was spinning
on the exit thread because there was insufficient RAM for malloc! I
suspect that there's a similar problem in your case. I also found that the
simulation will "hang" while waiting for a response for (non-existant)
hardware. For example, you can't use printf's in your code! In my case,
I believe printf was redirecting to the serial port and there was a
blocking call waiting for one of the Hardware control register bits to
change states.
If your simulation hangs before you get to the break point in main, then
halt the simulation. The source window should display where you are in the
eCos code. If it doesn't then you can click on the drop down box in the
upper right hand of the source window and change the source display mode
from "SOURCE" to "ASSEMBLY". Or if you want, type "list" at the gdb
prompt. This will tell you where you're stuck and hopefully give you a
hint on what to do.
I'd recommend not going to SID just yet. If the insight simulator doesn't
work, then neither will SID most likely.
Scott
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss