OTA functionality in bootloader

Hi.

I'm using ATSAMD21G18A CPU with the arduino bootloader on, in several IoT projects.
I would like to get into OTA functionality.
I have looked at the ArduinoOTA library, and it looks interresting.
However as far as i can see there is no fall back functionallity if the OTA procedure fails.
What I would like is something than runsalong side the bootloader. So even if the OTA fails, the
bootloader remains intact.

I'm somewhat of a novice in Embedded Programming, so I'm not sure where to start.
Is there a way to only flash part of the MCU, and leave some of the code intact.

I would appreciate any help pointing me in the right direction, as I'm pretty lost
to what is the best and easiest way to handle this

Many Thanks in advance
Morten, Denmark

bbootloader is not overwritten with ArduinoOTA library.
if the OTA fails, the bootloader remains intact.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.