![Mediatek Labs LinkIt Connect 7681 Developer'S Manual Download Page 19](http://html1.mh-extra.com/html/mediatek-labs/linkit-connect-7681/linkit-connect-7681_developers-manual_1760804019.webp)
MediaTek LinkIt™ Connect 7681 Developer's Guide
© 2015, 2016 MediaTek Inc.
Page 14 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.
2.2.2.
Installing the MediaTek LinkIt Connect 7681 SDK for Windows
Download the MediaTek LinkIt Connect 7681 SDK for Windows
from the MediaTek Labs website
and extract its content to a suitable drive.
Locate the tool chain file
Andes_Windows_Toolchains.rar
in the
ToolChain
folder, and extract
its contents (folder
nds32le-elf-newlib-v2j
) to
C:\cygwin
, the root folder of the Cygwin
installation.
If you’ve chosen to install Cygwin in a folder other than the default, you’ll need to:
1)
modify the tool chain’s configuration file, which is located at
C:\<chosen folder>
\nds32le-elf-newlib-v2j\cygwin-andes.bat
, so that the highlighted code in the
following code example matches the folder you installed Cygwin into:
@echo off
@rem Batch file for Andes Technology Product to launch Cygwin
set TOP=C:\cygwin
set TOP=%TOP:\=/%
set TMP=C:\cygwin\cygwin_tmp
set PATH=C:\cygwin\bin;%CD%\bin
set HOME=%CD%\bin
IF EXIST "C:\cygwin\bin\bash.exe" set SHELL=/bin/bash
"C:\cygwin\bin\bash.exe" --login -i
:END
Save the configuration file.
2)
modify the compiler’s configuration file, which is located in the SDK under
Src\mak\MT7681\compiler.mk
. Modify the highlighted section of the
TOOLCHAINS
setting
to map to the location of the
nds32le-elf-newlib-v2j
folder in the Cygwin installation
folder, as shown below.
#******************************************************************************
# TOOLCHAINS DEFINE
#******************************************************************************
#For Windows TS
TOOLCHAINS = /cygdrive/C/cygwin/nds32le-elf-newlib-v2j/bin
Save the
compiler.mk
file.