Overview
========
The tftp OTA demo reference design is consist of 2 examples - SBL and APP.
This is the SBL example for OTA demo which will determine if running an old app directly or loading a new APP
from the external spifi flash to internal falsh for running by checking the info on spifi flash when power up.


Toolchain supported
===================
- Keil MDK 5.27

Hardware requirements
=====================
- lpc5460x IoT kit
- Mini/micro USB cable
- Personal Computer

Board settings
==============
No special requirement.

Prepare the Demo
================

1.  Connect a micro USB cable between the PC host and the USB port printed 'CN1 UART' on the target board.
2.  Open a serial terminal with the following settings (check devicd manager for the serial port number):
    - 115200 baud rate
    - 8 data bits
    - No parity
    - One stop bit
    - No flow control
3.  Download the program to the target board.

Running the demo
================
When the demo runs successfully, the log would be seen on the serial terminal like:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                   [WiFi tftp spifi OTA Demo - SBL]
running...

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Note:
- if no app found either on external or internal flash, it will intead print
  "No APP acquired! Please program it firstly!" on the terminal. Or if an updated app is found,
  it will print "New app found on spifi flash! Loading..." before print "running...".


Customization options
=====================

