Skip to content

Is there OTA documentation for this library? #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lukas-schwab opened this issue Apr 20, 2023 · 1 comment
Open

Is there OTA documentation for this library? #30

lukas-schwab opened this issue Apr 20, 2023 · 1 comment

Comments

@lukas-schwab
Copy link

I want to update my Arduino Opta using OTA/OTEthernet. This library seems capable to do it securely since there are obviously source files related to this. However, I can't seem to find any documentation or examples regarding this functionality. If someone could provide further insights in how it's done I'd highly appreciate it!

Also thanks for everyone working on this project. The Arduino community is outstanding.

@pennam
Copy link
Collaborator

pennam commented Apr 21, 2023

Hi @lukas-schwab,
thanks for your interest in this project. There is some work going on about secure OTA using mcuboot. Please take a look at this PR: arduino/ArduinoCore-mbed#640

To enable secure features of OPTA bootloader you need first to write the signature and encriprion keys like we do here: https://github.com/arduino/ArduinoCore-mbed/blob/f10a89530b5ccad3a6ec9163c37106a31fa333b2/libraries/STM32H747_System/examples/STM32H747_manageBootloader/STM32H747_manageBootloader.ino#L336-L340

Pay attention: if you mess up the keys you will not able to boot any sketch an you need a way to erase your flash (swd or other) to restore standard functionality.

I suggest you to take a look at this document first and to test secure featurs of the bootloader locally before try an OTA:

If you want to give a try to standard OTA you can use this library: https://github.com/arduino-libraries/Arduino_Portenta_OTA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants