Skip to main content
Associate II
July 2, 2026
Question

FOTA update through Ethernet

  • July 2, 2026
  • 3 replies
  • 26 views

I am working on the STM32N6570-DK and would like to implement FOTA (Firmware Update) through Ethernet.

We are planning to perform the firmware update over a wired Ethernet connection, not through wireless or OTA.

Could you please suggest which protocol is better for firmware image update:

  • UDP
  • TCP
  • HTTP

Kindly let me know the recommended approach for reliable firmware updates over Ethernet.

Also, if there are any example projects or reference code available for implementing firmware update over Ethernet on STM32N6570-DK, please share them. It will be very helpful for our development.

3 replies

Andrew Neil
Super User
July 2, 2026

FOTA = Firmware Update Over The Air - so, if you’re using wired Ethernet, it’s not OTA.

 

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Associate II
July 2, 2026

Yes, I understand that FOTA means Firmware Update Over The Air, and since we are using a wired Ethernet connection, it is technically not OTA.

However, I believe you understand what I am trying to achieve. I am looking for guidance or an example implementation for firmware update through Ethernet on the STM32N6570-DK.

If you have any reference code, example projects, or recommended implementation approach for Ethernet-based firmware update, kindly share them. It would be very helpful for our development.

LCE
Principal II
July 2, 2026

I do this on a H733 with bare metal / lwIP / TCP / http / POST, works like a charm - except that the H733 has only 1 internal flash bank, so no read-while-write, which makes it a little “unresponsive” while updating, which got a little bit better after placing some functions into ITCM RAM.

Anyway, for something important like a firmware update, I would never choose UDP, then you have to implement some packet and error checking on your own.

It’s kinda funny how quick the POST file upload via a browser is, but then the internal erasing and flashing seems so slow.

Andrew Neil
Super User
July 2, 2026

There are various protocols specifically designed for “constrained” embedded devices; eg,

https://en.wikipedia.org/wiki/Constrained_Application_Protocol

https://en.wikipedia.org/wiki/OMA_LWM2M

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.