• Home
  • Annotate
  • current directory
Name Date Size #Lines LOC

..21-Aug-2025-

applications/21-Aug-2025-

board/21-Aug-2025-

figures/21-Aug-2025-

xip/21-Aug-2025-

.config A D21-Aug-202546.5 KiB1,4261,316

.ignore_format.yml A D21-Aug-2025142 75

Kconfig A D21-Aug-2025206 117

README.md A D21-Aug-20259.5 KiB208123

README_zh.md A D21-Aug-20258.6 KiB232135

SConscript A D21-Aug-2025311 1511

SConstruct A D21-Aug-20253 KiB8970

evkmimxrt1060_sdram_init.mac A D21-Aug-20259.1 KiB259229

project.ewd A D21-Aug-202554.5 KiB1,5471,546

project.ewp A D21-Aug-202538.1 KiB1,3701,369

project.eww A D21-Aug-2025161 117

project.uvoptx A D21-Aug-20255.7 KiB185178

project.uvprojx A D21-Aug-202545.4 KiB1,2471,246

rtconfig.h A D21-Aug-20258.3 KiB41982

rtconfig.py A D21-Aug-20256.3 KiB201155

template.ewd A D21-Aug-202554.5 KiB1,5471,546

template.ewp A D21-Aug-202537.3 KiB1,0751,074

template.ewt A D21-Aug-2025103.6 KiB1,4271,426

template.eww A D21-Aug-2025162 117

template.uvoptx A D21-Aug-20255.7 KiB185178

template.uvprojx A D21-Aug-202514.5 KiB393387

README.md

