Download STM32Cube Ethernet IAP example

Transcript
Contents
UM1709
Contents
1
2
3
4
IAP overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.1
Theory of operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.2
IAP using the MCU Ethernet interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.3
Implementing IAP over the Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
IAP method using TFTP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.3.2
IAP method using HTTP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
IAP using TFTP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.1
TFTP overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.2
Implementing IAP using TFTP for STM32F4xx . . . . . . . . . . . . . . . . . . . . . 8
2.3
Using the firmware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
IAP using HTTP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.1
HTTP file upload overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.2
Implementing IAP using HTTP for STM32F4xx . . . . . . . . . . . . . . . . . . . . 10
3.3
Using the firmware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.1
5
1.3.1
Application settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.1.1
PHY interface configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.1.2
MAC and IP address settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.2
Evaluation boards settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.3
Firmware file organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.4
Building an image for IAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Appendix A FAQ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
6
2/19
A.1
How to choose between static or dynamic (DHCP) IP address allocation 17
A.2
How the application behaves when the Ethernet cable is disconnected. . 17
A.3
How to port the application on a different hardware . . . . . . . . . . . . . . . . . 17
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
DocID025701 Rev 3