This application note provides implementation solutions for In-Application Programming (IAP) using the STM32F107 Ethernet communications interface. Two possible solutions are provided on top of the LwIP TCP/IP stack: IAP using TFTP (Trivial File Transfer Protocol) or IAP using HTTP (Hypertext Transfer Protocol).
This document provides implementation solutions for In-Application Programming (IAP) on the STM32F107 microcontroller using its Ethernet communication interface. It details two specific methods for upgrading firmware in the field: using the Trivial File Transfer Protocol (TFTP) and using the Hypertext Transfer Protocol (HTTP). Both solutions operate on top of the LwIP TCP/IP stack.
| Supported Microcontroller | STM32F107 |
|---|---|
| Communication Interface | Ethernet |
| TCP/IP Stack | LwIP v1.3.1 |
| TFTP Data Block Size | 512 bytes |
The implementation consists of a basic TFTP server on top of the LwIP stack that responds to file WRITE requests from a remote client.
The data block size is fixed to 512 bytes.