![Mediatek Labs LinkIt Connect 7681 Скачать руководство пользователя страница 32](http://html1.mh-extra.com/html/mediatek-labs/linkit-connect-7681/linkit-connect-7681_developers-manual_1760804032.webp)
MediaTek LinkIt™ Connect 7681 Developer's Guide
© 2015, 2016 MediaTek Inc.
Page 27 of 65
This document contains information that is proprietary to MediaTek Inc.
Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited.
4.3.
Firmware boot up flow
When source code is compiled the compiler generates
MT7681_all.bin
. — the software for
MT7681. This software consists of four images that provide features related to Loader,
Recover/Calibration, Station, and AP as described in Table 10.
Function
Image name
Purpose
Loader
MT7681_loader.bin
Responsible for loading images from
Flash to SRAM
Recovery/Calibration
MT7681_recovery_old.bin
Responsible for firmware upgrade by
UART and power and frequency
calibration on the factory production line.
Station
MT7681_sta.bin
Image for Station mode.
Access point (AP)
MT7681_ap.bin
Image for AP mode.
Table 10 The four MT7681 software images
4.3.1.
Boot up Sequence
The boot up flow for the MT7681, as shown in Figure 20, is as follows:
1)
Power on
MT7681 powers on and loads “Loader image”
2)
Loader
“Loader image” loads “Recovery Image” from Flash to SRAM. MT7681 then jumps to SRAM
address 0 and starts to run.
3)
Recovery/Calibration Mode
”Recovery/Calibration Image” will start a 4 seconds timer and wait for a command from
UART.
o
If no command is received before the timer expires, MT7681 proceeds to determining
whether to load Station or AP mode.
o
If
AT#UpdateFW
is received on the UART, MT7681 goes to recovery mode and starts the
X-modem protocol to wait new firmware. Using the firmware uploader, you can write
new firmware with header content (
MT7681_sta_header.bin
or
MT7681_ap_header.bin
) to MT7681. For more details, see section 3.2, “Firmware
uploader”.
4)
Determined Station or AP mode
“Loader image” reads the “Firmware Boot Index” setting stored in Flash (stored in the
Flash offset: 0x18001):, and load “station image” or “AP image” to SRAM:
o
If the value is 0x00 or 0xFF, “station image” is loaded to SDRAM.
o
If the value is 0x01, “AP image” is loaded to SDRAM.
It is possible to change the value of “Firmware Boot Index” during Recovery mode by
sending the AT command
AT#FLASH -s0x18001 -vX
where X is the new index value.
5)
Station mode
When “Station Image” is loaded, MT7681 is in station mode, it can connect to an AP-router,
and create TCP/UDP connection with other devices in the LAN or WLAN
6)
AP mode
When “AP Image” is loaded, MT7681 is in AP mode. Other station devices (phone, tablet, or