How to use Wi-Fi module
EMW316x Firmware Update Steps
上海庆科信息技术有限公司
Agenda
• Contents of the EMW316x internal flash
• Update using the MXCHIP bootloader
• Update using the ST ISP programmer
• Update using J-link and J-Flash
• Update using the build-in web server (OTA)
上海庆科信息技术有限公司
EMW316x Flash Memory Map
1M internal Flash
256k bytes
RF Driver(D)*
Start
End
Type Size (bytes)
Content
0x08000000
0x08003FFF
0x08004000
0x0800BFFF
0x0800C000
0x08060000
B
P
A
16k
32k
336k
0x08060000
0x080C0000 - 384k
Bootloader
OTA info,user para.
User application
OTA temporary
storage
0x080C0000
0x080FFFFF
D
256k
RF Driver
384k bytes
Temporary storage for
OTA purpose
336k bytes
mxchipWNetTM
Firmware(A)*
32k bytes
APP Parameters(P)*
16k bytes
MXCHIP bootloader(B)*
* Content Type
0x080C0000
0x08060000
0x0800C000
0x08004000
0x08000000
上海庆科信息技术有限公司
The Most Important Flash Parts
Wrong content will make the module not function
16k bytes
MXCHIP bootloader(B)*
• First executed code after reset
• Update flash contents using serial
port
• Boot to mxchipWNet Firmware
• Download from www.mxchip.com
• Source code provided
• Current version: Version 4.0.1_WDG
上海庆科信息技术有限公司
336k bytes
mxchipWNetTM
Firmware(A)*
• User’s main application or
firmware provided by MXCHIP
256k bytes
RF Driver(D)*
• RF driver, loaded to RF chip after
initialized
• Download from www.mxchip.com
The version of the two parts should matched
Comparison
Update Method
Existed flash content
MXCHIP bootloader MXCHIP Bootloader
ST ISP programmer
ARM Emulator
No
No
OTA
Bootloader
mxchipWNetTM Firmware
RF driver
Module HW
requirement
UART
MXCHIP BOOT pin*
UART
ST BOOT pin*
SWD(JTAG)
Wi-Fi
Extra hardware Special software
Speed
Serial cable
Serial terminal
Serial cable
ISP programmer
from ST micro
Low
Low
J-link
No
J-Flash
Middle
User designed
OTA server
High
Module
EMW3161
EMW3162
MXCHIP BOOT pin*
ST BOOT pin*
PIN 36
PIN 16
PIN 30
PIN 27
MXCHIP BOOT pin has connected to a switcher on EMW-380-S2 test board
上海庆科信息技术有限公司
Agenda
• Contents of the EMW316x internal flash
• Update using the MXCHIP bootloader
• Update using the ST ISP
• Update using J-link and J-Flash
• Update using the build-in web server (OTA)
上海庆科信息技术有限公司
Update using the MXCHIP Bootloader (1)
Hardware Connection
EMW316x module
Mini USB cable
EMB-380-S2
BOOT(SW1)
STATUS(SW2)
L
L
H
L
H
L/H
Operation mode
Factory mode
Firmware update mode
Working mode
上海庆科信息技术有限公司
Update using the MXCHIP Bootloader (2)
Software Preparation
• Serial port terminal /w Ymodem file transmission
SecureCRT®
SecureCRT for Windows, Mac, and Linux provides rock-solid terminal
emulation for computing professionals, raising productivity with advanced
session management and a host of ways to save time and streamline repetitive
tasks. SecureCRT provides secure remote access, file transfer, and data
tunneling for everyone in your organization.
• USB driver: http://www.ftdichip.com/Drivers/VCP.htm
• A virtual serial port will appear after the driver is installed
Processor Architecture
Operating System Release Date
x86 (32-bit)
x64 (64-bit)
Windows 8.1
2013-10-21
Windows*
2013-08-01
Linux
2009-05-14
Mac OS X
2012-08-10
2.08.30
2.08.30
1.5.0
2.2.18
2.08.30
2.08.30
1.5.0
2.2.18
上海庆科信息技术有限公司