M88WI6800-K SDK
User Manual
Reversion
Description
Status
Date
0.1
Initial version
20160321
0.2
Add firmware upgrade utility and SDK API
20160523
0.3
Update firmware utitliy and wireless API
20161212
0.4
Update timer and wireless API
20170926
This
document
contains
confidential
and
proprietary
information
that
belongs
to
Montage.
Using
any
of
the
information
contained
herein
or
imaging
all
or
part
of
this
document
by
any
means
is
strictly
forbidden
without
express
written
consent
of
Montage
1. M88WI6800 Introduction
The purpose of this document is to describe the usage of SDK and
demonstrate how to build your code in M88WI6800 SDK.
1.1 Overview
M88WI6800 is a System-on-Chip with Wi-Fi micro processor with
ADC/PWM/GPIOs/UART interfaces. The chip is designed to operate in
2.4 GHz frequency and full complies with IEEE 802.11b/g/n standard
based on 1T1R technology. It integrates a 32-bits high performance 32
bits micro-processor with over 200 MIPS and 320KB embedded RAM on
which all application programs executed. It also integrated with a 32 KHz
low-speed clock and power manage unit to operate on low power state. It
is an ideal solution for network enabled applications, such as internet of
things. A block diagram illustrating the components of M88WI6800 is
shown in Figure1.
1.2 Architecture
To simplify configuring connectivity of M88WI6800 chip, the
SDK provides WLAN static library of station mode or access point mode.
Real-time OS and TCPIP(LwIP) are also included in SDK library to
easily achieve multi-tasking and networking application. To control the
sensor or device M88WI6800 is incorporated into, PWM, GPIO, ADC
and UART APIs are provided to easily use. M88WI6800 SDK software
architechture is shown as follows.
1.3 Memory Map
Memory teyp
End address
Start address
Size
ROM Library
0x0007_FFFF
0x0006_8000
96KB
Reserved
0x0006_7FFF
0x0006_0000
32KB
DMA SRAM
0x0005_FFFF
0x0005_0000
64KB
SRAM
0x0004_FFFF
0x0000_0000
320KB
● Program can not run directly from serial flash.
● All program runs from SRAM or ROM.
● DMA SRAM is reserved for Hardware.
1.4 Serial Flash Layout
Offset
Section
Size
Description
0x0
Bootloader
64 KBytes
Do RF calibration and load
Primary firmware
0x10000
Config
64 KBytes
Store configuration
0x20000
User Firmware
320 KBytes
Primary firmware location
0x70000
OTA Firmware
320 KBytes
OTA firmware location
0xC0000
TBD
128 KBytes
User define
0xE0000
MP Firmware
128 KBytes
MP test firmware location
● Recommended size 1MB or more.
● Support maximum size to 16MB.
1.5 Firmware boot up sequence
M88WI6800 powers on and load bootloader image from serial
flash to embedded RAM and execute. “bootloader” image checks
integrity of user firmware on flash. If firmware is not exist or broken, it
enters firmware upgrading state and wait for upgrade command from
UART. Once firmware on flash passed verification of bootloader,
bootloader loads firmware to embedded RAM and execute.