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 implemented on plus 2 4.3.1?


  • Please log in to reply
No replies to this topic

#1 Fred007

Fred007

    Member

  • Members
  • PipPip
  • 25 posts

Posted 06 June 2014 - 05:17 PM

Is this implemented in 4.3.1 on a plus 2? I have the following simple code but it does not appear to be working.

 

            OutputPort led = new OutputPort(Pins.ONBOARD_LED, false);
            led.Write(true);                                                    // Start with led on, off after initialization
            Debug.Print("Sleeping for 5");
            Thread.Sleep(5000);         // sleep five seconds
 
            led.Write(false);
            Debug.Print("Enabling Watchdog at 100");
 
            Watchdog.Timeout = new TimeSpan(100);
            Watchdog.Behavior = WatchdogBehavior.SoftReboot;
            Watchdog.Enabled = true;
 
            Debug.Print("Sleeping for 1");
            Thread.Sleep(1000);         // Should reboot before here
            Debug.Print("Waking Up, not rebooted");
            Thread.Sleep(5000);         // Should reboot before here
            Debug.Print("Terminating program");
 
I thought I would see the board reboot before the "Waking Up..." output, but it does not reboot. Thanks.





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.