Skip to content

feat: ota loader for user sketch#401

Draft
gibix wants to merge 8 commits intoarduino:mainfrom
gibix:feat/support-ota
Draft

feat: ota loader for user sketch#401
gibix wants to merge 8 commits intoarduino:mainfrom
gibix:feat/support-ota

Conversation

@gibix
Copy link
Member

@gibix gibix commented Mar 18, 2026

/depends on #400 and #399

Work with [zephyr-ota](works with https://github.com/gibix/Arduino_Zephyr_OTA) porting of portenta_ota

Features

  • example with ethernet
  • example with progress download
  • user callback for ota compleated
  • http
  • https
  • zephyr sockets
  • ota
  • lzss compression

Boards

  • portentah7 (compile and tested)
  • opta
  • giga

Step to reproduce

  • rebuild the core for you board
  • compile an example (blink) and save the .ota file from the output dir
  • use ota-pack
  • run a simple http server python -m http.server 8000 in the directory that contains the sketch
  • flash the bootloader
  • flash the ota example sketch

@gibix gibix force-pushed the feat/support-ota branch 3 times, most recently from 9dd008b to e0fa7c5 Compare March 18, 2026 10:31
soburi and others added 7 commits March 18, 2026 11:38
- Remove duplicated `analogReadResolution` declaration
- Add the same #ifdef conditions used in the implementation
  to the `analogWriteResolution` as well.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
- Fixed input max value calculation (Needs to be -1 after shift)
- Clamp calculations are performed first, eliminating cast

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
Signed-off-by: Gilberto Conti <g.conti@arduino.cc>
skip the check for invalid or debug sketch and only consider
CONFIG_SHELL

Signed-off-by: Gilberto Conti <g.conti@arduino.cc>
Signed-off-by: Gilberto Conti <g.conti@arduino.cc>
Signed-off-by: Gilberto Conti <g.conti@arduino.cc>
support smart ota loader for portentah7 and opta. On boot check for ota
availability on flash fs, try to load and only if loading succed erese
the momory and replace with the new sketch.

Signed-off-by: Gilberto Conti <g.conti@arduino.cc>
@gibix gibix force-pushed the feat/support-ota branch 2 times, most recently from 649a3f9 to dee2b02 Compare March 18, 2026 11:02
Signed-off-by: Gilberto Conti <g.conti@arduino.cc>
@gibix gibix force-pushed the feat/support-ota branch from dee2b02 to 912181d Compare March 18, 2026 16:09
@CLAassistant
Copy link

CLAassistant commented Mar 18, 2026

CLA assistant check
All committers have signed the CLA.

@github-actions
Copy link

Built 0.53.2-0.dev+912181db

CI run PASSED 🟢

ArtifactBoardCoreTestsRAMSketchesWarningsErrors
zephyr_contrib ek_ra8d1 📗

11.9%

2--
frdm_mcxn947 3 🏷️

58.0%

2--
frdm_rw612 2 🏷️

83.0%

2--
✔️* zephyr_main giga 4 🏷️ ✅*

54.5%

448-
nano33ble 1 🏷️ ✅*

78.7%

228-
nano_matter 📗 ✔️*

⚠️ 85.7%

208(2*)
niclasense 2 🏷️ ✅*

⚠️ 87.3%

208-
opta 4 🏷️ ✅*

56.5%

548-
portentac33 3 🏷️ ✔️*

⚠️ 95.1%

568(8*)
portentah7 3 🏷️ ✅*

57.1%

588-
✅* zephyr_unoq unoq 📗 ✅*

26.4%

608-
Legend

BoardTestStatus description
🔥 🔥 Test run failed to complete.
🔴 Test completed with unexpected errors.
✔️* 🚫 Test completed with errors, but all are known/expected.
✅* 🟡 Test completed with some warnings; no errors detected.
🟢 Test passed successfully, with no warnings or errors.
🌑 🌑 Test was skipped.

@per1234 per1234 added the enhancement New feature or request label Mar 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants