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

    Firmware update failed

    Scheduled Pinned Locked Moved WiPy 2&3
    8 Posts 3 Posters 2.1k Views 3 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.
    • A Offline
      acheesehead
      last edited by

      Got the latest firmware update tool. Powered WiPy down. Connected program pin to ground. Powered back on. Ran update tool. The tool says:
      Result
      The upgrade failed, please check the connections and try the steps again.
      This is the log of the upgrading process:
      Connecting..................................................
      Failure!

      Tried using the manual method:
      $ python bin/updater.py -t /cygdrive/c/tmp/1.5.1.b1-WiPy.tar.gz -p /dev/ttyS30
      Namespace(file=None, port='/dev/ttyS30', speed=115200, tar='/cygdrive/c/tmp/1.5.1.b1-WiPy.tar.gz')
      Connecting...........................................
      Exception: Failed to connect to ESP32: Timed out waiting for packet header, on line 140

      With the a serial console on and powering up, I get:
      rst:0x10 (RTCWDT_RTC_RESET),boot:0x2b (HSPI_FLASH_BOOT)
      flash read err, 1000
      Falling back to built-in command interpreter.
      OK

      I really need to find a way around this. We are designing a custom board around the WiPy 2.0 module.

      1 Reply Last reply Reply Quote 0
      • B Offline
        bucknall
        last edited by

        Hi @acheesehead, sorry to see you're having these issues and that your question was missed!

        I'd be happy to jump on a call to help you get sorted out with your firmware upgrade tomorrow if that might help!

        Let me.know!

        Cheers,

        Alex

        Developer Evangelist - Pycom

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

          Alex,

          Ok. Aren't there instructions on how to fix?

          Todd

          J B 2 Replies Last reply Reply Quote 0
          • J Offline
            jmarcelino @acheesehead
            last edited by jmarcelino

            @acheesehead
            Do you have anything else connected to the WiPy other than the serial and programming pin to ground?

            Also are you grounding the correct prgroamming pin? Check the drawing, it's P2

            http://www.pighixxx.com/test/2016/11/wipy/

            I'm asking because this error could happen if you ground the 4th pin from the bottom (P9) instead of the 4th from the top

            A 1 Reply Last reply Reply Quote 0
            • A Offline
              acheesehead @jmarcelino
              last edited by

              @jmarcelino Ah, I had a one-wire sensor signal line connected to P3. The pin is pulled up through a resistor. Removed the wire and the firmware update succeeded. It will require a schematic change on our board to have a jumper to disable the pull-up.

              Thanks!

              1 Reply Last reply Reply Quote 0
              • B Offline
                bucknall @acheesehead
                last edited by

                @acheesehead Definitely! I saw your email and wanted to prioritise getting you up and running!

                Here's a list of things to check -

                Are you using an expansion board? If so...

                • Are all of the headers attached to the expansion board (TX, RX, RTS, etc)?
                • Is the USB cable you're using power only (no data line)

                Developer Evangelist - Pycom

                A 1 Reply Last reply Reply Quote 0
                • A Offline
                  acheesehead @bucknall
                  last edited by

                  @bucknall I have a hodge-podge breadboard setup. No expansion board, External power supply, a bunch of breadboard stuff going on (serial port, I2C, analogs, one-wire sensors). The problem of an external pull-up resistor on P3 for a one-wire sensor is kind of annoying. I wonder if the internal pull-up is sufficient for the sensor.

                  J 1 Reply Last reply Reply Quote 0
                  • J Offline
                    jmarcelino @acheesehead
                    last edited by jmarcelino

                    @acheesehead
                    Correct, GPIO4 (P3 on the WiPy) is one of the 6 "strapping pins" on the ESP32 you need to be aware of when booting.

                    P9 • MTDI/GPIO12: internal pull-down
                    P2 • GPIO0: internal pull-up
                    P8 • GPIO2: internal pull-down
                    P3 • GPIO4: internal pull-down
                    P4 • MTDO/GPIO15: internal pull-up
                    P5 • GPIO5: internal pull-up

                    https://espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf#page16

                    P3 in particular seems to trigger a chip test mode

                    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