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

    Problems with powerOFF() (Guru Meditation)

    Scheduled Pinned Locked Moved Cores
    4 Posts 2 Posters 7.3k Views 1 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.
    • O Offline
      option
      last edited by option

      Even with the simple PowerOFF example included I get a Guru when I try to shut it down, resulting in automatic restart.
      Same result if I run it on USB, the M5 (red) battery module or the Go Battery module.

      Any suggestions?

      Module: Core Basic
      Error:
      Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
      Core 1 register dump:
      PC : 0x400e2c28 PS : 0x00060130 A0 : 0x800d3786 A1 : 0x3ffb1f30
      A2 : 0x00000000 A3 : 0x3ffbf75c A4 : 0x00000001 A5 : 0x0000001d
      A6 : 0x00000000 A7 : 0x3ffb0060 A8 : 0x800e2e02 A9 : 0x3ffb1f10
      A10 : 0x00000014 A11 : 0x0000001d A12 : 0x00000001 A13 : 0x00000007
      A14 : 0x00000020 A15 : 0x3ffb0060 SAR : 0x00000005 EXCCAUSE: 0x0000001c
      EXCVADDR: 0x00000134 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0x00000000

      Backtrace: 0x400e2c28:0x3ffb1f30 0x400d3783:0x3ffb1f60 0x400d1136:0x3ffb1f90 0x400d7e5d:0x3ffb1fb0 0x40089819:0x3ffb1fd0

      Rebooting...

      1 Reply Last reply Reply Quote 0
      • m5stackM Online
        m5stack
        last edited by

        could you paste your code to here.

        1 Reply Last reply Reply Quote 0
        • O Offline
          option
          last edited by option

          I use the included PowerOFF example.
          Deepsleep works fine.

          Here it is, I use it unmodified.
          As soon as I push btn A it reboots with the guru error.

          #include <M5Stack.h>

          // the setup routine runs once when M5Stack starts up
          void setup(){

          // initialize the M5Stack object
          M5.begin();

          /*
          Power chip connected to gpio21, gpio22, I2C device
          Set battery charging voltage and current
          If used battery, please call this function in your project
          */
          M5.Power.begin();

          // Lcd display
          M5.Lcd.println("This is software power off demo");
          M5.Lcd.println("Press the button A to power off.");
          }

          // the loop routine runs over and over again forever
          void loop() {

          if(M5.BtnA.wasPressed()) {
          M5.Power.powerOFF();
          }

          M5.update();
          }

          m5stackM 1 Reply Last reply Reply Quote 0
          • m5stackM Online
            m5stack @option
            last edited by

            @option pls check the lib version is latest. and confirm the board select m5stack -core

            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
            • First post
              Last post