Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Watchdog: How to do on netduino?


  • Please log in to reply
10 replies to this topic

#1 samjones

samjones

    Advanced Member

  • Members
  • PipPipPip
  • 105 posts

Posted 05 February 2012 - 10:26 PM

My low level embedded colleague said "the chip prob has on board watchdog support, so if your code hangs, it can get rebooted" In this thread, it appears there is no native watchdog support: http://forums.netdui...h__1#entry20571 The bottom line is ___________ ? Thanks!

#2 CW2

CW2

    Advanced Member

  • Members
  • PipPipPip
  • 1592 posts
  • LocationCzech Republic

Posted 05 February 2012 - 10:56 PM

My low level embedded colleague said "the chip prob has on board watchdog support, so if your code hangs, it can get rebooted"

The Netduino microcontroller has [only] one hardware watchdog timer and that is used by .NET Micro Framework runtime itself, so it is not available for user applications. You'd need to add external watchdog circuit.

#3 samjones

samjones

    Advanced Member

  • Members
  • PipPipPip
  • 105 posts

Posted 06 February 2012 - 12:34 AM

Ahhhh, it is in the hdware, but not available to user code.... I get it... (but don't love it)

#4 Geancarlo

Geancarlo

    Member

  • Members
  • PipPip
  • 24 posts

Posted 06 February 2012 - 12:43 AM

The Netduino microcontroller has [only] one hardware watchdog timer and that is used by .NET Micro Framework runtime itself, so it is not available for user applications. You'd need to add external watchdog circuit.


But doesn't the LPC2387/8(used for FEZ boards) also contain a single wdt?Couldn't the functionality of the WDT also be exposed like GHI did?

#5 samjones

samjones

    Advanced Member

  • Members
  • PipPipPip
  • 105 posts

Posted 06 February 2012 - 05:56 AM

My question is: Without a WDT, how do I get the system to reboot when it hangs? My app does hang sometimes... I want it to wait 60 seconds and then reboot when this happens. What is the netduino approach? (And please don't make the answer "switch to FEZ" because I did the FEZ thing, and came back here already once!)

#6 CW2

CW2

    Advanced Member

  • Members
  • PipPipPip
  • 1592 posts
  • LocationCzech Republic

Posted 06 February 2012 - 08:32 AM

But doesn't the LPC2387/8(used for FEZ boards) also contain a single wdt?Couldn't the functionality of the WDT also be exposed like GHI did?

Probably yes (?)

But it seems I was completely wrong about the usage of WDT on Netduino boards - I have checked the firmware source code more thoroughly (not just PAL functions) and all Netduino solutions are configured to use watchdog stubs, probably because there is no watchdog driver for AT91SAM7 (!?) Posted Image

#7 Geancarlo

Geancarlo

    Member

  • Members
  • PipPip
  • 24 posts

Posted 06 February 2012 - 02:08 PM

:unsure:

#8 AxelG

AxelG

    Advanced Member

  • Members
  • PipPipPip
  • 52 posts

Posted 05 March 2013 - 01:08 AM

I have designs and plans to build a hardware watchdog you can use on a breadboard.  It is based on the MAX6373 chip.

 

I have posted the designs in another thread, or I can build one for you if you are interested.



#9 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 05 March 2013 - 06:13 AM

A quick not on watchdogs... We had size limitations on Netduino gen1 which prohibited adding too many extra features like watchdog support, but there's plenty of room for this on Netduino gen2. We're currently evaluating usage scenarios for implementing watchdog support for STM32. I'll start a thread about this soon--but basically we will have watchdog support for NETMF with the gen2 hardware...with no loss of code storage space. Chris

#10 mHammer

mHammer

    Member

  • Members
  • PipPip
  • 23 posts

Posted 14 March 2013 - 07:39 PM

Very cool, I've looked at AxelG's MAX6373 solution.  I even got a couple free sample to play with.  Now I just need micro fingures to solder the micro SOP. :mellow:



#11 AxelG

AxelG

    Advanced Member

  • Members
  • PipPipPip
  • 52 posts

Posted 18 March 2013 - 06:49 PM

I have an extra board;happy to send it along... Just PM me.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.