Skip to content

Samd21 OTA over WiFi (ESP32) #114

Closed
Closed

Description

@Fahadk7

Hi,
I have been working on a project which requires samd21 and esp32 together for an on-field IoT device , connected over AWS
I am aware of how to perform OTA for esp32 with AWS libraries but need some guidance to do the same for SAMD21 connected over serial UART to esp32.
Any help is appreciated, as this is my first time working with SAMD chips
Will this library support the operation?
Do I need to download the firmware(in binary format) from AWS and store it in esp32 flash memory(16MB version) and then have the esp32 soft double reset the slave mcu SAMD and write the firmware over UART? Or what are the available alternatives?

Thanks in advance,
Fahad

Activity

  1. JAndrassy commented on Nov 30, 2021

    @JAndrassy
    Owner

    with ArduinoOTA the SAMD can do self-update, but only with an Arduino networking library (Enthernet, EthernetENC, WiFi101, WiFiNINA, WiFiEspAT). if you networking part is in the esp32 and the SAMD communicates with it over Serial then you can't use ArduinoOTA for SAMD.

    you could use the InternalStorage object of ArduinoOTA library to store and apply the update, but the transport of the binary is on you. see the OTASketchDownload example.

  2. Fahadk7 commented on Dec 18, 2021

    @Fahadk7
    Author

    Thanks for the advice Juraj! @JAndrassy

    Yes, you are correct, the networking part is on esp32. I had thought that I would download the binary into esp32 and send the data over to SAMD either in an array or JSON over serial communication

    Would this method work theoretically? (I understand the chance of data loss could I perform a checksum after receiving the data to verify?)

    and then as you suggested, store it in InternalStorage and apply it?

    I will try and work this with the reference example OTASketchDownload. Thanks a lot!

  3. Repository owner locked and limited conversation to collaborators on Dec 28, 2021
  4. converted this issue into a discussion #122 on Dec 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions