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

    switches from USB mode to app mode

    UIFlow
    3
    4
    5.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.
    • W4GHVW
      W4GHV
      last edited by

      I can successfully load and run examples ONCE in USB or internet mode. Then the M5core2 switches to app mode and I have to return to burner and switch the config back to USB.

      How to I eliminate this hassle and run several examples in sequence?

      Still awaiting help on my missing touch on my AWS core2.

      Bo W4GHV

      73, Bo W4GHV since '54

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

        Hello @W4GHV

        UiFlow offers two options: Run and Download. What you want is Run - see below explanation.

        Run is used to just try out the current code by temporarily downloading it into the device and executing it. Using Run does not switch mode - the device stays in Internet mode. If the device was to be reset or power cycled the code would be 'lost'.

        In contrast, Download permanently downloads the current code into the device, switches to App mode and executes the code. If the device was to be reset or power cycled the downloaded code would be executed again.

        Thanks
        Felix

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

        W4GHVW W 2 Replies Last reply Reply Quote 0
        • W4GHVW
          W4GHV @felmue
          last edited by

          @felmue Thank you VERY MUCH. Now I can have lots of fun/learning (without touch function, which is not working).
          Bo

          73, Bo W4GHV since '54

          1 Reply Last reply Reply Quote 0
          • W
            wsanders @felmue
            last edited by

            Also, if your sketch has any code that uses Wifi, your device will disconnect from UIflow. It will not reconnect when your sketch is finished. To work around this I keep the M5Burner open; when you click on "configure" it will reset the device via USB. Even then, your device will not connect right away, so go down to the lower left corner of the UIFlow window and clock on "Reconnect".

            "App Mode" and "Download" are most useful when you are done testing your code.

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