[ECOS] Scheduler Problem
Mon Oct 13 12:01:00 GMT 2003
On Mon, 2003-10-13 at 05:55, James Yates wrote:
> Ho I haven't run any of the test programs. Are these built with the same memory model. Because I am using a custom bootloader due to project requirements everything has to be placed exactly right. Also I have just noticed that when corrupted output is sent to my serial port once cyg_scheduler_start() is called, pressing enter on the terminal causes another line of corrupted out to appear. I think perhaps a rom monitor stub is in the way? I tried disabling all gdb_stub related options but now get no diag output. :-(
Build the tests using the same kernel (and memory model) as the
application you are testing. Start with the HAL & kernel tests -
they'll tell you something about whether the basic system is working.
As for the "strange" output - it's probably a GDB string. Can you
send it to use? If it looks something like "$T004;...", then it is
definitely GDB telling you that the program has gone awry. Connect
to the board using GDB and you can learn a lot more.
> I will keep at it. Thansk for your help. If you think of anything else I would be very appreciative.
> -----Original Message-----
> From: Gary Thomas [mailto:email@example.com]
> Sent: 13 October 2003 12:49
> To: firstname.lastname@example.org
> Cc: James Yates; email@example.com
> Subject: Re: [ECOS] Scheduler Problem
> On Mon, 2003-10-13 at 05:26, Iztok Zupet wrote:
> > On Monday 13 October 2003 13:20, James Yates wrote:
> > > I have just ported eCos to my own custom SH2 platform and I am now at the
> > > point of getting a simple app up and running. I have a bootloader running
> ... snip
> > You should start the scheduler here, otherwise it's never started:
> > Cyg_Scheduler::scheduler.start(); // This function never returns
> Or, since this is probably just a C program (not C++)
> Also, James - have you run any of the standard eCos test programs?
> They are there to test the behaviour of a port and can tell you a
> lot about what works (and what doesn't).
> Gary Thomas <firstname.lastname@example.org>
> MLB Associates
Gary Thomas <email@example.com>
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
More information about the Ecos-discuss