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: Still on ethernet configuration


Please CC to ecos-discuss....

> I realized that not even the cyg_netint thread is being created. I put
> a diag_printf as the first statement of the task and it never gets
> printed. The calls to create and resume it are executed though.

So something is going wrong with scheduling. This reminds me of
something. The scheduler is not started until after cyg_user_start
exits. So the network thread will not start until cyg_user_start
exists. You say that init_net locks, so that seems to imply it needs
the network thread running. Move all you code into the thread. Make
cyg_user_start just start your net_test thread and then exit. This is in fact how all the test/example applications work......

         Andrew
 
> Also I'm using GDB through the serial interface and not the ethernet.
> I took the cyg_net_init() call out and still doesn't work. If I remove
> the init_net call everything works fine but I have no network. In any
> ways the cyg_netint thread does not get created.
> 
> Any other suggestions?

-- 
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]