MediaTek LinkIt™ Connect 7681 Developer's Guide
© 2015, 2016 MediaTek Inc.
Page 21 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.
3.
Tools guide
This section provides details on the use of the tools included in the MediaTek LinkIt Connect
7681 SDK.
3.1.
make
make
provides for building a collection of source code files into firmware for MT7681. The utility
provides for four types of builds:
•
make -b=0
to build recovery mode firmware.
•
make -b=1
to build station mode firmware (the default build).
•
make -b=2
to build AP mode firmware.
•
make clean;make
to perform a full rebuild after cleaning all object files, useful
particularly after making configurations in
makefile
or header files.
make
should be run from a project’s source root folder (for example
*:\LinkIt_Connect_7681_SDK\Src\
). Each build will create a log file, as follows:
•
out\sta\build_sta.log
for a Wi-Fi station image build.
•
out\sta\build_ap.log
for an access point (AP) image build.
3.2.
Firmware uploader
The firmware uploader is provided as an executable on Windows (
mt7681_uploader.exe
) and
source python script on Windows and Linux (
mt7681_uploader.py
). To execute the python script
on Windows python 2.x is required — Linux provides native python support.
The syntax of the uploader for Windows are:
> mt7681_uploader.exe -f out\sta\MT7681_sta_header.bin -c COM7
Or
> python mt7681_uploader.py -f out\sta\MT7681_sta_header.bin -c COM7
While on Linux its:
> python mt7681_uploader.py -f out/sta/MT7681_sta_header.bin -c
/dev/ttyUSB0
The supported command switches are shown in Table 6.
Switch
Function
-h: --help
Displays a help message and exits the command
-f: BIN_PATH
Defines the path of the bin file to be uploaded
-c: COM_PORT
Defines the COM port the bin file will be sent to in the format COMx, for
example COM1, COM2, and alike
-b: BAUD_RATE
Defines the Baud rate of the connection. Can be any valid baud rate, such
as 9600 or 115200 (default)
Table 6 uploader command switches