Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    pycom-fwtool-cli

    Scheduled Pinned Locked Moved Software Tools
    otherbugenhancement
    6 Posts 2 Posters 1.6k 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.
    • L Offline
      Lambert
      last edited by

      I have downloaded and installed the newest 'pycom_firmware_update_1.12.0.b0.exe' on my Windows 10 64bit laptop. With this installation I also got 'pycom-fwtool-cli.exe'.
      When after connecting my LoPy4 on its expansion board running the command 'pycom-fwtool-cli.exe list' I get:
      COM4 [USB Serial Port (COM4)] [FTDIBUS\VID_0403+PID_6015+DO0038KYA\0000]

      However all other commands, e.g.;

      • pycom-fwtool-cli.exe -p COM4 chip_id
      • pycom-fwtool-cli.exe -p COM4 wmac
      • pycom-fwtool-cli.exe -p COM4 write
      • pycom-fwtool-cli.exe -p COM4 nvs

      All result in:
      Running in FTDI mode
      Exception: Failed to connect to ESP32: Invalid head of packet ('\xe4'), on line 397

      What is going wrong?

      1 Reply Last reply Reply Quote 0
      • sebS Offline
        seb
        last edited by

        Have you put the module into bootloader mode? You need to connect a jumper cable between G23 and GND on the expansion board, then press the reset button on the Pycom module before running each command.

        1 Reply Last reply Reply Quote 0
        • L Offline
          Lambert
          last edited by

          Hi Seb,

          Thanks for the (very) fast response!

          Indeed that solved the problem. Looking again to the documentation (https://docs.pycom.io/chapter/advance/cli.html) this is stated, but I didn't notice it.

          Tip for the developers: make this requirement more visable in the doc and/or let the tool give this remark as error response!

          1 Reply Last reply Reply Quote 1
          • L Offline
            Lambert
            last edited by

            I expected to have an option to copy a single to/from my pyCom board bud such a command seems not to be present, why is a copy command not provided?

            sebS 1 Reply Last reply Reply Quote 0
            • sebS Offline
              seb @Lambert
              last edited by

              @lambert
              Do you mean copying single script files? This tool is lower level than that so currently does not parse the FAT file system but I can pass on the suggestion to the team working on this tool.

              In the meantime I can suggest tools like: mpfshell, rshell or ampy. These are command line tools with similar functionality to Pymakr and let you push and pull files via Serial

              L 1 Reply Last reply Reply Quote 0
              • L Offline
                Lambert @seb
                last edited by

                @seb
                Yes I meant copying single files.

                I installed mpfshell and this can do the job for me. I did use an FTP toool for this, bud when using the WiFi radio in my app I constntly had to switch between IP addresses.

                Thanks again.

                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
                • 1 / 1
                • First post
                  Last post

                Pycom on Twitter

                Pycom