MT7681开发环境搭建

参考 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.

四、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
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值