NutRegisterDevice() doesn't yield?

View: New views
3 Messages — Rating Filter:   Alert me  

Parent Message unknown NutRegisterDevice() doesn't yield?

by steve-351 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

  I'm using

   NutRegisterDevice(&DEV_ETHER, 0x8300, 5);

  in a thread spawned by main() but it appears not to yield the processor
  while it operates.  If an ethernet cable is not plugged in then this locks
  the system until the watchdog times out.

  Is this the case or am I missing something and is there a work round?

  Thanks a lot for your help.

Kind Regards,
Steve.

_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion

Re: NutRegisterDevice() doesn't yield?

by Ole Reinhardt-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Steve,

>   I'm using
>
>    NutRegisterDevice(&DEV_ETHER, 0x8300, 5);
>
>   in a thread spawned by main() but it appears not to yield the processor
>   while it operates.  If an ethernet cable is not plugged in then this locks
>   the system until the watchdog times out.
>
>   Is this the case or am I missing something and is there a work round?

Which platform do you use? At least for SAM7x this is correct and needs
to be modified.

Regards,

Ole Reinhardt


--
 _____________________________________________________________
|                                                             |
| Embedded-IT          Hard- und Softwarelösungen             |
|                                                             |
| Ole Reinhardt        Tel. / Fax:        +49 (0)271  7420433 |
| Luisenstraße 29      Mobil:             +49 (0)177  7420433 |
| 57076 Siegen         eMail:    ole.reinhardt@... |
| Germany              Web:         http://www.embedded-it.de |
|                      UstID / VAT:       DE198944716         |
|_____________________________________________________________|

_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion

Re: NutRegisterDevice() doesn't yield?

by EnNut :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

   Steve,
   If you are using the AT91SAM7X256 then you should look at:
nut\arch\arm\dev\AT91_emac.c to see what EMAC_LINK_LOOPS is set to.

I use
#define EMAC_LINK_LOOPS         50000
which is about 4.5 seconds.

The original value was 1000000 which is about 90 seconds. I think the
maximum watchdog timeout is 12 seconds.

Trying changing  EMAC_LINK_LOOPS.

There may be a way to change this in the configurator, but I'm not sure how.


   Zack


At 10:18 AM 9/28/2008, you wrote:

>Hi,
>
>   I'm using
>
>    NutRegisterDevice(&DEV_ETHER, 0x8300, 5);
>
>   in a thread spawned by main() but it appears not to yield the processor
>   while it operates.  If an ethernet cable is not plugged in then this locks
>   the system until the watchdog times out.
>
>   Is this the case or am I missing something and is there a work round?
>
>   Thanks a lot for your help.
>
>Kind Regards,
>Steve.
>
>_______________________________________________
>http://lists.egnite.de/mailman/listinfo/en-nut-discussion

_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion
LightInTheBox - Buy quality products at wholesale price!