Installing Mediatek Linkit Connect 7681 Sdk For Linux; Your First Project - Mediatek Labs LinkIt Connect 7681 Developer's Manual

Table of Contents

Advertisement

You're ready to start developing code for the MediaTek LinkIt Connect 7681 development
platform.
2.3.

Installing MediaTek LinkIt Connect 7681 SDK for Linux

Download the MediaTek LinkIt Connect 7681 SDK for Linux
extract its content to a suitable location.
Locate the tool chain file Andes_Linux_BSP320_Toolchains.tgz in the ToolChain folder, and
extract its contents (folder nds32le-elf-newlib-v2j) to the folder AndesTools.
Now locate the Src folder and make sure the three shell script files (flash_merge.sh,
flash_merge_xip164.sh and header.sh) are executable, by running chmod as follows:
linux:~/Src$chmod 755 *.sh
linux:~/Src$ls -l *.sh
-rwxr-xr-x flash_merge.sh
-rwxr-xr-x flash_merge_xip164.sh
-rwxr-xr-x header.sh
linux:~/Src$
Now locate Src\mak\MT7681\compiler.mk and modify the TOOLCHAINS setting to map to the
location of the nds32le-elf-newlib-v2j folder in your Linux user folders, as shown below.
#**************************************************************************
*****
# TOOLCHAINS DEFINE
#**************************************************************************
*****
#For Linux TS
TOOLCHAINS
=
Where 'xxxx' is your Linux account name.
Save the compiler.mk file and you're ready to start developing your code for the MediaTek LinkIt
Connect 7681 development platform.
2.4.

Your First Project

This section describes how to create, compile, and upload to the LinkIt Connect 7681 development
board a simple application that blinks the GPIO2 LED every second.
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.
/home/xxxx/AndesTools/nds32le-elf-newlib-v2j/bin
© 2015, 2016 MediaTek Inc.
MediaTek LinkIt™ Connect 7681 Developer's Guide
from the MediaTek Labs website
and
Page 15 of 65

Advertisement

Table of Contents
loading

Table of Contents