Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Development
  3. WDT doesn't work well

WDT doesn't work well

Scheduled Pinned Locked Moved Development
5 Posts 2 Posters 1.4k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • logger02L Offline
    logger02L Offline
    logger02
    wrote on last edited by
    #1

    Hello,

    I'm testing the library 2.0 with WDT enabled.

    In before() I add "wdt_enable(wdto_8seg)" and I comment from the _proces() the line "hwWatchdogReset();" to force the wdt reset after 8seg

    After wdt reset, the system crash and it is not restore. If I do a manual reset, neither it is restore. I need to remove the power supply to restore the system.

    Need I use a especial bootloader to use wdt with mysensor? I'm using the default bootloader flashed in the arduino pro mini v3

    1 Reply Last reply
    0
    • logger02L Offline
      logger02L Offline
      logger02
      wrote on last edited by
      #2

      I'm going to answer me.

      The problem was the bootloader, I have flashed the MYSbootloader and the WDT is working well.

      Anybody know a bootloader compatible with MYS but it run quickly? because MYSbootloader spends 10seconds to start

      1 Reply Last reply
      1
      • logger02L Offline
        logger02L Offline
        logger02
        wrote on last edited by
        #3

        I answer me again, I try the optiboot bootloader and it work well with mysensor library and WDT enable.

        I hope that the solution is useful for more people

        PD: The optiboot bootloader can be downloaded from here: https://github.com/Optiboot/optiboot/tree/master/optiboot

        tekkaT 1 Reply Last reply
        1
        • logger02L logger02

          I answer me again, I try the optiboot bootloader and it work well with mysensor library and WDT enable.

          I hope that the solution is useful for more people

          PD: The optiboot bootloader can be downloaded from here: https://github.com/Optiboot/optiboot/tree/master/optiboot

          tekkaT Offline
          tekkaT Offline
          tekka
          Admin
          wrote on last edited by
          #4

          @logger02 Indeed, this is a known issue with the stock AVR bootloader - Optiboot or MYSBootlader (depending on the use case) is suggested.

          1 Reply Last reply
          1
          • logger02L Offline
            logger02L Offline
            logger02
            wrote on last edited by
            #5

            Thank you to confirm it

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            16

            Online

            11.7k

            Users

            11.2k

            Topics

            113.0k

            Posts


            Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • MySensors
            • OpenHardware.io
            • Categories
            • Recent
            • Tags
            • Popular