参考
MTK_AndesToolChains_Usage_v0.03_20140528.pdf
一、下载AndeSight
http://www.andestech.com/cn/download/andesight‐download.htm
二、 安装AndeSight
参考 AndeSight_v2.0.1_MCU_Installation_Guide_UM079_V1.1.pdf
三、 Update Tool chains
Decompress the MTK’s toolchains package “nds32le‐elf‐newlib‐v2j.rar”
to C:\Andestech\AndeSight14\toolchains\nds32le‐elf‐newlib‐V2j
The original one should be deleted or rename first.
修改C:\Andestech\AndeSight***\toolchains\nds32le‐elf‐newlib‐v2j\cygwin‐andes.bat
五、 Modify MT7681 configuration file
H:MT7681_IoT_Package_v1.50\Src\IoT_MT7681_PKG_v1.50\ mak\MT7681\compiler.mk
#For Windows TS
#TOOLCHAINS = /cygdrive/c/Andestech/BSPv310/toolchains/nds32le-elf-newlib-v2j/bin
TOOLCHAINS = /cygdrive/c/Andestech/AndeSight201MCU/toolchains/nds32le-elf-newlib-v2j/bin
CROSS = $(TOOLCHAINS)/nds32le-elf
六、 编译工程
点击“开始”-“所有程序”-“Andestech”-“AndeSight v2.0.1 MCU Official”-“Toolchains”-“nds32le-elf-newlib-v2j”
在弹出的窗口中运用shell命令进入工程根目录:
How to compile source code for Recovery FW , Sta FW, AP FW
make b=0 clean;make b=0 ‐> create recovery bin
make b=1 clean;make b=1 ‐> create sta bin
make b=2 clean;make b=2 ‐> create ap bin
七、 烧录程序
参考 MT7681_Uart_Firwmare_Upgrade_v0.06_20140517.pdf
另外,改变STA/AP模式也有讲到。
1、Power On while string“==> Recovery Mode” showing
input cmd AT#UpdateFW within 4 sec
then ‘ c’ shall be printed with 1sec interval
it means MT7681 start X-modem, and
ready to receive binary file from uart
2、Start X-modem on PC
“ 传输”-“ 发送Xmodem(N)”-这里选择 MT7681_sta_header.bin
一、下载AndeSight
http://www.andestech.com/cn/download/andesight‐download.htm
二、 安装AndeSight
参考 AndeSight_v2.0.1_MCU_Installation_Guide_UM079_V1.1.pdf
三、 Update Tool chains
Decompress the MTK’s toolchains package “nds32le‐elf‐newlib‐v2j.rar”
to C:\Andestech\AndeSight14\toolchains\nds32le‐elf‐newlib‐V2j
The original one should be deleted or rename first.
四、Config 按照文档《MTK_AndesToolChains_Usage_v0.03_20140528.pdf》的方法用
MTK的“nds32le‐elf‐newlib‐V2j”替换了原始的toolchain,启动后马上退出,没有打开窗口。
修改C:\Andestech\AndeSight***\toolchains\nds32le‐elf‐newlib‐v2j\cygwin‐andes.bat
@echo off @rem Batch file for Andes Technology Product to launch Cygwin set TOP=C:\Andestech\AndeSight201MCU\cygwin set TOP=%TOP:\=/% set TMP=C:\Andestech\AndeSight201MCU\cygwin\cygwin_tmp set PATH=C:\Andestech\AndeSight201MCU\cygwin\bin;%CD%\bin set HOME=%CD%\bin IF EXIST "C:\Andestech\AndeSight201MCU\cygwin\bin\bash.exe" set SHELL=/bin/bash "C:\Andestech\AndeSight201MCU\cygwin\bin\bash.exe" --login -i :END |
五、 Modify MT7681 configuration file
H:MT7681_IoT_Package_v1.50\Src\IoT_MT7681_PKG_v1.50\ mak\MT7681\compiler.mk
#For Windows TS
#TOOLCHAINS = /cygdrive/c/Andestech/BSPv310/toolchains/nds32le-elf-newlib-v2j/bin
TOOLCHAINS = /cygdrive/c/Andestech/AndeSight201MCU/toolchains/nds32le-elf-newlib-v2j/bin
CROSS = $(TOOLCHAINS)/nds32le-elf
六、 编译工程
点击“开始”-“所有程序”-“Andestech”-“AndeSight v2.0.1 MCU Official”-“Toolchains”-“nds32le-elf-newlib-v2j”
在弹出的窗口中运用shell命令进入工程根目录:
How to compile source code for Recovery FW , Sta FW, AP FW
make b=0 clean;make b=0 ‐> create recovery bin
make b=1 clean;make b=1 ‐> create sta bin
make b=2 clean;make b=2 ‐> create ap bin
七、 烧录程序
参考 MT7681_Uart_Firwmare_Upgrade_v0.06_20140517.pdf
另外,改变STA/AP模式也有讲到。
1、Power On while string“==> Recovery Mode” showing
input cmd AT#UpdateFW within 4 sec
then ‘ c’ shall be printed with 1sec interval
it means MT7681 start X-modem, and
ready to receive binary file from uart
2、Start X-modem on PC
“ 传输”-“ 发送Xmodem(N)”-这里选择 MT7681_sta_header.bin