Introduction
This example demonstrates the use of the WINC3400 with the SAM Xplained Pro board to perform an OTA Firmware upgrade. It uses the following hardware:
- the SAM Xplained Pro.
- the WINC3400 on EXT1.
Main Files
- main.c : Initialize the WINC3400.
Usage
- You need to setup an HTTP server accessible via your Wi-Fi network. This HTTP server must have the "m2m_ota_3400.bin" OTA firmware accessible at this location: http://SERVER_IP_ADDRESS/m2m_ota_3400.bin
Note:
- the OTA firmware file is included in this project under the firmware folder.
- the server IP address must be set via the MAIN_OTA_URL macro from main.h file.
- Configure below code in the config main.h for AP to connect to.
* #define
MAIN_OTA_URL "http://192.168.1.11/m2m_ota_3400.bin"
*
- Build the program and download it into the board.
- On the computer, open and configure a terminal application as the follows.
* Baud Rate : 115200
* Data : 8bit
* Parity bit : none
* Stop bit : 1bit
* Flow control : none
*
- Start the application.
- In the terminal window, the following text should appear:
* -- WINC3400 OTA firmware upgrade example --
* -- SAMXXX_XPLAINED_PRO --
* -- Compiled: xxx xx xxxx xx:xx:xx --
* Wi-Fi connected
* Wi-Fi IP is 192.168.0.10
* (APP)(INFO)OTA download succeeded
* OTA Success. Press reset your board.
*
*
Compilation Information
This software was written for the GNU GCC compiler using Atmel Studio 6.2 Other compilers are not guaranteed to work.
Contact Information
For further information, visit Microchip.