README.md 3.5 KB
Newer Older
C
Cathy Li 已提交
1
# NXP i. MX RT1050 EVK BSP(Board Support Package) Execution Instruction.
misonyo's avatar
misonyo 已提交
2

C
Cathy Li 已提交
3
[中文页](README_zh.md) |
misonyo's avatar
misonyo 已提交
4

C
Cathy Li 已提交
5
## Introduction
misonyo's avatar
misonyo 已提交
6

C
Cathy Li 已提交
7
This document records the execution instruction of the BSP (board support package) provided by the RT-Thread development team for the NXP i. MX RT1050 EVK development board.
misonyo's avatar
misonyo 已提交
8

C
Cathy Li 已提交
9
The document is covered in three parts:
misonyo's avatar
misonyo 已提交
10

C
Cathy Li 已提交
11 12 13
- NXP i. MX RT1050 EVK Board Resources Introduction
- Quickly Get Started
- Advanced Features
misonyo's avatar
misonyo 已提交
14

C
Cathy Li 已提交
15
By 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.
misonyo's avatar
misonyo 已提交
16

C
Cathy Li 已提交
17
## Board Resources Introduction
misonyo's avatar
misonyo 已提交
18

C
Cathy Li 已提交
19
The i.MX RT1050 EVK  is a development board based on ARM Cortex-M7. The maximum main frequency is 600 MHz, and it has a wealth of on-board resources that can take full advantage of the RT1052's chip performance.
misonyo's avatar
misonyo 已提交
20

C
Cathy Li 已提交
21
[![board](https://github.com/RT-Thread/rt-thread/raw/master/bsp/imxrt/imxrt1052-nxp-evk/figures/board.jpg)](https://github.com/RT-Thread/rt-thread/blob/master/bsp/imxrt/imxrt1052-nxp-evk/figures/board.jpg)
misonyo's avatar
misonyo 已提交
22

C
Cathy Li 已提交
23
The mainly-used resources of this board are shown as follows:
misonyo's avatar
misonyo 已提交
24

C
Cathy Li 已提交
25 26 27 28
- MCU: MIMXRT1052DVL6A. Main Frequency 600MHz,
- Memory: 256MB SDRAM、512MB Hyper FLASH
- Common-used peripherals:
  - Motion Sensors: FXOS8700CQ
misonyo's avatar
misonyo 已提交
29
  - LED
C
Cathy Li 已提交
30 31
- Common-used interfaces: USB、SD Card、Ethernet、LCD、Camera.
- Debug interface: Standard JTAG/SWD. For more details about this board, please refer to [nxp.com](https://www.nxp.com/)
misonyo's avatar
misonyo 已提交
32

C
Cathy Li 已提交
33
## Peripheral Condition
misonyo's avatar
misonyo 已提交
34

C
Cathy Li 已提交
35
Each peripheral supporting condition for this BSP is as follows:
misonyo's avatar
misonyo 已提交
36

C
Cathy Li 已提交
37 38 39 40
| **On-chip Peripheral** | **Support** | **Remark** |
| ---------------------- | ----------- | ---------- |
| GPIO                   | Support     |            |
| UART                   | Support     | UART1      |
misonyo's avatar
misonyo 已提交
41

C
Cathy Li 已提交
42
## Execution Instruction
misonyo's avatar
misonyo 已提交
43

C
Cathy Li 已提交
44
### Quickly Get Started
misonyo's avatar
misonyo 已提交
45

C
Cathy Li 已提交
46
This BSP provides MDK 5 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.
misonyo's avatar
misonyo 已提交
47

C
Cathy Li 已提交
48
#### Hardware Connection
misonyo's avatar
misonyo 已提交
49

C
Cathy Li 已提交
50
Use a USB cable to connect the development board to the PC and turn on the power switch.
misonyo's avatar
misonyo 已提交
51

C
Cathy Li 已提交
52
#### Compile and Download
misonyo's avatar
misonyo 已提交
53

C
Cathy Li 已提交
54
Double-click the project.uvprojx file, to open the MDK 5 project, compile and download the project to the board.
misonyo's avatar
misonyo 已提交
55

C
Cathy Li 已提交
56
> 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.
misonyo's avatar
misonyo 已提交
57

C
Cathy Li 已提交
58
### **Running Results**
misonyo's avatar
misonyo 已提交
59

C
Cathy Li 已提交
60
Once the project is successfully downloaded, the system runs automatically. The green LED on the board will flash periodically.
misonyo's avatar
misonyo 已提交
61

C
Cathy Li 已提交
62
Connect 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:
misonyo's avatar
misonyo 已提交
63

C
Cathy Li 已提交
64
```
misonyo's avatar
misonyo 已提交
65 66 67 68 69 70
 \ | /
- RT -     Thread Operating System
 / | \     4.0.1 build May 5 2019
 2006 - 2019 Copyright by rt-thread team
```

C
Cathy Li 已提交
71
## **Advanced Features**
misonyo's avatar
misonyo 已提交
72

C
Cathy Li 已提交
73
This 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:
misonyo's avatar
misonyo 已提交
74

C
Cathy Li 已提交
75 76 77 78
1. Open the env tool under BSP;
2. Enter menuconfig command to configure the project, then save and exit;
3. Enter pkgs --update command to update the package;
4. Enter scons --target=mdk4/mdk5/iar command to regenerate the project.
misonyo's avatar
misonyo 已提交
79

C
Cathy Li 已提交
80
Learn how to use RT-Thread Env, click [Here](https://github.com/RT-Thread/rtthread-manual-doc/blob/master/env/env.md).