• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

.github/11-Mar-2024-129103

CMSIS/11-Mar-2024-359,876226,783

arch/11-Mar-2024-9372

boards/11-Mar-2024-223,865107,601

cmake/11-Mar-2024-555478

cmsis_drivers/11-Mar-2024-38,01130,247

components/11-Mar-2024-365,224266,462

devices/11-Mar-2024-11,404,2575,213,286

docs/11-Mar-2024-873646

drivers/11-Mar-2024-406,611210,661

manifests/11-Mar-2024-724,923688,557

middleware/11-Mar-2024-1,090,180953,493

project_list/11-Mar-2024-216,711216,658

scripts/kconfig/11-Mar-2024-13,3167,626

tools/11-Mar-2024-523421

utilities/11-Mar-2024-15,99011,268

.gitignoreD11-Mar-2024340 1212

CODE_OF_CONDUCT.mdD11-Mar-20245.4 KiB13498

CODE_OF_CONDUCT_CN.mdD11-Mar-20243.8 KiB8952

CONTRIBUTING.mdD11-Mar-20249.9 KiB184140

CONTRIBUTING_CN.mdD11-Mar-202410 KiB170124

COPYING-BSD-3D11-Mar-20241.9 KiB3428

KconfigD11-Mar-2024353 1613

LA_OPT_NXP_Software_License RTAudio.txtD11-Mar-202434.7 KiB155115

LA_OPT_NXP_Software_License.txtD11-Mar-202444.2 KiB212146

README.mdD11-Mar-20247.5 KiB10676

README_CN.mdD11-Mar-20248.4 KiB10677

SW-Content-Register.txtD11-Mar-202451.5 KiB732674

all_devices.cmakeD11-Mar-2024646 1916

middleware_baremetal.cmakeD11-Mar-2024247 127

west.ymlD11-Mar-20243 KiB121120

README.md

