Mediatek Labs LinkIt Connect 7681 Developer's Manual page 19

Table of Contents

Advertisement

2.2.2.
Installing the MediaTek LinkIt Connect 7681 SDK for Windows
Download the MediaTek LinkIt Connect 7681 SDK for Windows
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:
modify the tool chain's configuration file, which is located at C:\<chosen folder>
1)
\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
Save the compiler.mk file.
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™ Connect 7681 Developer's Guide
=
/cygdrive/C/cygwin/nds32le-elf-newlib-v2j/bin
© 2015, 2016 MediaTek Inc.
from the MediaTek Labs website
Page 14 of 65

Advertisement

Table of Contents
loading

Related Products for Mediatek Labs LinkIt Connect 7681

Table of Contents