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

    M5Dial can not upload

    Modules
    7
    9
    3.1k
    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.
    • S
      smartvisionary
      last edited by

      Hello there,

      I just bought my M5Dial, i uploaded the examples and everything worked correctly. I uploaded some simple code to write a string to the display, which worked correctly and still works when i reset the unit. The problem is, that i can not upload to the board anymore. Windows detects the device and I even have it among the ports in Arduino Ide, however during the ulpoad procces I get Failed uploading: uploading error: exit status 2 which indicates that connection could not be made. I can't even open the serial monitor. Is there a way to factory reset the device? Thank you kindly in advance for you suggestions.

      As you can see, the device is detected and connected:

      0_1706020525631_Screenshot 2024-01-23 153509.png

      This is the last code I have uploaded:

      /**
       * @file rfid.ino
       * @author SeanKwok (shaoxiang@m5stack.com)
       * @brief M5Dial RFID Test
       * @version 0.2
       * @date 2023-10-18
       *
       *
       * @Hardwares: M5Dial
       * @Platform Version: Arduino M5Stack Board Manager v2.0.7
       * @Dependent Library:
       * M5GFX: https://github.com/m5stack/M5GFX
       * M5Unified: https://github.com/m5stack/M5Unified
       */
      
      #include "M5Dial.h"
      
      void setup() {
          auto cfgM5 = M5.config();
          M5Dial.begin(cfgM5, false, true);
          M5Dial.Display.setTextColor(GREEN);
          M5Dial.Display.setTextDatum(middle_center);
          M5Dial.Display.setTextFont(&fonts::Orbitron_Light_32);
          M5Dial.Display.setTextSize(1);
      
          M5Dial.Display.drawString("unibox", M5Dial.Display.width() / 2,
                                    M5Dial.Display.height() / 2);
      }
      
      void loop() {}
      
      teastainT 1 Reply Last reply Reply Quote 0
      • teastainT
        teastain @smartvisionary
        last edited by

        @smartvisionary The device is of course an S3, which has a permanent bootloader installed by Espressif at their factory, so it is 'brick-proof'.
        This error happens to me all the time and I see that there are three levels of loss, all with the same error message.

        1. unplug the device and plug it back in, try again.
        2. unplug and quit Arduino IDE and try again
        3. restart your computer, try again.

        Other techniques that generally work on S3 devices:
        Enter upload mode, two ways.
        or
        Erase all flash before sketch upload: Enabled.
        Run a simple program with a timer delay and Serial Monitor with changinging messages to test if it is functioning.

        bool ticktock = true;
        
        void setup() {
        Serial.begin (115200);
        }
        
        void loop() {
        ticktock = !ticktock;
          if (ticktock) {
            Serial.println("tick");  
          } else {
            Serial.println("tock");
          }
        delay (1000);
        }
        

        Hope this helps, -Terry

        Cheers, Terry!

        100% M5Stack addict with several drawers full of product!

        1 Reply Last reply Reply Quote 0
        • robskiR
          robski
          last edited by

          try to open M5Burner and load latest firmware, my M5Dial went to some unresponsive mode few times, press and hold boot button under sticker usually helps before its plugged in to usb - it is then detected under different com port.

          M5StickC, M5StickCPlus, M5StickCplus2,M5GO, M5Core, M5Tough, M5Core2, M5 Demo Board, M5Dial, M5Paper, M5Atom, M5Cardputer, M5StampS3, CoreMP135, StamPLC, AirQ

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

            You have to hold it until a green light come on. I uploaded a video for the card computer which uses the same stampS3

            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
            • J
              jofotoo @robski
              last edited by

              @robski Where exactly is this button?

              ajb2k3A robskiR 2 Replies Last reply Reply Quote 0
              • ajb2k3A
                ajb2k3 @jofotoo
                last edited by

                @jofotoo on the back next to the red grove connector

                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
                • robskiR
                  robski @jofotoo
                  last edited by

                  @jofotoo said in M5Dial can not upload:

                  @robski Where exactly is this button?

                  its under sticker in the middle (its shown on the sticker)
                  pressing it just doesn't feel /sounds same as reset button,
                  boot button is very delicate and hard to feel

                  M5StickC, M5StickCPlus, M5StickCplus2,M5GO, M5Core, M5Tough, M5Core2, M5 Demo Board, M5Dial, M5Paper, M5Atom, M5Cardputer, M5StampS3, CoreMP135, StamPLC, AirQ

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    ANON_USER @robski
                    last edited by

                    I had to press the boot button and the reset button together. Just documenting for myself in case I do this again, I always sweat brick when I do this!

                    Stamp.jpeg

                    1 Reply Last reply Reply Quote 0
                    • H
                      HappyUser
                      last edited by

                      On OSX i often have to unplug the usb cable in my laptop. Or even worse, switth from one usb to the other usb connector. Disturbing behaviour, but gotten used to it.

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