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

    OTA release issue

    Scheduled Pinned Locked Moved Pymakr
    3 Posts 3 Posters 63 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.
    • T Offline
      troy salt
      last edited by

      I'm trying to deploy new OTA releases, but the Pycom does not accept it and spits out this message:

      E (56) esp_image: image at 0x210000 has invalid magic byte
      Cannot load Firmware img in the active partition! .. Defaulting back to previous partition
      

      Anything I might be doing wrong? I've uploaded hundreds of releases before and never seen this before, nor am I doing anything differently.

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

        If I understand the OTA update correctly, there are two partitions (factory and OTA), and the OTA updater will automatically switch between them to decide which to update next, and which to run the firmware from (you can manually decide this using pycom.bootmgr())

        What I think went wrong in your case, is that the partition to update, and the currently running partition are the same, causing this error, perhaps by accident or a fault in the OTA system. But as you clarify, you've done it hundreds of times, so I guess its cosmic radiation flipping the one bit :)

        Best,
        Gijs

        1 Reply Last reply Reply Quote 1
        • A Offline
          Ahmed Mashaly
          last edited by

          I have the same problem with the same byte 0x210000 , also I tried pycom.bootmgr(boot_partition=pycom.OTA_0, fs_type=pycom.LittleFS, safeboot=True, reset=True) and there's nothing change , is there any another solution ?

          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