Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Ghost watchdog

    Scheduled Pinned Locked Moved MicroPython
    watchdogpybytesmicropython
    9 Posts 2 Posters 80 Views 2 Watching
    Loading More Posts
    • 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.
    • T Offline
      tttadam
      last edited by

      Hello there,

      I am facing with a weird issue again.
      My wipy restart from time to time.
      machine.reset_cause() returns with 2 which is wdt_reset, but there is no watchdog object created in my code.
      Could this watchdog coming from pybytes or is it coming from Baskerville?
      Is there a way to find it?

      A 1 Reply Last reply Reply Quote 0
      • A Offline
        agotsis @tttadam
        last edited by

        @tttadam what does the following code return pycom.wdt_on_boot() ? It may be the case that the watchdog has been configured previously by another code. If this is True, set it to False, reboot the device and you're ok.

        T 1 Reply Last reply Reply Quote 0
        • T Offline
          tttadam @agotsis
          last edited by

          @agotsis It was False, I set it false again. So probably it was not it.

          1 Reply Last reply Reply Quote 1
          • T Offline
            tttadam
            last edited by

            Picture for proof :)
            There is no watchdog in the code neither.

            bbdec41f-6602-4f01-9c28-a5e0449d4143-image.png

            A 1 Reply Last reply Reply Quote 0
            • A Offline
              agotsis @tttadam
              last edited by

              @tttadam I would then propose to have a full flash erase of your module and see if the problem is still there (I know this is no actual solution, but has worked for me when I am seeing strange behavior)

              1 Reply Last reply Reply Quote 0
              • T Offline
                tttadam
                last edited by

                I did that.
                Updated the firmware with pycom firmware updater, erased everything during the process.
                BUT still reboots from time to time...

                ets Jun  8 2016 00:22:57
                
                rst:0x7 (TG0WDT_SYS_RESET),boot:0x37 (SPI_FAST_FLASH_BOOT)
                configsip: 0, SPIWP:0xee
                clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
                mode:DIO, clock div:1
                load:0x3fff8020,len:8
                load:0x3fff8028,len:2140
                ho 0 tail 12 room 4
                load:0x4009fa00,len:19760
                entry 0x400a05bc
                
                T 1 Reply Last reply Reply Quote 0
                • T Offline
                  tttadam @tttadam
                  last edited by

                  @tttadam So I found a simular issue with a gpy I tried that solution.
                  I tried it and now infinite reboot... :D

                  rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
                  flash read err, 1000
                  ets_main.c 371
                  ets Jun  8 2016 00:22:57
                  
                  rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
                  flash read err, 1000
                  ets_main.c 371
                  ets Jun  8 2016 00:22:57
                  
                  rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
                  flash read err, 1000
                  ets_main.c 371
                  
                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    tttadam
                    last edited by

                    So I repetead the process again, now I change the filesytem also. No more bootloop.
                    We will see about the watchdog.

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      tttadam
                      last edited by

                      sadly it's the same...

                      rst:0x7 (TG0WDT_SYS_RESET),boot:0x37 (SPI_FAST_FLASH_BOOT)
                      configsip: 0, SPIWP:0xee
                      clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
                      mode:DIO, clock div:1
                      load:0x3fff8020,len:8
                      load:0x3fff8028,len:2140
                      ho 0 tail 12 room 4
                      load:0x4009fa00,len:19760
                      entry 0x400a05bc
                      
                      1 Reply Last reply Reply Quote 0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      • 1 / 1
                      • First post
                        Last post

                      Pycom on Twitter

                      Pycom