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

    UIFlow 1 cannot download code a second time

    Scheduled Pinned Locked Moved UIFlow
    3 Posts 3 Posters 2.7k Views
    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.
    • B Offline
      brendonhatcher
      last edited by

      Hi

      Step 1:
      I have installed the driver.
      I have M5 Burner v3 beta.
      I can find the download for UIFlow_StickC_Plus2 v1.13.2.
      I have configured it as follows:
      Internet mode
      flow.m5stack.com
      Wifi credentials
      COM.X true

      Step 2:
      I burn the code to the device
      The M5Stack Stick C Plus 2 reboots and shows the splash screen (API key and "cloud").
      The device appears as online in my router connections table.
      On https://flow.m5stack.com/ I press the connect button and it shows as connected.

      Step 3:
      I add some basic blocs - e.g. change the background colour of the screen.
      I run it on the device - success
      I download it to the device - success

      Step 4:
      I make a change to the blocks.
      The device shows as disconnected, and pressing download shows "Upload code failed, maybe your device is offline check it and retry".
      The device also shows as offline on my router portal.

      Step 5
      I return to M5Stack Burn.
      I go back to configuration.
      The config mode is now set to App Mode.
      I change it back to Internet mode.

      Step 6:
      I can now connect and download

      What is App Mode and why does the device keep defaulting back to it?

      I should also let you know that I have the USB C cable attached throughout the above process.
      If I unplug the device after burning, it appears that this issue doesn't happen. The device stays connected and I can download repeatedly.

      Thanks
      Brendon

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

        You are using Download mode instead of run.
        Run only downloads to ram so that if you press the reset button the program gets wiped.
        If you click download it will store the code on the device and run it instead of UIFlow after a reboot.

        Also the connection to the server can be difficult at times.

        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 Offline
          robski
          last edited by robski

          you download firmware with wifi details in it so it connects to uiflow cloud,
          then you download your blockly project over cloud connection which overwrites what was in it from burner but possibly no wifi config in it,
          if...if you add wifi config in your blockly project then your unit should be still available via uiflow cloud and be online...
          use RUN for testing projects

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

          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