Coder Social home page Coder Social logo

elevenperfect / mt2625-rt-thread Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lshw/mt2625-rt-thread

0.0 0.0 0.0 96.4 MB

nbiot rtt mt2625 opencpu

License: Apache License 2.0

Shell 1.82% Ruby 0.01% C++ 1.13% Python 2.33% Perl 0.04% C 90.24% Objective-C 0.10% Assembly 2.63% CSS 0.04% TeX 0.01% Makefile 0.62% HTML 0.19% CMake 0.58% Batchfile 0.01% DIGITAL Command Language 0.06% Module Management System 0.01% Yacc 0.07% Lex 0.03% M4 0.08% Roff 0.02%

mt2625-rt-thread's Introduction

MT2625 openCPU SDK for RT-Thread 使用说明

请在使用该 SDK 前仔细阅读该使用说明。如果你已经了解该文档所有内容,请进一步阅读用户指南

本软件包是联发科 MT2625 SDK 在 RT-Thread 操作系统上的移植实现。旨在让用户基于 RT-Thread 物联网生态中丰富组件和软件包快速开发 NB-IOT 应用,降低 NB-IOT 的开发难度。

该 openCPU 版本 SDK 允许用户自定义应用程序(二次开发),用户程序运行在 MT2625 SOC 芯片上,不需要 AT 指令,不需要外接 MCU。

基于该 SDK,开发者无需关心 NB-IOT 的技术细节,使用 BSD socket 标准接口进行网络应用开发,如同开发以太网类网络应用。

请继续阅读文档来了解如何使用该 SDK。

工具链

该 SDK 仅支持 GCC 编译,必须使用 gcc-arm-none-eabi-4_8-2014q3 版本的工具链。

默认工具链位置为 SDK 根目录下的 tools/toolchain 文件夹中,请在使用前确认工具链是否存在。

目录结构如下:

SDK_ROOT
    +- tools
        +- toolchain
            +- gcc-arm-none-eabi-4_8-2014q3

编译

该 openCPU SDK 使用 scons 工具构建源码,需要使用 rt-thread 提供的 ENV 工具。请先正确安装 rt-thread ENV 工具

该 SDK 为用户提供了一个基本工程,目录结构如下:

SDK_ROOT
    +- project
        +- nbiot_demo

使用 rt-thread 提供的 ENV 命令行工具,进入上述 nbiot_demo 项目目录下,运行 scons 命令编译,如下所示:

单核编译:

$ scons

多核编译(-j 后面的数字是电脑 CPU 的核数):

scons -j8

串口配置

注意,串口绑定关系不能修改。

默认串口波特率为 115200。默认的串口绑定关系如下所示:

MT2625 串口号 串口功能 对应的 M5311 串口
UART0 RT-Thread Finsh UART2
UART1 AT UART1
UART2
USB COM1 GKI
USB COM2 ULS

注意

目前,该 openCPU SDK 仅适配了中移物联网 M5311 模块对 MT2625 的 GPIO 映射。如果你使用其它厂商的 MT2625 模块,需要重新映射 GPIO。如有需求,请联系 骑士智能科技

mt2625-rt-thread's People

Contributors

lshw 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.