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]
Other format: [Raw text]

RE: Ethernet & serial problem


On Thu, 2002-10-17 at 09:07, Daniel Lidsten wrote:
> > > I have checked some thing that might interfere with each other:
> > > 
> > > * TxBD and RxBD -> They are corretly setup both for serial and 
> > > ethernet. Serial 2800 and 2820, eth 2840 and 2850.
> > > * In my main i do init_all_network and then a while(1). The 
> > ethernet ISR are then called when running quite regulary. 
> > However, the board cannot be reach with a ping.
> > 
> > This is most likely the problem.  The thread that's running 
> > "while(1)" 
> > is probably not letting the network threads run.  (They 
> > normally have fairly low priorities).  Try something like this:
> >   while (1) {
> >     cyg_thread_delay(100);
> >   }
> 
> I agree that i wasnt really thinking then i put the while(1) there put unfortunatelly the cyg_thread_delay didnt solve my problem....What i'm looking for now is what things that are common between these two (scc2 and smc). I assume that the problem must be somewhere in the CPM? Probably the serial init function performs something spoky that makes ethernet not work. It is, however, strange that ethernet cannot fix something like that since the serial port is initialized first. Any ethenet setting should be ok again since its initialized after serial? 
> 
> Also, the interrupt in if_quicc.c seems to be ok. I have step through breakpoints. I can also see that the CPM interrupt controller works.
> 

You've said that the ethernet ISR is being called.  Does the
ethernet DSR ever get run?  If so, can you tell how far it gets
into the ethernet driver [hardware layer]

-- 
------------------------------------------------------------
Gary Thomas                  |
eCosCentric, Ltd.            |  
+1 (970) 229-1963            |  eCos & RedBoot experts
gthomas@ecoscentric.com      |
http://www.ecoscentric.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


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