JAndrassy / ArduinoOTA

Arduino library to upload sketch over network to Arduino board with WiFi or Ethernet libraries
GNU Lesser General Public License v2.1
435 stars 89 forks source link

Support for Renesas MCUs #207

Closed vshymanskyy closed 12 months ago

vshymanskyy commented 1 year ago

As Arduino has released Portenta C33 and UNO R4, please consider adding these boards.

JAndrassy commented 1 year ago

yes I want to add at least the Uno R4. but it is not available in Europe yet. only as pre-order in some e-shops. Arduino offered samples for developers some months ago, but I didn't think it would be interesting.

mikeycoding commented 1 year ago

Hi JAndrassy,

the Uno R4 has been released and I already own one. The OTA support is heavily requested in the Arduino forums as well on other platforms.

Is there any ETA on when you will release support for the R4 WiFi? Thank you.

vshymanskyy commented 1 year ago

There is no active work being done on it, so why asking about ETA?

mikeycoding commented 1 year ago

There is no active work being done on it, so why asking about ETA?

Why so rude? I just wanted to kindly ask if the author has any plans to implement it and if so, whether there is an estimation on when it will be done.

JAndrassy commented 1 year ago

so I am working on it slowly. the Renesas SDK library bundled with the core is pre-build by Arduino without flash writing functions. so my next step is to install the Renesas toolchain and rebuild the lib. also the bundled BlockDevice Arduino library works only for Portenta C33 'code flash' write, but that is easy to fix. If Arduino works on Cloud OTA, they will have to make this steps too.

mikeycoding commented 1 year ago

You are awesome. Thank you for your hard work.

JAndrassy commented 12 months ago

done

yann-l commented 10 months ago

Is there any change to have it ported for Portenta C33 ?

JAndrassy commented 10 months ago

For C33 you can use the SFU library. The UpdateFromFile example show how to store the update binary for the SFU library.

If you want to upload from IDE with this library, you can use custom Storage as demonstrated by the CustomStorageNanoConnect example.

EDIT: OTA download example for C33 SFU just appeared as a PR https://github.com/arduino/ArduinoCore-renesas/pull/157

yann-l commented 10 months ago

Ho excellent! Indeed SFU is easy to use, but the download part were missing, and downloading a big file like an ota file with SSLClient is not possible (https://stackoverflow.com/questions/75941895/why-does-my-https-request-get-disconnected-on-large-files). My attempts with a 2-3ko file failed (over SSL only). an ota file is at lease 300ko.

Reading the new PR, they use SSLClient to download the file, so I'm a bit septic, but I'll give it a try soon!

JAndrassy commented 10 months ago

@yann-l, you want download from a server or upload from the IDE?

yann-l commented 10 months ago

I want to download from a server. https://github.com/arduino/ArduinoCore-renesas/pull/157 is perfect, but it needs https://github.com/arduino/ArduinoCore-renesas/pull/134 to work correctly. With both applied, I was able to make it work.