MediaTek LinkIt™ Connect 7681 Developer's Guide
© 2015, 2016 MediaTek Inc.
Page ii of iv
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.
Table of Contents
1.
Introduction ..................................................................................................................................................... 1
1.1.
MediaTek MT7681 ............................................................................................................................................... 1
1.2.
MediaTek LinkIt™ Connect 7681 Development Platform ................................................................ 2
1.3.
MediaTek LinkIt Connect 7681 SDK ........................................................................................................... 2
1.4.
LinkIt Connect 7681 HDK ................................................................................................................................ 4
1.5.
Join Our Ecosystem .......................................................................................................................................... 5
2.
Getting started .............................................................................................................................................. 6
2.1.
Environment ........................................................................................................................................................ 6
2.2.
Installing MediaTek LinkIt Connect 7681 SDK for Windows .......................................................... 7
2.3.
Installing MediaTek LinkIt Connect 7681 SDK for Linux ................................................................ 15
2.4.
Your First Project ............................................................................................................................................. 15
3.
Tools guide .................................................................................................................................................... 21
3.1.
make ...................................................................................................................................................................... 21
3.2.
Firmware uploader .......................................................................................................................................... 21
3.3.
Additional tools ................................................................................................................................................22
4.
Programming Guide ...................................................................................................................................23
4.1.
Creating software projects .........................................................................................................................23
4.2.
Source File Structure .................................................................................................................................... 24
4.3.
Firmware boot up flow .................................................................................................................................. 27
4.4.
User callbacks .................................................................................................................................................. 29
4.5.
Wi-Fi State Machine (Station mode) .......................................................................................................32
4.6.
API Interface Guide ........................................................................................................................................ 34
4.7.
Smart Connection Guide ............................................................................................................................. 36
5.
Using the APIs .............................................................................................................................................. 41
5.1.
Connecting MT7681 to an AP...................................................................................................................... 41
5.2.
Configuring MT7681 as an AP .................................................................................................................... 43
5.3.
Using uIP for TCP/IP operations............................................................................................................... 44
6.
Troubleshooting ........................................................................................................................................ 50
6.1.
Compile Errors ................................................................................................................................................. 50
6.2.
Firmware upload errors ................................................................................................................................ 51
6.3.
Use Log to debug ............................................................................................................................................ 52
6.4.
Unresponsive board........................................................................................................................................ 57
Appendix A
Flash Layout .................................................................................................................. 58