1# NXP MIMXRT1060-EVK BSP Introduction
2
3**英文** | [中文](README_zh.md)
4
5This document records the instruction of the BSP (board support package) that provided by the RT-Thread development team for the MIMXRT1060-EVK development board.
6
7The document is covered in three parts:
8
9- Resources Introduction
10- Quickly Get Started
11- Advanced Features
12
13By reading the ***Quickly Get Started*** section developers can quickly get their hands on this BSP and run RT-Thread on the board. More advanced features will be introduced in the Advanced Features section to help developers take advantage of RT-Thread to drive more on-board resources.
14
15## 1 Resources Introduction
16
17[![board](https://github.com/RT-Thread/rt-thread/raw/master/bsp/imxrt/imxrt1060-nxp-evk/figures/MIMXRT1060EVKB.jpg)](https://github.com/RT-Thread/rt-thread/blob/master/bsp/imxrt/imxrt1060-nxp-evk/figures/MIMXRT1060EVKB.jpg)
18
19Features:
20
21- MCU: MIMXRT1062DVL6A, 600MHz, 4096KB FLASH, 1024KB RAM
22- External RAM: IS42S16160J-6BLI, 32MB
23- External FLASH: S26KS512SDPBHI02, 64MB
24- Common-used Peripherals:
25  - LED: One, D18(Green)
26  - Button: One
27- Common-used Interfaces: USB 、SD Card、Ethernet、LCD, etc
28- Debugging interface, standard JTAG/SWD
29
30### 1.1 For more details about these boards, please refer to [NXP Official Website](https://www.nxp.com/part/MIMXRT1060-EVK#/)
31
32
33
34
35
36### 1.2 Peripherals Condition
37
38Each peripheral supporting condition for this BSP is as follows:
39
40| **On-board Peripherals** | **Support** | **Remark**                            |
41| ------------------------ | ----------- | ------------------------------------- |
42| USB                      | √           |                                       |
43| SPI Flash                | √           |                                       |
44| Ethernet                 | √           |                                       |
45| **On-chip Peripherals**  | **Support** | **Remark**                            |
46| GPIO                     | √           | PA0, PA1... PK15 ---> PIN: 0, 1...176 |
47| UART                     | √           | UART1                                 |
48| SPI                      |             | Coming Soon                           |
49| I2C                      |             | Coming Soon                           |
50| SDIO                     |             | Coming Soon                           |
51| RTC                      |             | Coming Soon                           |
52| PWM                      |             | Coming Soon                           |
53| USB Device               |             | Coming Soon                           |
54| USB Host                 |             | Coming Soon                           |
55| IWG                      |             | Coming Soon                           |
56| **Expansion Module**     | **Support** | **Remark**                            |
57| LVGL                     | √           |                                       |
58
59### 1.3 Quickly Get Started
60
61This BSP provides MDK4, MDK5, and IAR projects for developers and it supports the GCC development environment. Here's an example of the MDK5 development environment, to introduce how to run the system.
62
63Then, the necessary libraries should be pulled; otherwise, the compilation will fail.
64
65```bash
66    pkgs --update
67```
68
69### 1.4 Hardware Connection
70
71Use a cable to connect the development board to the PC and turn on the power switch.
72
73### 1.5 Compile and Download
74
75Double-click the `project.uvprojx` file to open the MDK5 project, compile and download the program to the development board.
76
77> The project defaults to use the CMSIS-DAP emulator to download the program, and as we're connecting the development board via USB, click the Download button can directly download the program to the development board
78
79### 1.6 Running Results
80
81After the program is successfully downloaded, the system runs automatically. Observe the running results of the LED on the development board, the LED will light in 1Hz.
82
83Connect the corresponding serial port of the development board to the PC, and when the corresponding serial port ( 115200-8-1-N) is opened in the terminal tool, the output information of RT-Thread can be seen when the device is reset:
84
85```
86 \ | /
87- RT -     Thread Operating System
88 / | \     4.1.0 build Mar 10 2022 18:07:41
89 2006 - 2022 Copyright by RT-Thread team
90msh >
91```
92
93### 1.7 **Advanced Features**
94
95This BSP only enables GPIO and UART1 by default. If you need more advanced features such as SD Card, Flash, or you need to configure the BSP with RT-Thread homegrown [ENV tool](https://www.rt-thread.io/download.html?download=Env), as follows:
96
971. Open the ENV tool under the specific BSP folder;
982. Enter `menuconfig` command to configure the project, then save and exit;
993. Enter `pkgs --update` command to update the package;
1004. Enter `scons --target=mdk4/mdk5/iar` command to regenerate the project.
101
102More details about NXP MIMXRT1060-EVK , check out [Here](https://github.com/RT-Thread/rt-thread/blob/master/bsp/imxrt/docs/IMXRT%E7%B3%BB%E5%88%97BSP%E5%A4%96%E8%AE%BE%E9%A9%B1%E5%8A%A8%E4%BD%BF%E7%94%A8%E6%95%99%E7%A8%8B.md).
103
104## 2 MIMXRT1060-EVK User Manual
105
106This manual records the execution instruction of the MIMXRT1060-EVK on RT-Thread homebuilt IDE RT-Thread Studio.
107
108### 2.1 Preparation
109
110- Clone the RT-Thread repository from GitHub to your local. [Link](https://github.com/RT-Thread/rt-thread)
111- Download and install RT-Thread Studio. [Link](https://www.rt-thread.io/studio.html)
112- Prepare the [RW007](https://github.com/RT-Thread-packages/rw007/blob/master/README.md) module.
113
114### 2.2 Quickly Get Started
115
116#### 2.2.1 menuconfig to configure the project
117
118Open the directory where the MIMXRT1060-EVK BSP is located and use the menuconfig command in the [ENV tool](https://www.rt-thread.io/download.html?download=Env) to configure the project
119
120![](./figures/6.png)
121
122#### 2.2.2 Cancel the configuration that is not needed, as follows:
123
124Set the Onboard Peripheral Drivers option:
125
126![](./figures/4.png)
127
128Set the On-chip Peripheral Drivers option:
129
130![](./figures/5.png)
131
132### 2.3 Go to File, and click the Import
133
134![](./figures/1_en.png)
135
136### 2.4 Import RT-Thread BSP to workspace
137
138![](./figures/2_en.png)
139
140### 2.5 Fill out the project info
141
142![](./figures/3_en.png)
143
144### 2.6 Compile project
145
146![](./figures/8.png)
147
148Till now, the project is compiled, and the preparation is completed.
149
150## 3 Use RT-Studio to Configure BSP Driver
151
152Each BSP of RT-Thread already has several drivers by default, such as on-chip peripheral driver and on-board peripheral driver, and the drivers can be enabled by opening the corresponding configuration and setting the parameters according to the use environment on RT-Studio IDE. Since the pin has the multiplexing function, it may not have both the available on-chip peripheral driver and on-board peripheral driver at the same time, so it is necessary to check the schematic while enabling the corresponding peripheral drivers.
153
154RT-Thread has a lot of up-for-grab software packages, by using RT-Studio IDE, the software packages can be easily added to the project.
155
156![](./figures/17_en.png)
157
158## 4 Connect to Internet: Use the RW007 module
159
160The RW007 is a high-speed WIFI module that uses SPI to communicate with the host. Check the [User Manual](https://github.com/RT-Thread-packages/rw007/blob/master/README.md).
161
162The SPI interface provided by the MIMXRT1060-EVK onboard Arduino interface has duplicate pins with the pins used by the SDIO interface of the SD card, so the on-board SPI interface is not connected by default. We'll be needing you to connect it, check out the location marked DNP in the schematic diagram below (this step is necessary when using the SPI interface). You can use the SPI interface led by the onboard Arduino interface, in this case, the on-board SD card slot is not available.
163
164![](./figures/11.png)
165
166Solder works must be done before next step:
167![](./figures/18.jpg)
168
169### 4.1 Configure the onboard SPI peripherals
170
171RW007 supports SPI interface for communication, MIMXRT1060-EVK supports SPI driver, defaults to using polling mode to communicate with RW007 (currently it does not support interrupt and DMA mode to communicate with RW007), the following shows how to use RT-Studio to configure SPI:
172
173![](./figures/10_en.png)
174
175### 4.2 Configure the RW007 package using RT-Studio
176
177Click the RT-Thread Settings option on the left, there is a configuration menu will be shown on the right, enter RW007 in the search bar, and select `rw007:SPI WIFI rw007 driver`, the corresponding configuration parameters are as follows:
178
179![](./figures/9_en.png)
180
181### 4.3 Plug the RW007 module into the onboard Arduino interface
182
183![](./figures/12.png)
184
185### 4.4 Modify the RW007 example
186RW007 has been ported into IMXRT1062 platform, the port file is at: `board/ports/rw007_port.c`, Once we select RW007 package, it will join into our project automatically, there is no need to modify any code for simply turn on  this module.
187
188### 4.5 After the modification is completed, compile the project and burn the firmware
189
190![](./figures/13.png)
191
192`rw007 sn` and `rw007 ver` are successfully output, and RW007 driver is successfully connected.
193
194### 4.6 WIFI connection test
195
196Enter the `wifi scan` command into the shell to search for WIFI.
197
198![](./figures/14.png)
199
200Enter `wifi` and press `tab` to list wifi-related commands:
201
202![](./figures/15.png)
203
204Use the ping command to test if the WIFI connection is available:
205
206![](./figures/16.png)
207
208At this point, the basic environment of the MIMXRT1060-EVK is successfully set up!

README_zh.md

1# MIMXRT1060-EVK
2
3**中文** | [英文](README.md)
4
5## 1 BSP简介
6
7本文档为 MIMXRT1060-EVK 开发板的 BSP (板级支持包) 说明。
8
9主要内容如下:
10
11- 开发板资源介绍
12- BSP 快速上手
13- 进阶使用方法
14
15通过阅读快速上手章节开发者可以快速地上手该 BSP,将 RT-Thread 运行在开发板上。在进阶使用指南章节,将会介绍更多高级功能,帮助开发者利用 RT-Thread 驱动更多板载资源。
16
17### 1.2 开发板介绍
18
19开发板外观如下图所示:
20
21![board](figures/MIMXRT1060EVKB.jpg)
22
23该开发板常用 **板载资源** 如下:
24
25- MCU:MIMXRT1062DVL6A,主频 600MHz,4096KB FLASH ,1024KB RAM
26- 外部 RAM:型号IS42S16160J-6BLI,32MB
27- 外部 FLASH:型号S26KS512SDPBHI02,64MB
28- 常用外设
29  - LED:1个,D18(绿色)
30  - 按键:1个
31- 常用接口:USB 转串口、SD 卡接口、以太网接口、LCD 接口等
32- 调试接口,标准 JTAG/SWD
33
34开发板更多详细信息请参考【NXP】 [MIMXRT1060-EVK开发板介绍](https://www.nxp.com.cn/design/development-boards/i-mx-evaluation-and-development-boards/i-mx-rt1060-evaluation-kit:MIMXRT1060-EVK)35
36### 1.3 外设支持
37
38本 BSP 目前对外设的支持情况如下:
39
40| **板载外设**      | **支持情况** | **备注**                              |
41| :----------------- | :----------: | :------------------------------------- |
42| USB 转串口        |     支持     |                                       |
43| SPI Flash         |     支持     |                                       |
44| 以太网            |      支持    |                                       |
45| **片上外设** | **支持情况** | **备注**                              |
46| GPIO         |     支持     | PA0, PA1... PK15 ---> PIN: 0, 1...176 |
47| UART         |     支持     | UART1                                 |
48| SPI          |   暂不支持   | 即将支持                              |
49| I2C          |   暂不支持   | 即将支持                              |
50| SDIO         |   暂不支持   | 即将支持                              |
51| RTC          |   暂不支持   | 即将支持                              |
52| PWM          |   暂不支持   | 即将支持                              |
53| USB Device   |   暂不支持   | 即将支持                              |
54| USB Host     |   暂不支持   | 即将支持                              |
55| IWG          |   暂不支持   | 即将支持                              |
56| **扩展模块** | **支持情况** | **备注**                              |
57| LVGL         |     支持     |                                       |
58
59### 1.4 使用说明
60
61使用说明分为如下两个章节:
62
63- 快速上手
64
65    本章节是为刚接触 RT-Thread 的新手准备的使用说明,遵循简单的步骤即可将 RT-Thread 操作系统运行在该开发板上,看到实验效果 。
66
67- 进阶使用
68
69    本章节是为需要在 RT-Thread 操作系统上使用更多开发板资源的开发者准备的。通过使用 ENV 工具对 BSP 进行配置,可以开启更多板载资源,实现更多高级功能。
70
71### 1.6 快速上手
72
73本 BSP 为开发者提供 MDK4、MDK5 和 IAR 工程,以及GCC 开发环境。下面以 MDK5 开发环境为例,介绍如何将系统运行起来。
74
75**请注意!!!**
76
77在执行编译工作前请先打开ENV执行以下指令(该指令用于拉取必要的库,否则无法通过编译):
78
79```bash
80pkgs --update
81```
82
83### 1.7 硬件连接
84
85使用数据线连接开发板到 PC,打开电源开关。
86
87### 1.8 编译下载
88
89双击 project.uvprojx 文件,打开 MDK5 工程,编译并下载程序到开发板。
90
91> 工程默认配置使用 CMSIS-DAP 仿真器下载程序,在通过 USB 连接开发板的基础上,点击下载按钮即可下载程序到开发板
92
93### 1.9 运行结果
94
95下载程序成功之后,系统会自动运行,LED会以1Hz的频率闪烁。
96
97连接开发板对应串口到 PC , 在终端工具里打开相应的串口(115200-8-1-N),复位设备后,可以看到 RT-Thread 的输出信息:
98
99```bash
100 \ | /
101- RT -     Thread Operating System
102 / | \     4.1.0 build Mar 10 2022 18:07:41
103 2006 - 2022 Copyright by RT-Thread team
104msh >
105```
106### 1.10 进阶使用
107
108此 BSP 默认只开启了 GPIO 和 串口1 的功能,如果需使用 SD 卡、Flash 等更多高级功能,需要利用 ENV 工具对BSP 进行配置(暂时还不支持,等待第二阶段),步骤如下:
109
1101. 在 bsp 下打开 env 工具。
111
1122. 输入`menuconfig`命令配置工程,配置好之后保存退出。
113
1143. 输入`pkgs --update`命令更新软件包。
115
1164. 输入`scons --target=mdk/iar` 命令重新生成工程。
117
118本章节更多详细的介绍请参考 [IMXRT 系列 BSP 外设驱动使用教程](../docs/IMXRT系列BSP外设驱动使用教程.md)。
119
120## 2 MIMXRT1060-EVK上手指南
121
122**中文** | [English](MIMXRT1060-EVK User Manual.md)
123
124MIMXRT1060-EVK支持RT-Studio工程,本上手指南以RT-Studio环境的开发说明举例。
125
126### 2.1 准备阶段
127
128- 拉取rt-thread的github仓库到本地,[链接地址](https://github.com/RT-Thread/rt-thread)129
130- 下载安装RT-Thread Studio,[链接地址](https://www.rt-thread.org/studio.html)131- 准备RW007模块。
132
133### 2.2 BSP上手阶段
134
135#### 2.2.1 menuconfig配置工程
136
137打开MIMXRT1060-EVK BSP所在目录,在ENV工具中使用menuconfig命令配置工程
138
139![](./figures/6.png)
140
141#### 2.2.2 取消暂时不需要的配置,具体操作如下:
142
143Onboard Peripherial Drivers选项设置:
144
145![](./figures/4.png)
146
147On-chip Peripherial Drivers选项设置:
148
149![](./figures/5.png)
150
151### 2.3 点击文件,选择导入选项。
152
153![](./figures/1.png)
154
155### 2.4 选择导入RT-Thread Bsp 到工作空间中
156
157![](./figures/2.png)
158
159<div STYLE="page-break-after: always;"></div>
160
161### 2.5 按照示例填写工程信息
162
163![](./figures/3.png)
164
165<div STYLE="page-break-after: always;"></div>
166
167### 2.6 编译工程
168
169![](./figures/8.png)
170
171工程编译通过,至此,准备阶段完成。
172
173## 3 使用RT-Studio配置BSP驱动
174
175RT-Thread每个BSP已经默认适配了若干片上外设驱动与板载外设驱动,使用RT-Studio将相应的开关直接打开并依据使用环境配置相应参数即可使用。由于各个管脚存在复用功能,所以并不是所有的片上外设驱动与板载外设驱动都可以同时使用,使用时需要结合原理图来合理开启相应的外设驱动。
176
177RT-Thread有许多软件软件包,使用RT-Studio将相应软件包的开关打开便可将软件包添加至工程使用。
178
179![](./figures/17.png)
180
181## 4 联网实操:使用RW007模块联网
182
183RW007 是由上海睿赛德电子科技有限公司开发的高速 WiFi 模块,使用 SPI 与主机通信。[RW007使用指南链接](https://www.rt-thread.org/document/site/#/rt-thread-version/rt-thread-standard/application-note/packages/rw007_module_using/an0034-rw007-module-using)184
185MIMXRT1060-EVK板载arduino接口提供的SPI接口与SD卡的SDIO接口使用的管脚存在重复的管脚,所以板载的SPI接口默认未连接,将下方**原理图中标记DNP的地方连接起来(使用SPI接口一定要做这一步!!!)**便可以使用板载arduino接口引出的SPI接口,此时板载的SD卡槽不可使用。
186
187![](./figures/11.png)
188
189修改图示跳线:
190![](./figures/18.jpg)
191
192### 4.1 配置板载SPI外设
193
194RW007可采用SPI接口通讯,MIMXRT1060-EVK支持SPI驱动,默认采用轮询的方式与RW007通讯(暂不支持中断与DMA模式与RW007通讯),使用RT-Studio配置SPI的具体配置如下:
195
196![](./figures/10.png)
197
198### 4.2 使用RT-Studio配置RW007软件包
199
200点击左侧的RT-Thread Settings选项,弹出右侧的配置菜单,在搜索栏中输入RW007,选择`rw007:SPI WIFI rw007 driver `,相应配置参数如下:
201
202![](./figures/9.png)
203
204### 4.3 将RW007模块插入板载的arduino接口
205
206![](./figures/12.png)
207
208### 4.4 修改RW007示例
209
210RW007已经为IMXRT1062平台做了单独适配,文件目录在:`board/ports/rw007_port.c` 工程会自动加入此文件,因此无需修改即可简单适配。
211
212### 4.5 编译工程,烧录固件。
213
214![](./figures/13.png)
215
216`rw007 sn`与`rw007 ver`可以正常输出无乱码时,RW007驱动成功!
217
218### 4.6 wifi联网测试
219
220在shell中输入`wifi scan`命令搜索WIFI。
221
222![](./figures/14.png)
223
224输入`wifi`,按`tab`键列出wifi相关命令:
225
226![](./figures/15.png)
227
228连接目标wifi测试,使用ping命令测试是否连接成功:
229
230![](./figures/16.png)
231
232至此MIMXRT1060-EVK的基础环境便搭建测试完毕!