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

    Update fail in L01 OEM Invalid head of packet

    Scheduled Pinned Locked Moved LoPy
    6 Posts 2 Posters 437 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.
    • J Offline
      jdsantana
      last edited by

      Hi,

      I'm new here and facing problems uploading the new firmware to the L01 OEM module. I soldered it in my application board and verified I have communication using a FTDI USB to serial converter. I tried to upgrade the firmware as suggested but encountered the following error message using the latest stable release of the update tool (1.15.1):
      ErrProg.PNG
      I’m sure I’m accessing the firmware update mode by driving low the BTL input before releasing reset as I see the following print in Terminal when doing the procedure:
      fwupdatecap.PNG
      I have the following information from the module used:

      os.uname()

      (sysname='LoPy', nodename='LoPy', release='1.7.0.b1', version='v1.8.6-620-g3812d902 on 2017-05-24', machine='LoPy with ESP32', lorawan='1.0.0')

      binascii.hexlify(machine.unique_id())

      b'240ac40aad28

      I appreciate any advice on how to fix this issue.

      Note: I have a Pytrack with a LoPy4 on it and the updating process works perfectly.

      robert-hhR 1 Reply Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @jdsantana
        last edited by

        @jdsantana Use a lower baud rate for the update, like 115200.

        1 Reply Last reply Reply Quote 0
        • J Offline
          jdsantana
          last edited by

          Hi @robert-hh . Thanks for the reply. I tested at different baud rates and the result is the same. Finally the workaround I did was to byass the FTDI module in my application board and connect the TX, RX, Reset and Bootloader signals to the correspondent pins in the Pytrack's headers.

          Doing the above procedure the module L01 was able to program. I couldn't find why using a regular USB to serial converter doesn't work. Maybe the Update Toll needs the PIC18 used as USB bridge to work correctly? If later I have time I would like to check the differences between frames and hopefully find out why this happens.

          robert-hhR 1 Reply Last reply Reply Quote 0
          • robert-hhR Offline
            robert-hh @jdsantana
            last edited by

            @jdsantana No, the update tool does not need the PIC. I use a FTDI module for connection. But then you hav either to create the bootloader and reset stare manually (just pull the bootloader Pin GPIO0 low and isseu reset), or you have a "espressif" circuitry and use the command line updater pycom-fwtool-cli with the option -r --ftdi.

            J 1 Reply Last reply Reply Quote 0
            • J Offline
              jdsantana @robert-hh
              last edited by

              @robert-hh sorry for the late reply. I will place the two transistors driven by DTR and RTS to check your suggestion. Many thanks.

              1 Reply Last reply Reply Quote 0
              • J Offline
                jdsantana
                last edited by

                Using the CLI I was able to program the L01. Thanks @robert-hh ! Just to recap:

                • I use a L01 mounted in a custom board, which uses a FTDI as USB-Serial bridge
                • Implement the two transistors that drive reset and IOO lines through DTR and RTS lines (https://dl.espressif.com/dl/schematics/ESP32-Core-Board-V2_sch.pdf).
                • Using Pycom FW update tool does not work.
                • Using CLI commands for the flasher tool worked (pycom-fwtool-cli -v -p COM12
                  -r --ftdi flash -t LoPy-1.17.0.b1.tar.gz)

                Special note: There is a catch as noted in https://forum.pycom.io/topic/4518/firmware-update-elf-vs-tar , that the latest relases are in *.elf format and must be converted to tar.gz.

                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