🤖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

    UIFlow
    4
    5
    6.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.
    • R
      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
        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
          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
            m5stack
            last edited by

            替代文字

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

              @m5stack That worked! Thank you!

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