Giter Club home page Giter Club logo

sdk's Introduction

1. 当前 sdk 版本 v3.0.0 final,首次从 v2.2.8 升级需先擦除 Flash 或下载 FLS 文件,

2. 重点优化了低功耗模式,目前功耗有明显改善。

更新说明

请查看 ChangeLog

编译说明

1. 使用 Keil 编译

使用 MDK 打开 WM_SDK/tools/Keil/Project/WM_W600.uvproj ,点击 Project -》Build Target 即可编译

2. 使用 Eclipse 编译

打开 Eclipse 环境,右键项目名称,执行 Build Project 即可。

3. 使用控制台编译

使用linux平台编译时,需更新tools/makeimg 和 tools/makeimg_all 的执行权限,如 chmod 755 makeimg

常用指令

make // 执行编译

make clean //清理编译过程中的中间文件

make erase //擦除flash

make flash //编译并烧录 w600_gz.img

make flash_all //编译并烧录 w600.fls 固件

可带参数:

  • COMPILE=gcc

    默认gcc,可选armcc

  • TARGET=w600

    生成的bin文件名称,默认为w600

  • DL_PORT=COM6

    make flash 进行固件烧录时使用的端口号,默认COM1

  • DL_BAUD=2000000

    make flash 进行固件烧录时使用的波特率,默认 2Mbps,部分型号的串口不支持。

    支持 2000000, 1000000, 921600, 460800, 115200等不同速率及进行下载.

示例

  • 使用 armcc 进行固件编译

    make COMPILE=armcc //使用armcc编译

  • 使用 gcc 进行固件编译

    make COMPILE=gcc //使用gcc编译

  • 使用 gcc 进行固件编译并烧录,端口 COM8,下载波特率 1Mbps

    make flash COMPILE=gcc DL_PORT=COM8 DL_BAUD=1000000

Example 编译说明

请查看 README

其它

  • GCC版本下载:https://launchpad.net/gcc-arm-embedded/4.9/4.9-2014-q4-major/
  • 为缩短编译时间,platform 和 src 目录内的源码,不参与每一次的应用层编译,如修改该目录内文件,可运行对应目录下的make_xxx_lib.sh,更新/lib下的文件,下次编译时即可链接更新后的文件.
  • 可修改根目录下 Makefile ,USE_LIB=0,则默认使用源码编译。
  • 使用 armcc 编译时,需修改 tools/too_chain.def 下面的 Line 38:KEIL_PATH 路径和 Line 45:INC 路径。
  • 有任何疑问或问题反馈,可联系 [email protected]

sdk's People

Contributors

thingsturn avatar wdyichen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.