Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. mkaiser
    3. Topics
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Topics created by mkaiser

    • mkaiser

      Bootloader ATmega 2560 for OTA
      Development • bootloader 2560 ota • • mkaiser  

      7
      0
      Votes
      7
      Posts
      781
      Views

      NeverDie

      This explains how to do it: https://forum.arduino.cc/index.php?topic=610354.0 Fortunately, Optiboot 8 recently added a new function do_spm() which, from what I gather, you call from your code. It then takes the new compiled sketch binary that your OTA code is assumed to have placed at the end of flash, writes it to the beginning of flash, and then jumps execution to the start of the freshly written sketch. In a nutshell, it appears that's all there is to it. Prior to this, you had to write your own bootloader. It appears that now you can get by without having to. Instead, the heavy lifting is moved into your application code, where development is more familiar. That may not be as robust as having an unchanging, tried-and-true FOTA bootloader that's protected, but it does seem like an faster path to get a FOTA for a particular radio up and running across a range of MCU's without having to make a custom bootloader for each one. What a relief! I was on the verge of switching over to PICs because of this exact issue. Hopefully now I won't have to.
    • mkaiser

      Node with two transport layers: RS485 & Bluetooth?
      Development • • mkaiser  

      4
      0
      Votes
      4
      Posts
      538
      Views

      mfalkvidd

      I have not used ESP32 with MySensors myself, but @freynder has shared https://github.com/freynder/ESP32-MySensors-Gateway which might be a good resource. ESP32 is not very suitable for battery powered nodes, but except that it should work the same way as most other Arduino-compatible boards so most of the normal examples should work. The interface between a node and a gateway is the present and send functions. At https://www.mysensors.org/build you'll find multiple examples with wiring instructions and example code. If you haven't already, start with the getting started guide which will explain how MySensors works.