🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Core INK freezes after a couple of minutes

    PROJECTS
    4
    13
    7.5k
    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.
    • felmueF
      felmue
      last edited by

      Hello @Navidard

      try without ezdata - it looks like it locks up after a couple of updates.

      Thanks
      Felix

      GPIO translation table M5Stack / M5Core2
      Information about various M5Stack products.
      Code examples

      N 1 Reply Last reply Reply Quote 0
      • ajb2k3A
        ajb2k3
        last edited by

        It may be memory error, I did have issues running sensors on the controllers filling memory and not clearing the memory.

        UIFlow, so easy an adult can learn it!
        If I don't know it, be patient!
        I've ether not learned it or am too drunk to remember it!
        Author of the WIP UIFlow Handbook!
        M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

        1 Reply Last reply Reply Quote 0
        • R
          Red253
          last edited by

          attempt without ezdata - it seems as though it secures after two or three updates.

          Much obliged

          1 Reply Last reply Reply Quote 0
          • ajb2k3A
            ajb2k3
            last edited by

            Add an execute block to the begging of the program loop and in the block add the following

            import gc
            gc.collect()
            

            This should force micropython to preform garbage collection freeing up memory.

            UIFlow, so easy an adult can learn it!
            If I don't know it, be patient!
            I've ether not learned it or am too drunk to remember it!
            Author of the WIP UIFlow Handbook!
            M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

            N 1 Reply Last reply Reply Quote 0
            • N
              Navidard @ajb2k3
              last edited by

              @ajb2k3 Thanks a lot! it seems like it's working for now!

              ajb2k3A 1 Reply Last reply Reply Quote 0
              • N
                Navidard @felmue
                last edited by

                @felmue Thanks for the advice.
                I added a restart after every 120 seconds to save battery, and downloaded the code to the device, but then every time it restarts, it shows the UIflow logo, beeps, etc etc, until it gets to my application page. Do you have any idea why this happens?

                1 Reply Last reply Reply Quote 0
                • felmueF
                  felmue
                  last edited by

                  Hello @Navidard

                  I assume by restart you mean shutdown and restart. So yes, that is how UIFlow works. When the device restarts UIFlow firmware is started and eventually your code gets executed.

                  Thanks
                  Felix

                  GPIO translation table M5Stack / M5Core2
                  Information about various M5Stack products.
                  Code examples

                  1 Reply Last reply Reply Quote 0
                  • ajb2k3A
                    ajb2k3 @Navidard
                    last edited by

                    @navidard I went through so much IOT headache before I discovered this. So glad it works.

                    UIFlow, so easy an adult can learn it!
                    If I don't know it, be patient!
                    I've ether not learned it or am too drunk to remember it!
                    Author of the WIP UIFlow Handbook!
                    M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

                    N 1 Reply Last reply Reply Quote 0
                    • N
                      Navidard @ajb2k3
                      last edited by

                      @ajb2k3 Hello, so after fiddling with it yesterday, I understood the same thing still happens. it works for longer periods, but then stops responding again and dies. This is the sketch I am using now:0_1673345363895_Screenshot 2023-01-10 110905.png

                      ajb2k3A 1 Reply Last reply Reply Quote 0
                      • ajb2k3A
                        ajb2k3 @Navidard
                        last edited by

                        @navidard said in Core INK freezes after a couple of minutes:

                        @ajb2k3 Hello, so after fiddling with it yesterday, I understood the same thing still happens. it works for longer periods, but then stops responding again and dies. This is the sketch I am using now:0_1673345363895_Screenshot 2023-01-10 110905.png

                        The GC block needs to be inside the If>do loop.
                        I'm not sure if its a bug as gc.collect() is supposed to run continuously but Inside a loop it forces a reset of gc.collect()
                        Try putting an execute code block containing import gc next to start and then gc.collect() at the beginning of the if loop
                        I don't see a main loop function and so to me the code looks to be running in "One Shot" mode and not repeating.

                        UIFlow, so easy an adult can learn it!
                        If I don't know it, be patient!
                        I've ether not learned it or am too drunk to remember it!
                        Author of the WIP UIFlow Handbook!
                        M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

                        N 1 Reply Last reply Reply Quote 0
                        • N
                          Navidard @ajb2k3
                          last edited by

                          @ajb2k3 Yes I removed the loop because I wanted to add the restart option at the end of the code to use the low power mode basically.
                          So now, it restarts, reads and sends the data, and goes to sleep.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post