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

    recover m5 file from m5stack

    Scheduled Pinned Locked Moved UIFlow
    5 Posts 4 Posters 7.4k Views 2 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.
    • R Offline
      rebirth
      last edited by rebirth

      Last year I made an m5 project, put it on my m5stack, and saved the file on my pc.
      2 months ago, my hard drive from my pc crashed, so I lost the m5 file I saved on it.
      Now I wanted to make some adjustments to my file, but I don't have the source file anymore.
      Is there any way to get the file from my m5stack to open in UIFlow, so I can make the changes and redownload it to my m5stack?

      1 Reply Last reply Reply Quote 0
      • T Offline
        Thrasher
        last edited by

        You can try to connect to m5 with vs code, browse filesytem, find and copy your code file to hard drive

        1 Reply Last reply Reply Quote 0
        • world101W Offline
          world101
          last edited by

          Assuming you were running a recent version of uiFlow firmware on your device, another way is with ampy.

          ampy --port=/dev/tty.SLAB_USBtoUART --baud=115200 ls /flash/blocks
          
          ampy --port=/dev/tty.SLAB_USBtoUART --baud=115200 get /flash/blocks/{file}.m5f ~/Downloads/{file}.m5f
          

          Open the .m5f file into uiFlow. Or you could also check the /flash/apps directory and obtain the .py files, but you will not be able to load that directly into uiFlow and edit the blocks.

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

            替代文字

            R 1 Reply Last reply Reply Quote 1
            • R Offline
              rebirth @m5stack
              last edited by

              @m5stack That worked! Thank you!

              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