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

    Problem on updating Expansion board V3.1

    Scheduled Pinned Locked Moved Discussion
    14 Posts 11 Posters 1.2k Views 11 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.
    • shanefowler25S Offline
      shanefowler25 @hiyasbie
      last edited by

      Hi @hiyasbie, I'm having the same issue on my MacBook Air. Were you able to update your firmware using your MacBook Pro or was your workaround solution just use your friend's laptop w/Window's to update your expansion board?

      1 Reply Last reply Reply Quote 0
      • A Offline
        astro
        last edited by

        I have the same issue on a macbook when trying to update the Pytrack module:

        Match vendor ID from file: 04d8
        Match product ID from file: f014
        Opening DFU capable USB device...
        ID 04d8:f014
        Run-time device DFU version 0100
        Claiming USB DFU Runtime Interface...
        dfu-util: Cannot set alt interface zero

        catalinC 1 Reply Last reply Reply Quote 0
        • catalinC Offline
          catalin @astro
          last edited by

          @astro @hiyasbie
          I was also able to reproduce on a macOS 10.15.1. Sometimes executing the command with sudo dfu-util -D expansion31_0.0.11.dfu helps.
          Most likely, this due to some new Security & Privacy feature.

          Just to mention, it's not related to Expansion v3.1 manufacturing issues.

          Catalin,

          Have you checked out our docs for the answer? (Now with an easy search function) https://docs.pycom.io
          Check out our newly revamped device management platform, Pybytes! https://pybytes.pycom.io/

          1 Reply Last reply Reply Quote 0
          • M Offline
            msbettyhunt @hiyasbie
            last edited by

            @hiyasbie quite complex answer

            1 Reply Last reply Reply Quote 0
            • C Offline
              crbn60
              last edited by

              Am I missing the solution in this post? I still can't seem to update the board.

              1 Reply Last reply Reply Quote 1
              • G Offline
                Gijs
                last edited by

                As Catalin mentioned, the issue is with MacOS, any other operating system should work fine!

                1 Reply Last reply Reply Quote 0
                • M Offline
                  macfreek
                  last edited by

                  Sorry to reply to an older thread. The dfu-util problem was caused by a bug in libusb, that only occurs on macOS in libusb 1.0.23 or 1.0.24. Either downgrade to libusb 1.0.22, or upgrade to 1.0.25 (once that becomes available), or use a different platform (Linux or Windows).

                  catalinC 1 Reply Last reply Reply Quote 3
                  • catalinC Offline
                    catalin @macfreek
                    last edited by

                    Thanks a lot, @macfreek!

                    Catalin,

                    Have you checked out our docs for the answer? (Now with an easy search function) https://docs.pycom.io
                    Check out our newly revamped device management platform, Pybytes! https://pybytes.pycom.io/

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      Andrew Sinclair
                      last edited by

                      This worked for me on mac catalina
                      brew unlink libusb
                      brew unlink dfu-util
                      brew install libusb --HEAD
                      brew install dfu-util --HEAD

                      1 Reply Last reply Reply Quote 1
                      • R Offline
                        Rainer Treichel
                        last edited by Rainer Treichel

                        @Andrew-Sinclair said in Problem on updating Expansion board V3.1:

                        This worked for me on mac catalina
                        brew unlink libusb
                        brew unlink dfu-util
                        brew install libusb --HEAD
                        brew install dfu-util --HEAD

                        using my old macAir with HighSiera, this solved the problem
                        I had to 'brew uninstal'l the packages, unlink was not enough.
                        libusb was installed with an extra patch.

                        ==> Installing dependencies for libusb: m4, autoconf, automake and libtool
                        ==> Installing libusb dependency: m4
                        ==> Patching
                        ==> Applying secure_snprintf.patch
                        patching file lib/vasnprintf.c
                        Hunk #1 succeeded at 4858 (offset -11 lines).
                        ==> ./configure --prefix=/usr/local/Cellar/m4/1.4.18
                        

                        libusb: stable 1.0.24, HEAD
                        dfu-util installed without problems
                        and the result is:

                        Rainers-MacBook-Air% dfu-util -D pysense_0.0.8.dfu 
                        dfu-util 0.10-dev
                        
                        Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
                        Copyright 2010-2021 Tormod Volden and Stefan Schmidt
                        This program is Free Software and has ABSOLUTELY NO WARRANTY
                        Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
                        
                        Match vendor ID from file: 04d8
                        Match product ID from file: f011
                        Deducing device DFU version from functional descriptor length
                        Opening DFU capable USB device...
                        Device ID 04d8:f011
                        Device DFU version 0100
                        Claiming USB DFU (Run-Time) Interface...
                        Setting Alternate Interface zero...
                        Determining device status...
                        DFU state(2) = dfuIDLE, status(0) = No error condition is present
                        dfu-util: WARNING: Device already in DFU mode? (bState=2 dfuIDLE)
                        Claiming USB DFU Interface...
                        Setting Alternate Interface #0 ...
                        Determining device status...
                        DFU state(2) = dfuIDLE, status(0) = No error condition is present
                        DFU mode device DFU version 0100
                        Device returned transfer size 64
                        Copying data from PC to DFU device
                        Download	[=========================] 100%        16384 bytes
                        Download done.
                        DFU state(2) = dfuIDLE, status(0) = No error condition is present
                        Done!
                        
                        1 Reply Last reply Reply Quote 1

                        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