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 firmware update not working for 1.20.2.rc7

    Scheduled Pinned Locked Moved Pybytes IoT platform
    3 Posts 3 Posters 91 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 troy salt

      Note this is only an issue for updating to 1.20.2.rc7 (1.20.2.rc6 is okay)

      I'm trying to do an OTA firmware update to 1.20.2.rc7 from 1.20.1.r2, and I get the following error:

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

      Here is the full log:

      Pycom MicroPython 1.20.1.r2 [v1.11-06dfad0] on 2019-11-30; WiPy with ESP32
      Pybytes Version: 1.3.0
      Type "help()" for more information.
      >>> Requesting: downloads/appimg/firmware_WiPy_1.20.2.rc7.bin to software.pycom.io:443 with SSL? True
      Wrapping socket
      Sending request
      start
      ets Jun  8 2016 00:22:57
      
      rst:0x7 (TG0WDT_SYS_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
      configsip: 0, SPIWP:0xee
      clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
      mode:DIO, clock div:1
      load:0x3fff8020,len:8
      load:0x3fff8028,len:2136
      load:0x4009fa00,len:19880
      entry 0x400a05d0
      E (56) esp_image: image at 0x210000 has invalid magic byte
      Cannot load Firmware img in the active partition! .. Defaulting back to previous partition```
      
      It then resets into the original firmware.
      
      Any ideas?
      1 Reply Last reply Reply Quote 0
      • catalinC Offline
        catalin
        last edited by

        hi @troy-salt, we are looking into this issue.

        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
        • S Offline
          salal
          last edited by

          Hi @troy-salt

          I tried the OTA firmware update on WiPy from 1.20.1.r2 to 1.20.2.r7 using OTA firmware update example and the update worked fine. Please refer to this example (https://docs.pycom.io/tutorials/all/ota/) for the exact steps to perform an OTA update.

          The image file that you have in the flash seems to be corrupt. Make sure that the file is written correctly.

          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