Programming In C/C - MEDIATEK LinkIt Smart 7688 Developer's Manual

Hide thumbs Also See for LinkIt Smart 7688:
Table of Contents

Advertisement

In addition to being used by the device application to access remote systems or cloud services
over the Internet, this mode is used to install software from OpenWrt to the board using
package
manager. In this scenario, your computer joins the same Wi-Fi network as the board and
connects to the board through SSH.
3.6.

Programming in C/C++

Native applications require toolchain programs to compile and link C/C++ source code into
executable binaries. While you can install development tools on LinkIt Smart 7688 Linux
environment directly, the board's 128MB of RAM may be insufficient for use and this can become a
limitation for native application developments.
To avoid running out of memory during native application developments, you should setup the
native application development environment in a more powerful host environment that enables
you to cross-compile the executable format of the LinkIt Smart 7688 target instead.
3.6.1.
Setting up C/C++ Programming Environment
The cross compilation toolchain is included in the software package of LinkIt Smart 7688 SDK and
supports Mac OS X and Linux. Windows isn't supported at the time of writing.
To use the toolchain, download and unzip it to a directory of your choice and denote the toolchain
CC_TOOLS
directory as
.
3.6.2.
Hello World Example in C
Open a text editor and create a file named helloworld.c.
1)
Copy and paste the example code below and save the file.
2)
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.
MediaTek LinkIt™ Smart 7688 Developer's Guide
Figure 13 LinkIt Smart 7688 in Station Mode
© 2015, 2016 MediaTek Inc.
opkg
Page 30

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents