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

    OSX Firmware uploader editing help and confusion.

    Scheduled Pinned Locked Moved FAQS
    4 Posts 2 Posters 6.9k Views 1 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.
    • ajb2k3A Offline
      ajb2k3
      last edited by ajb2k3

      I'm trying to modify the firmware.json file as per your recommendation but hit a large roadblock.

      I don't know what files I'm supposed to be adding to the list!

      {
              "name": "M5Camera-PSram",
              "version": "v01Cu",
              "path": "M5Camera",
              "commands": [
                  "--chip esp32 --port %port --baud %baud write_flash -z 0x1000 %PATH\\firmware_0x1000.bin",
                  "--chip esp32 --port %port --baud %baud --before default_reset --after no_reset write_flash -z --flash_freq 40m 0x150000 %PATH\\spiffs_image_0x150000.img"
              ]
          }
      

      Posting this now so I don't forget what I'm doing.
      Enjoy the holiday everyone.

      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!

      lukasmaximusL 1 Reply Last reply Reply Quote 0
      • lukasmaximusL Offline
        lukasmaximus @ajb2k3
        last edited by

        @ajb2k3 looks like your almost there, here's how mine is set up, you need to make sure you put the folder that contains all of the firmware files for the camera firmware into the firmwares folder with all the other firmwares. Then remember what you named the folder and put that folder in the path name. The m5 cam firmware requires three files (bootloader.bin, partitions_singleapp.bin and camera.bin) heres what mine looks like, I will try to get the burner uploaded with the firmware included.

                "name": "M5Cam-psram",
                "version": "M5Cam-psram",
                "path": "M5Flow\\M5Cam-psram",
                "commands": [
                    "--chip esp32 --port %port --baud %baud write_flash -z 0x1000 %PATH\\bootloader.bin 0x8000 %PATH\\partitions_singleapp.bin 0x10000 %PATH\\camera.bin"
                ]
            }
        ajb2k3A 1 Reply Last reply Reply Quote 0
        • ajb2k3A Offline
          ajb2k3 @lukasmaximus
          last edited by

          @lukasmaximus said in OSX Firmware uploader editing help and confusion.:

          @ajb2k3 looks like your almost there, here's how mine is set up, you need to make sure you put the folder that contains all of the firmware files for the camera firmware into the firmwares folder with all the other firmwares. Then remember what you named the folder and put that folder in the path name. The m5 cam firmware requires three files (bootloader.bin, partitions_singleapp.bin and camera.bin) heres what mine looks like, I will try to get the burner uploaded with the firmware included.

                  "name": "M5Cam-psram",
                  "version": "M5Cam-psram",
                  "path": "M5Flow\\M5Cam-psram",
                  "commands": [
                      "--chip esp32 --port %port --baud %baud write_flash -z 0x1000 %PATH\\bootloader.bin 0x8000 %PATH\\partitions_singleapp.bin 0x10000 %PATH\\camera.bin"
                  ]
              }
          

          Thanks, I was confused over the files and mem locations.

          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
          • ajb2k3A Offline
            ajb2k3
            last edited by

            Its broken again

            File "M5Burner.py", line 17, in <module>
                fw_list = json.loads(f.read())
              File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 338, in loads
                return _default_decoder.decode(s)
              File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 366, in decode
                obj, end = self.raw_decode(s, idx=_w(s, 0).end())
              File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 382, in raw_decode
                obj, end = self.scan_once(s, idx)
            ValueError: Expecting , delimiter: line 38 column 1 (char 1675)

            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

            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