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

    LoPy4 crash

    Scheduled Pinned Locked Moved LoPy
    11 Posts 3 Posters 107 Views 3 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.
    • M Offline
      mythael
      last edited by mythael

      Hello
      My Lopy4 card crashes if it runs a script for a long time even with a small script like :

      import utime
      While True:
          print ("ok")
          utime.sleep(60)
      

      errors are never the same and are never at the same time. I don't understand why and I may have updated the boards, but that doesn't change the problem. Where could the problem come from?

      my last error :

      Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.
      Core 0 register dump:
      PC      : 0x4014cc3f  PS      : 0x00060133  A0      : 0x80086e6f  A1      : 0x3ffd4780  
      A2      : 0x00000000  A3      : 0x00060123  A4      : 0x00060120  A5      : 0x00000001  
      A6      : 0x000000fe  A7      : 0x00000000  A8      : 0x60008890  A9      : 0xd0dd1b01  
      A10     : 0x00000000  A11     : 0x08070902  A12     : 0x3ffd48ac  A13     : 0x00000001  
      A14     : 0x000000fe  A15     : 0x00000000  SAR     : 0x0000001e  EXCCAUSE: 0x0000001c  
      EXCVADDR: 0xd0dd1b01  LBEG    : 0x4009347c  LEND    : 0x400934aa  LCOUNT  : 0xffffffff  
      
      ELF file SHA256: 0000000000000000000000000000000000000000000000000000000000000000
      
      Backtrace: 0x4014cc3f:0x3ffd4780 0x40086e6c:0x3ffd47a0 0x4015224d:0x3ffd47d0 0x401570f0:0x3ffd4800
      
      robert-hhR 2 Replies Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @mythael
        last edited by

        @mythael How often does that happen? Every few Minutes, once an hour, once a day, once a week?

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          mythael @robert-hh
          last edited by

          @robert-hh it depends in general it takes 4 hours or less (the fastest crash observed is 10 minutes) with this little script it took 15 hours. I also tried with another Lopy4 but I have the same problem.

          robert-hhR 1 Reply Last reply Reply Quote 0
          • robert-hhR Offline
            robert-hh @mythael
            last edited by robert-hh

            @mythael which firmware version do you use? How do you power to the device?

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              mythael @robert-hh
              last edited by

              @robert-hh I'm using version 1.20.2.rc7 and the card is USB powered. I tried it on a 3.1 extension card and a Pysense card.

              robert-hhR 2 Replies Last reply Reply Quote 0
              • robert-hhR Offline
                robert-hh @mythael
                last edited by

                @mythael I have set-up a LoPy4 with a similar script like yours, and it is running not continuously since 10 days without any crash. The script is below. It blinks green every 20 seconds. The LoPy4 is powered by a separate USB supply & not connected to a computer. I use my own simple expansion board with FT232 USB/UART bridge. The firmware is 1.20.2.rc7, but my own build.

                import pycom
                import utime
                pycom.heartbeat(False)
                
                while True:
                    print ("ok")
                    pycom.rgbled(0x004000)
                    utime.sleep(1)
                    pycom.rgbled(0)
                    utime.sleep(20)
                
                1 Reply Last reply Reply Quote 1
                • robert-hhR Offline
                  robert-hh @mythael
                  last edited by

                  @mythael 21 days on the road an still running.
                  A note on the USB supply I am using: it is a dumb one. Just delivering 5V up to 1A without any protocol.
                  From time to time I connect via Telnet as an additional verification besides the green LED coming up every 20 seconds.

                  1 Reply Last reply Reply Quote 2
                  • robert-hhR Offline
                    robert-hh @mythael
                    last edited by robert-hh

                    @mythael I stopped the test yesterday after 44 days for loading the latest firmware 1.20.2.rc9. The device was still up and working.

                    robert-hhR 1 Reply Last reply Reply Quote 1
                    • robert-hhR Offline
                      robert-hh @robert-hh
                      last edited by

                      @robert-hh 96 days since the last stop and still working fine. Similar for the LoPy1 which runs as single channel Lora gateway, which restarted twice in that time, both caused pulling unintentionally it's power plug.

                      1 Reply Last reply Reply Quote 2
                      • G Offline
                        Gijs
                        last edited by

                        @robert-hh are you running the nanogateway.py example that we provide? I have not been able to get that running stable for more than a day yet :/
                        Gijs

                        robert-hhR 1 Reply Last reply Reply Quote 0
                        • robert-hhR Offline
                          robert-hh @Gijs
                          last edited by

                          @Gijs I assume that not. I am running a version from months or years ago, and with the Loriot network. I can send you a copy of that nanogateway script.

                          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