Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
WINC1500 OTA Firmware Upgrade Example for SAMW25 XPlained Pro Documentation

Introduction

This example demonstrates the use of the WINC1500 with the SAM Xplained Pro board to perform an OTA Firmware upgrade. It uses the following hardware:

  • the SAM Xplained Pro.
  • the WINC1500 on EXT1.

Main Files

  • main.c : Initialize the WINC1500.

Usage

  1. You need to setup an HTTP server accessible via your Wi-Fi network. This HTTP server must have the "m2m_ota.bin" OTA firmware accessible at this location: http://SERVER_IP_ADDRESS/winc1500_ota.bin

Note:

  • the OTA firmware file is included in this project under the firwmare folder.
  • the server IP address must be set via the MAIN_OTA_URL macro from main.h file.
  1. Configure below code in the config main.h for AP to connect to.
    * #define MAIN_WLAN_SSID "DEMO_AP"
    * #define MAIN_WLAN_PSK "12345678"
    * #define MAIN_OTA_URL "http://192.168.0.137/winc1500_ota.bin"
    *
  2. Build the program and download it into the board.
  3. 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
*
  1. Start the application.
  2. In the terminal window, the following text should appear:
    * -- WINC1500 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
    * OTA Success. Press reset your board.
    *
    *
  3. In the second WINC1500 terminal window, the following text should appear:
    * (1)Flash ID = c21320c2, Size = 4 MBit
    * (1)Working Image offset = 0x3000 Rollback = 0x40000
    * (2)(M2M)(Efuse) successfully loaded from bank 1.
    * (2)EFUSE:MAC
    * (2)(M2M)MAC_ADDR = F8:F0:05:20:AE:BF
    * (3)NMI M2M SW VERSION 17.0
    * (3)NMI MIN DRV VERSION 17.0
    * (3)Built at Sep 23 2014 13:09:07
    *
  4. You can check the Firmware version and build time.

Compilation Information

This software was written for the GNU GCC compiler using Atmel Studio 6.2 Other compilers may or may not work.

Contact Information

For further information, visit Microchip.