1# MCUXpresso SDK: mcux-sdk
2
3![NXP_logo](docs/nxp_logo_small.png)[EN](./README.md)|[中文](./README_CN.md)
4[![Version](https://img.shields.io/github/v/release/NXPMicro/mcux-sdk)](https://github.com/NXPmicro/mcux-sdk/releases/latest)
5[![Contributors](https://img.shields.io/github/contributors/NXPMicro/mcux-sdk)](https://github.com/NXPmicro/mcux-sdk/graphs/contributors)
6[![Issues](https://img.shields.io/github/issues/NXPMicro/mcux-sdk)](https://github.com/NXPmicro/mcux-sdk/issues)
7[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://github.com/NXPmicro/mcux-sdk/pulls)
8
9MCUXpresso SDK is a comprehensive software enablement package designed to simplify and accelerate application development with Arm® Cortex®-M-based devices from NXP, including its general purpose, crossover and Bluetooth™-enabled MCUs. This project provides an alternative way for user to achieve the source code of MCUXpresso SDK besides SDK builder and MCUXpresso IDE.
10
11The whole MCUXpresso SDK delivery is composed of separate project deliveries. The idea we split the whole SDK delivery to separate projects is inspired by [Zephyr](https://github.com/zephyrproject-rtos/zephyr), and the projects are planned as below:
12* Fundamental project for device/board enablement with shared drivers and components.
13* RTOS projects
14* Middleware projects
15* Examples project built on above deliveries
16
17In this way we want to benefit user from below aspects:
181. Avoid huge size in a single repository.
192. Provide flexibility for user to select needed projects to build their application.
203. Provide ability for user to fetch needed project version to build their application.
21
22To satisfy the expectation we leveraged [Zephyr west tool](https://docs.zephyrproject.org/latest/guides/west/index.html) which helps do multi-repository management and allow user to self create ```west.yml``` to select needed projects for downstream use.
23
24## Overview
25This project provides the fundamental support for all NXP hot parts:
26
27* Arm® CMSIS-CORE startup and device header files and CMSIS-DSP standard libraries
28* Open-source peripheral drivers that provide stateless, high-performance, easy-to-use APIs
29* Drivers for communication peripherals also include high-level transactional APIs for high-performance data transfers
30* High-quality software: all drivers and startup code are MISRA-C: 2012 compliant and checked with Coverity® static analysis tools
31
32**The project can work solely**, if you only want to get the fundamental support for SoC(s) or board(s), you just use the original Git way to clone and checkout the project.
33
34**The project is also the main repository to achieve the whole SDK delivery**, it contains the [west.yml](https://github.com/NXPmicro/mcux-sdk/blob/main/west.yml) which keeps description and revision for other projects in the overall MCUXpresso delivery. Currently available middleware sets are shown in below figure, user could click the middleware to navigate the middleware project repo.
35[![MCUXSDK Graph](docs/sdk_graph.svg)](https://htmlpreview.github.io/?https://github.com/NXPmicro/mcux-sdk/blob/main/docs/sdk_graph.html)
36You need to have both Git and West installed in order to get a new delivery of the whole SDK or update the existing SDK deliveries. You could follow below guide according to your scenario:
37* Clone/check-out a new delivery of whole SDK
38
39    Execute below commands to achieve the whole SDK delivery at revision ```${revision}``` and place it in a folder named ```mcuxsdk```
40    ```
41    west init -m https://github.com/NXPmicro/mcux-sdk --mr ${revision} mcuxsdk
42    cd mcuxsdk
43    west update
44    ```
45    Replace ```${revision}``` with any SDK revision(branch/tag/commit SHA) you wish to achieve. This can be ```main``` if you want the latest state, or any commit SHA or tag.
46
47* Update existing west cloned SDK whole delivery
48
49    Assume you have followed previous commands to clone/check-out whole SDK delivery to the west workspace mcuxsdk, then the main repository of SDK is located in mcuxsdk/core. If you would like to update/check-out to another revision, you need to first update the main repository to the expected revision, then update the west workspace:
50
51    When you would like to update SDK full delivery in the latest branch of main repository, follow below commands:
52
53     ```
54    cd mcuxsdk/core
55    git fetch
56    git rebase
57    west update
58    ```
59
60    If the ```${revision}``` is different revision from that used in main repository, such as different branch, different tag or different commit SHA, you could follow below commands:
61    ```
62    cd mcuxsdk/core
63    git fetch
64    git checkout ${revision}
65    west update
66    ```
67
68## Releases
69
70There are two types of release in the project. The MCUXpresso SDK release and GitHub Main SDK release. Below description uses **MCUX release** short for MCUXpresso SDK release, use **Main release** short for GitHub Main SDK release.
71
72### MCUX Release
73The MCUX release launches once a new release is available on [SDK Builder](http://mcuxpresso.nxp.com/). Users previously using [SDK Builder](http://mcuxpresso.nxp.com/) could easily find the exact same code base MCUX release with same 2.x.y version of SDK archive package, software examples build/run quality are guaranteed in the release. **MCUX releases will be prefixed with 'MCUX_'**, and every release will be merged into main branch to ensure main branch has all released boards/socs support.
74
75The "MCUX_" releases are categorized into mainline releases and NPI release.
76* For mainline releases, usually it's planned twice a year to do a global feature update for NXP hot parts. The x in 2.x.y version increments each time a mainline release goes out.
77* For NPI release, it aims to support a new soc product recently launched in the market. It is built with verified features in previous mainline release. The release name is suffixed with NPI name to identify it's an NPI release.
78
79Each MCUX release is made on previous mainline release tag/NPI release tag, thus user could easily check the difference between two releases using ````git diff```` command.
80
81### Main Release
82The Main release is a regular release made in main branch. It releases the latest code base and feature set on main branch, which is expected to include all the previous 'MCUX_' release content and new enablement on main branch for NXP hot parts. **Main releases will be prefixed with 'MAIN_'**.
83
84Below figure takes 2.9.0 and 2.10.0 release as an example to show the relationship between MCUX release and Main release.
85![Release Introduction](docs/Getting_Started/images/github_release_introduction.png)
86
87## Supported development tools and systems
88* Tools
89    * MCUXpresso IDE
90    * GCC ARM Embedded
91
92    For version of the tool used, please check the release notes in each release.
93* Systems
94
95    See [Supported development systems](docs/supported_development_systems.md) for the list of boards/socs currently support in this project.
96
97## Getting Started
98See [Getting Start Guide](docs/Getting_Started.md) to start explore the project.
99
100## License
101All SDK drivers, components, device support files, board support files in this project are under BSD-3-Clause license, license copy please check [COPYING_BSD-3](COPYING-BSD-3). The ARM CMSIS component is under Apache License 2.0, license copy check [Apache License 2.0](CMSIS/LICENSE.txt). License information for all components could be found in [SW-Content-Register.txt](SW-Content-Register.txt)
102
103## Contribution
104Contributions are greatly welcomed! For detail guideline of contribution please check [Contribution Guide](CONTRIBUTING.md).
105
106

README_CN.md

1# MCUXpresso SDK:mcux-sdk
2
3![NXP_logo](docs/nxp_logo_small.png)[中文](./README_CN.md)|[EN](./README.md)
4[![Version](https://img.shields.io/github/v/release/NXPMicro/mcux-sdk)](https://github.com/NXPmicro/mcux-sdk/releases/latest)
5[![Contributors](https://img.shields.io/github/contributors/NXPMicro/mcux-sdk)](https://github.com/NXPmicro/mcux-sdk/graphs/contributors)
6[![Issues](https://img.shields.io/github/issues/NXPMicro/mcux-sdk)](https://github.com/NXPmicro/mcux-sdk/issues)
7[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://github.com/NXPmicro/mcux-sdk/pulls)
8
9MCUXpresso SDK 是一个综合性软件支持包,帮助您使用恩智浦基于Arm® Cortex®-M内核的MCU(包括其通用、跨界和Bluetooth™ MCU)简化和加快应用开发。该项目为用户提供了除 SDK builder 和 MCUXpresso IDE 之外的另一种方式来获取 MCUXpresso SDK 的源代码。
10
11我们将MCUXpresso SDK软件支持包的内容拆分成多个子项目并发布到单独的代码仓库。子项目分类如下:
12* 提供处理器头文件,启动代码,板级配置模板和外设驱动代码的基础代码库,即当前项目。
13* 基于基础代码库,提供嵌入式实时操作系统源代码的项目。
14* 基于基础代码库的上层组件,又称为中间件项目。
15* 基于上述项目的板级应用代码库。
16
17拆分成多个子项目发布的想法主要是受到 [Zephyr](https://github.com/zephyrproject-rtos/zephyr) 的启发,用户可以从这种发布方式中得到以下好处:
18
191. 避免单个代码仓库过大。当前项目包含了MCUXpresso SDK 2.9.0版本以上所有的MCU的软件支持,如果所有内容放在一个代码仓库里面,会造成这个代码仓库过于臃肿,后续git的管理效率也会受到影响。
202. 用户可以灵活地根据应用的需要选择子项目。举个例子,如果用户的应用只需要SDK的驱动以及FreeRTOS,其他的内容不需要,那么用户可以只拉取基础代码库和FreeRTOS子项目的代码,不用拉取其他子项目的代码。
213. 用户可以根据需要获取不同子项目的代码版本。因为不同的项目放在自己的代码仓库里面,所以代码版本可以分开管理。如果用户只希望升级SDK驱动的代码,那么用户只需要升级基础代码库的版本就可以了。
22
23为了方便管理不同子项目的版本,我们利用 [Zephyr west 工具](https://docs.zephyrproject.org/latest/guides/west/index.html) 对多个代码仓库进行管理。使用west工具,用户也可以方便地创建自己的 ```west. yml``` 选择需要的子项目供应用使用。
24
25## 概述
26当前项目为所有恩智浦常用部件提供了基础支持:
27
28* Arm® CMSIS-CORE 启动和处理器头文件以及 CMSIS-DSP 标准库
29* 开源外设驱动程序,提供无状态、高性能、易于使用的 API
30* 通信外设的驱动程序还包括用于高性能数据传输的高级交易API,以及借助实时操作系统服务满足实时操作系统用例的实时操作系统包
31* 高质量软件:所有驱动程序和启动代码均符合 MISRA-C: 2012 标准并使用 Coverity® 静态分析工具进行了检验
32
33**当前项目可以单独运行**,如果你只想获得对处理器或开发板的基础支持,你只需使用原始的Git方式克隆和检出项目即可。
34
35**当前项目也是获取SDK所有项目的中央存储库**,它包含的[west.yml](https://github.com/NXPmicro/mcux-sdk/blob/main/west.yml)记录了所有可用的SDK子项目以及使用的版本。当前可以拿到的子项目如下图所示,用户可以单击任意的子项目来导航到该项目的代码仓库。
36[![MCUXSDK Graph](docs/sdk_graph.svg)](https://htmlpreview.github.io/?https://github.com/NXPmicro/mcux-sdk/blob/main/docs/sdk_graph.html)
37获取所有的SDK项目,你需要同时安装 Git 和 West,可以参考下面的命令来获取一份新的SDK所有项目或者更新已有的SDK项目:
38* 获取一份新的SDK所有项目
39
40    请执行下面的命令来获取SDK所有项目在软件版本 ```${revision}``` 的发布,并将其放在名为 ```mcuxsdk``` 的文件夹中。
41
42    ```
43    west init -m https://github.com/NXPmicro/mcux-sdk --mr ${revision} mcuxsdk
44    cd mcuxsdk
45    west update
46    ```
47
48    将 ```${revision}``` 替换为您希望获取的SDK软件版本(分支名/标签名/提交的SHA号)。如果您想要拿到最新状态的SDK,使用 ```main```。
49
50* 更新已有的SDK所有项目
51
52    假定你曾经执行上面的命令获取了一份新的SDK所有项目并放在west工作区mcuxsdk目录下, 这时中央存储库是被放到mcuxsdk/core目录。如果想要更新本地的SDK所有项目到另外一个指定的版本,需要先更新中央存储库到指定版本,然后对整个west工作区做更新:
53
54    想要拿到中央存储库所在分支上SDK所有项目的最新更新,参考命令如下:
55     ```
56    cd mcuxsdk/core
57    git fetch
58    git rebase
59    west update
60    ```
61    想要获取与中央存储库当前所在版本不同的更新,比如说不同的分支,不同的发布标签或者不同的提交序列号,参考命令如下:
62    ```
63    cd mcuxsdk/core
64    git fetch
65    git checkout ${revision}
66    west update
67    ```
68    将 ```${revision}``` 替换为您希望更新的SDK软件版本。
69
70## 软件发布
71当前项目设计了两种类型的发布。 MCUXpresso SDK 版本和 GitHub Main SDK 版本。下面的描述使用 **MCUX 发布** 是 MCUXpresso SDK 版本的缩写,使用 **Main 发布** 是 GitHub Main SDK 版本的缩写。
72
73### MCUX 发布
74MCUX 发布用来同步最新的SDK支持,一旦新版本的SDK在 [SDK Builder](http://mcuxpresso.nxp.com/) 上发布,我们就开始同步准备该版本MCUX 的发布。使用过[SDK Builder](http://mcuxpresso.nxp.com/) 的用户可以很容易地在当前项目中找到与与获取的 SDK 2.x.y 软件支持包代码一致的软件版本MCUX_2.x.y, 该软件版本发布的代码通过了编译和运行测试,有很好的质量保证。**MCUX 发布的版本将带有前缀“MCUX_”**,并且每个版本都将合并到main分支中以确保main分支包含所有已发布的处理器和开发板支持。
75
76“MCUX_” 发布的版本包含主要版本和 NPI(新处理器)版本。
77* 对于主要版本,对应NXP一年两次主要的软件发布。该发布对 NXP 热门的处理器进行全局功能更新。主要版本一般是2.x.0, 版本号x依次增加。
78* 对于 NPI(新处理器)版本,它对应NXP在市场上新推的处理器相应的软件发布。它一般是基于最近一次主要版本的软件构建的。版本名称后缀为 NPI 名称以标识它是 NPI 版本。
79
80每次新发布的 MCUX 版本都是基于最近一次的主要版本/NPI 版本上branch out出来准备的,因此用户可以使用````git diff`` 命令轻松检查两个版本之间的差异。
81
82### Main 发布
83Main 发布是在代码仓库main分支上发布的常规版本。该发布总是基于main分支上最新的软件代码,包括所有在此次Main发布以前的“MCUX_”发布内容以及恩智浦新处理器在main分支上的支持。**主要版本将以“MAIN_”为前缀**。
84
85下图以 2.9.0 和 2.10.0 版本为例,展示了 MCUX 版本和 Main 版本之间的关系。
86![发布介绍](docs/Getting_Started/images/github_release_introduction.png)
87
88## 支持的开发工具和硬件
89* 工具
90    * MCUXpresso IDE
91    * GCC ARM Embedded
92
93    对于所用工具的版本,如果是工作在main分支上,请查看最新一次软件发布的 [Release Notes](https://github.com/NXPmicro/mcux-sdk/releases/latest)。工作在特定版本上,查看[对应版本](https://github.com/NXPmicro/mcux-sdk/tags)的Release Notes。
94* 硬件支持
95
96    请参阅 [支持的硬件](docs/supported_development_systems_CN.md) 以获取该项目当前支持的开发板/处理器列表。
97
98## 入门
99请参考 [快速开始](docs/Getting_Started_CN.md)
100
101## 许可
102当前项目中的所有 SDK 驱动程序、组件、处理器支持文件、板级模板文件均在 BSD-3-Clause 许可下,许可请查看 [COPYING_BSD-3](COPYING-BSD-3)。 ARM CMSIS 组件在 Apache 许可证 2.0 下,许可检查 [Apache 许可证 2.0](CMSIS/LICENSE.txt)。SDK所有项目的许可信息可以在 [SW-Content-Register.txt](SW-Content-Register.txt) 中找到。
103
104## 贡献代码
105非常欢迎各位开发者贡献代码!有关贡献代码的详细指南,请参考 [贡献代码](CONTRIBUTING_CN.md)。
106