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

    Getting to OTA DFU

    Scheduled Pinned Locked Moved Firmware
    fipy
    2 Posts 2 Posters 319 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.
    • C Offline
      criegel
      last edited by

      We're trying to get to the point where we can update a FiPy's firmware over-the-air.

      When would someone what to follow the instructions here:
      https://github.com/pycom/pycom-micropython-sigfox#steps-for-using-secure-boot-and-flash-encryption
      Specifically, am I correct in thinking the FiPy comes delivered with the bootloader already installed, and so the above is only necessary for newly manufactured hardware that has no bootloader on it? Or is the bootloader that ships with the FiPy not using Secure Boot/encryption and this process must be used to add these to protect the code from unintended eyes?

      Going through the instructions linked to above, our pyTrack board shows up as ttyACM0 instead of ttyUSB0 (we tried both Ubuntu and Debian). Executing:

      python $IDF_PATH/components/esptool_py/esptool/espefuse.py --port /dev/ttyACM0 burn_key flash_encryption flash_encryption_key.bin
      

      we get

      A fatal error occurred: Failed to connect to ESP32: Invalid head of packet ('\x08')
      

      Thanks for any guidance you can offer!

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

        You have to go through all steps, the bootloader is not encrypted from the beginning.

        I am not sure about the error. Did you boot into bootloader mode, if not, that might be your problem.

        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