• 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-202548.8 KiB1,5041,390

Kconfig A D21-Aug-2025206 117

README.md A D21-Aug-20254 KiB8554

README_zh.md A D21-Aug-20254.1 KiB11566

SConscript A D21-Aug-2025311 1511

SConstruct A D21-Aug-20253 KiB8970

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

project.ewp A D21-Aug-202540.2 KiB1,4041,403

project.eww A D21-Aug-2025161 117

project.uvoptx A D21-Aug-20255.7 KiB185178

project.uvprojx A D21-Aug-202555.3 KiB1,5181,517

rtconfig.h A D21-Aug-20259.9 KiB476131

rtconfig.py A D21-Aug-20254.8 KiB161125

template.ewd A D21-Aug-202552.4 KiB1,4861,485

template.ewp A D21-Aug-202535.5 KiB1,0401,039

template.ewt A D21-Aug-2025170.6 KiB2,3732,372

template.eww A D21-Aug-2025152 117

template.uvoptx A D21-Aug-20255.7 KiB185178

template.uvprojx A D21-Aug-202514.2 KiB392386

README.md

1# NXP i. MX RT1020 EVK BSP(Board Support Package) Execution Instruction.
2
3[中文页](README_zh.md) |
4
5## Introduction
6
7This document records the execution instruction of the BSP (board support package) provided by the RT-Thread development team for the NXP i. MX RT1020 EVK development board.
8
9The document is covered in three parts:
10
11- NXP i. MX RT1020 EVK Board Resources Introduction
12- Quickly Get Started
13- Advanced Features
14
15By 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.
16
17## Board Resources Introduction
18
19The i.MX RT1020 EVK is a 2-layer low-cost through-hole USB-powered PCB. At its heart lies the i.MX RT1020 crossover MCU in LQFP144 package, featuring NXP’s advanced implementation of the Arm® Cortex®-M7 core. This core operates at speeds up to 500 MHz to provide high CPU performance and excellent real-time response.
20![board](figures/board.jpg)
21
22
23## Peripheral Condition
24
25Each peripheral supporting condition for this BSP is as follows:
26
27
28| **On-board Peripherals** | **Support** | **Remark**                            |
29| ------------------------ | ----------- | ------------------------------------- |
30| USB                      | √           |                                       |
31| SPI Flash                | √           |                                       |
32| Ethernet                 | √           |                                       |
33| **On-chip Peripherals**  | **Support** | **Remark**                            |
34| GPIO                     | √           |                                       |
35| SPI                      | √           |                                       |
36| I2C                      | √           |                                       |
37| SDIO                     | √           |                                       |
38| RTC                      | √           |                                       |
39| PWM                      | √           |                                       |
40
41
42## Execution Instruction
43
44### Quickly Get Started
45
46This BSP provides MDK 5 and IAR projects for developers. Here's an example of the IAR development environment, to introduce how to run the system.
47
48Then, the necessary libraries should be pulled; otherwise, the compilation will fail.
49
50```bash
51    pkgs --update
52```
53
54#### Hardware Connection
55
56Use a USB cable to connect the development board to the PC and turn on the power switch.
57
58#### Compile and Download
59
60Double-click the project.eww file, to open the IAR project, compile and download the project to the board.
61
62> By default, the project uses the CMSIS-DAP to download the program, when the CMSIS-DAP connects the board, clicking the download button can download the program to the board.
63
64### **Running Results**
65
66Once the project is successfully downloaded, the system runs automatically. The green LED on the board will flash periodically.
67
68Connect the serial port of the board to the PC, communicate with it via a serial terminal tool(115200-8-1-N). Reset the board and the startup information of RT-Thread will be observed:
69
70```
71 \ | /
72- RT -     Thread Operating System
73 / | \     4.1.1 build May 13 2022 11:37:59
74 2006 - 2022 Copyright by RT-Thread team
75```
76
77## **Advanced Features**
78
79This BSP only enables GPIO and serial port 1 by default. If you need more advanced features, you need to configure the BSP with RT-Thread [Env tools](https://www.rt-thread.io/download.html?download=Env), as follows:
801. Open the env tool under BSP;
812. Enter menuconfig command to configure the project, then save and exit;
823. Enter pkgs --update command to update the package;
834. Enter scons --target=mdk5/iar command to regenerate the project.
84
85Learn how to use RT-Thread Env, click [Here](https://github.com/RT-Thread/rtthread-manual-doc/blob/master/env/env.md).

README_zh.md

1# i.MX RT1020 EVK 开发板 BSP 说明
2
3## 简介
4
5本文档为 RT-Thread 开发团队为 NXP i.MX RT1020 EVK 开发板提供的 BSP (板级支持包) 说明。
6
7主要内容如下:
8
9- 开发板资源介绍
10- BSP 快速上手
11- 进阶使用方法
12
13通过阅读快速上手章节开发者可以快速地上手该 BSP,将 RT-Thread 运行在开发板上。在进阶使用指南章节,将会介绍更多高级功能,帮助开发者利用 RT-Thread 驱动更多板载资源。
14
15## 开发板介绍
16
17i.MX RT1020 EVK是一款2层低成本穿孔式USB供电PCB。该板的核心为i.MX RT1020跨界微控制器,采用LQFP144封装和恩智浦先进的Arm®Cortex®-M7内核。该内核运行速度高达500 MHz,可提供较高的CPU性能与卓越的实时响应。
18
19开发板外观如下图所示:
20
21![board](figures/board.jpg)
22
23
24开发板更多的详细信息请参考 NXP [i.MX RT1020 EVK 开发板介绍](https://www.nxp.com)25
26## 外设支持
27
28本 BSP 目前对外设的支持情况如下:
29
30| **板载外设**      | **支持情况** | **备注**                              |
31| :----------------- | :----------: | :------------------------------------|
32| USB 转串口        |     支持     |                                       |
33| SPI Flash         |     支持     |                                       |
34| 以太网            |     支持     |                                       |
35| **片上外设** | **支持情况** | **备注**                              |
36| GPIO         |     支持     |                                       |
37| UART         |     支持     |                                       |
38| SPI          |     支持     |                                       |
39| I2C          |     支持     |                                       |
40| SDIO         |     支持     |                                       |
41| RTC          |     支持     |                                       |
42| PWM          |     支持     |                                       |
43
44
45
46## 使用说明
47
48使用说明分为如下两个章节:
49
50- 快速上手
51
52    本章节是为刚接触 RT-Thread 的新手准备的使用说明,遵循简单的步骤即可将 RT-Thread 操作系统运行在该开发板上,看到实验效果 。
53
54- 进阶使用
55
56    本章节是为需要在 RT-Thread 操作系统上使用更多开发板资源的开发者准备的。通过使用 ENV 工具对 BSP 进行配置,可以开启更多板载资源,实现更多高级功能。
57
58
59### 快速上手
60
61本 BSP 为开发者提供 MDK5 和 IAR 工程。下面以 IAR 开发环境为例,介绍如何将系统运行起来。
62
63**请注意!!!**
64
65在执行编译工作前请先打开ENV执行以下指令(该指令用于拉取必要的库,否则无法通过编译):
66
67```bash
68pkgs --update
69```
70
71#### 硬件连接
72
73使用数据线连接开发板到 PC,打开电源开关。
74
75#### 编译下载
76
77双击 project.eww 文件,打开 IAR 工程,编译并下载程序到开发板。
78
79> 工程默认配置使用 CMSIS-DAP 下载程序,在通过 CMSIS-DAP 连接开发板的基础上,点击下载按钮即可下载程序到开发板
80
81#### 运行结果
82
83下载程序成功之后,系统会自动运行,观察开发板上 LED 的运行效果,绿色 LED 会周期性闪烁。
84
85连接开发板对应串口到 PC , 在终端工具里打开相应的串口(115200-8-1-N),复位设备后,可以看到 RT-Thread 的输出信息:
86
87```
88 \ | /
89- RT -     Thread Operating System
90 / | \     4.1.1 build May 13 2022 11:37:59
91 2006 - 2022 Copyright by RT-Thread team
92```
93
94
95### 进阶使用
96
97此 BSP 默认只开启了 GPIO 和 串口 1 的功能,如果需使用更多高级外设功能,需要利用 ENV 工具对 BSP 进行配置,步骤如下:
98
991. 在 bsp 下打开 env 工具。
100
1012. 输入 `menuconfig` 命令配置工程,配置好之后保存退出。
102
1033. 输入 `pkgs --update` 命令更新软件包。
104
1054. 输入 `scons --target=mdk5/iar` 命令重新生成工程。
106
107## 注意事项
108
109暂无
110
111## 联系人信息
112
113维护人:
114
115- [tyustli](https://github.com/tyustli)