Browse Source

[bsp][readme]合并ch32v208与RT1060的readme

Yaochenger 2 years ago
parent
commit
a3c5ce717c

+ 0 - 128
bsp/imxrt/imxrt1060-nxp-evk/MIMXRT1060-EVK User Manual.md

@@ -1,128 +0,0 @@
-# MIMXRT1060-EVK User Manual
-
-**English** | [中文](MIMXRT1060-EVK上手指南.md)
-
-This manual records the execution instruction of the MIMXRT1060-EVK on RT-Thread homebuilt IDE RT-Thread Studio. 
-
-## 1 Preparation
-
-- Clone the RT-Thread repository from GitHub to your local. [Link](https://github.com/RT-Thread/rt-thread)
-- Download and install RT-Thread Studio. [Link](https://www.rt-thread.io/studio.html)
-- Prepare the [RW007](https://github.com/RT-Thread-packages/rw007/blob/master/README.md) module.
-
-## 2 Quickly Get Started
-
-### 2.1 menuconfig to configure the project
-
-Open 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
-
-![](./figures/6.png)
-
-### 2.2 Cancel the configuration that is not needed, as follows:
-
-Set the Onboard Peripheral Drivers option:
-
-![](./figures/4.png)
-
-Set the On-chip Peripheral Drivers option:
-
-![](./figures/5.png)
-
-### 2.3 Go to File, and click the Import
-
-![](./figures/1_en.png)
-
-### 2.4 Import RT-Thread BSP to workspace 
-
-![](./figures/2_en.png)
-
-### 2.5 Fill out the project info
-
-![](./figures/3_en.png)
-
-### 2.6 Compile project
-
-![](./figures/8.png)
-
-Till now, the project is compiled, and the preparation is completed.
-
-## 3 Use RT-Studio to Configure BSP Driver 
-
-Each 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.
-
-RT-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.
-
-![](./figures/17_en.png)
-
-## 4 Connect to Internet: Use the RW007 module
-
-The 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).
-
-The 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.
-
-![](./figures/11.png)
-
-### 4.1 Configure the onboard SPI peripherals
-
-RW007 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:
-
-![](./figures/10_en.png)
-
-### 4.2 Configure the RW007 package using RT-Studio
-
-Click 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:
-
-![](./figures/9_en.png)
-
-### 4.3 Plug the RW007 module into the onboard Arduino interface
-
-![](./figures/12.png)
-
-### 4.4 Modify the RW007 example
-
-Since the default example of the RW007 package is based on the STM32, minor modifications are required on the RT1060-EVK, modify the `rw007_stm32_port.c` file in the example folder in the RW007 package.
-
-Modify the `int wifi_spi_device_init(void)` function, replacing the example with the code given below:
-
-```
-int wifi_spi_device_init(void)
-{
-    char sn_version[32];
-    
-    rw007_gpio_init();
-    rt_hw_spi_device_attach(RW007_SPI_BUS_NAME, "wspi", RW007_CS_PIN);
-    rt_hw_wifi_init("wspi");
-
-    rt_wlan_set_mode(RT_WLAN_DEVICE_STA_NAME, RT_WLAN_STATION);
-    rt_wlan_set_mode(RT_WLAN_DEVICE_AP_NAME, RT_WLAN_AP);
-
-    rw007_sn_get(sn_version);
-    rt_kprintf("\nrw007  sn: [%s]\n", sn_version);
-    rw007_version_get(sn_version);
-    rt_kprintf("rw007 ver: [%s]\n\n", sn_version);
-
-    return 0;
-}
-```
-
-### 4.5 After the modification is completed, compile the project and burn the firmware
-
-![](./figures/13.png)
-
-`rw007 sn` and `rw007 ver` are successfully output, and RW007 driver is successfully connected. 
-
-### 4.6 WIFI connection test
-
-Enter the `wifi scan` command into the shell to search for WIFI.
-
-![](./figures/14.png)
-
-Enter `wifi` and press `tab` to list wifi-related commands:
-
-![](./figures/15.png)
-
-Use the ping command to test if the WIFI connection is available:
-
-![](./figures/16.png)
-
-At this point, the basic environment of the MIMXRT1060-EVK is successfully set up!

+ 0 - 133
bsp/imxrt/imxrt1060-nxp-evk/MIMXRT1060-EVK上手指南.md

@@ -1,133 +0,0 @@
-# MIMXRT1060-EVK上手指南
-
-**中文** | [English](MIMXRT1060-EVK User Manual.md)
-
-MIMXRT1060-EVK支持RT-Studio工程,本上手指南以RT-Studio环境的开发说明举例。
-
-## 1 准备阶段
-
-- 拉取rt-thread的github仓库到本地,[链接地址](https://github.com/RT-Thread/rt-thread)。
-
-- 下载安装RT-Thread Studio,[链接地址](https://www.rt-thread.org/studio.html)。
-- 准备RW007模块。
-
-## 2 BSP上手阶段
-
-### 2.1 menuconfig配置工程
-
-打开MIMXRT1060-EVK BSP所在目录,在ENV工具中使用menuconfig命令配置工程
-
-![](./figures/6.png)
-
-### 2.2 取消暂时不需要的配置,具体操作如下:
-
-Onboard Peripherial Drivers选项设置:
-
-![](./figures/4.png)
-
-On-chip Peripherial Drivers选项设置:
-
-![](./figures/5.png)
-
-### 2.3 点击文件,选择导入选项。
-
-![](./figures/1.png)
-
-### 2.4 选择导入RT-Thread Bsp 到工作空间中
-
-![](./figures/2.png)
-
-<div STYLE="page-break-after: always;"></div>
-
-### 2.5 按照示例填写工程信息
-
-![](./figures/3.png)
-
-<div STYLE="page-break-after: always;"></div>
-
-### 2.6 编译工程
-
-![](./figures/8.png)
-
-工程编译通过,至此,准备阶段完成。
-
-## 3 使用RT-Studio配置BSP驱动
-
-RT-Thread每个BSP已经默认适配了若干片上外设驱动与板载外设驱动,使用RT-Studio将相应的开关直接打开并依据使用环境配置相应参数即可使用。由于各个管脚存在复用功能,所以并不是所有的片上外设驱动与板载外设驱动都可以同时使用,使用时需要结合原理图来合理开启相应的外设驱动。
-
-RT-Thread有许多软件软件包,使用RT-Studio将相应软件包的开关打开便可将软件包添加至工程使用。
-
-![](./figures/17.png)
-
-## 4 联网实操:使用RW007模块联网
-
-RW007 是由上海睿赛德电子科技有限公司开发的高速 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)。
-
-MIMXRT1060-EVK板载arduino接口提供的SPI接口与SD卡的SDIO接口使用的管脚存在重复的管脚,所以板载的SPI接口默认未连接,将下方**原理图中标记DNP的地方连接起来(使用SPI接口一定要做这一步!!!)**便可以使用板载arduino接口引出的SPI接口,此时板载的SD卡槽不可使用。
-
-![](./figures/11.png)
-
-### 4.1 配置板载SPI外设
-
-RW007可采用SPI接口通讯,MIMXRT1060-EVK支持SPI驱动,默认采用轮询的方式与RW007通讯(暂不支持中断与DMA模式与RW007通讯),使用RT-Studio配置SPI的具体配置如下:
-
-![](./figures/10.png)
-
-### 4.2 使用RT-Studio配置RW007软件包
-
-点击左侧的RT-Thread Settings选项,弹出右侧的配置菜单,在搜索栏中输入RW007,选择`rw007:SPI WIFI rw007 driver `,相应配置参数如下:
-
-![](./figures/9.png)
-
-### 4.3 将RW007模块插入板载的arduino接口
-
-![](./figures/12.png)
-
-### 4.4 修改RW007示例
-
-由于RW007软件包的默认示例是基于STM32的示例,所以在RT1060-EVK上需进行少量的修改,修改RW007软件包中的example文件夹中的rw007_stm32_port.c文件。
-
-修改`int wifi_spi_device_init(void)`函数,使用下述给出的代码替换原有的示例:
-
-```c
-int wifi_spi_device_init(void)
-{
-    char sn_version[32];
-    
-    rw007_gpio_init();
-    rt_hw_spi_device_attach(RW007_SPI_BUS_NAME, "wspi", RW007_CS_PIN);
-    rt_hw_wifi_init("wspi");
-
-    rt_wlan_set_mode(RT_WLAN_DEVICE_STA_NAME, RT_WLAN_STATION);
-    rt_wlan_set_mode(RT_WLAN_DEVICE_AP_NAME, RT_WLAN_AP);
-
-    rw007_sn_get(sn_version);
-    rt_kprintf("\nrw007  sn: [%s]\n", sn_version);
-    rw007_version_get(sn_version);
-    rt_kprintf("rw007 ver: [%s]\n\n", sn_version);
-
-    return 0;
-}
-```
-
-### 4.5 修改完成后,编译工程,烧录固件。
-
-![](./figures/13.png)
-
-`rw007 sn`与`rw007 ver`可以正常输出无乱码时,RW007驱动成功!
-
-### 4.6 wifi联网测试
-
-在shell中输入`wifi scan`命令搜索WIFI。
-
-![](./figures/14.png)
-
-输入`wifi`,按`tab`键列出wifi相关命令:
-
-![](./figures/15.png)
-
-连接目标wifi测试,使用ping命令测试是否连接成功:
-
-![](./figures/16.png)
-
-至此MIMXRT1060-EVK的基础环境便搭建测试完毕!

+ 135 - 9
bsp/imxrt/imxrt1060-nxp-evk/README.md

@@ -1,6 +1,6 @@
 # NXP MIMXRT1060-EVK BSP Introduction
 
-[中文](README_zh.md) |
+**英文** | [中文](README_zh.md) 
 
 This document records the instruction of the BSP (board support package) that provided by the RT-Thread development team for the MIMXRT1060-EVK development board.
 
@@ -12,7 +12,7 @@ The document is covered in three parts:
 
 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.
 
-## Resources Introduction
+## 1 Resources Introduction
 
 [![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)
 
@@ -27,13 +27,13 @@ Features:
 - Common-used Interfaces: USB 、SD Card、Ethernet、LCD, etc
 - Debugging interface, standard JTAG/SWD
 
-### For more details about these boards, please refer to [NXP Official Website](https://www.nxp.com/part/MIMXRT1060-EVK#/)
+### 1.1 For more details about these boards, please refer to [NXP Official Website](https://www.nxp.com/part/MIMXRT1060-EVK#/)
 
 
 
 
 
-## Peripherals Condition
+### 1.2 Peripherals Condition
 
 Each peripheral supporting condition for this BSP is as follows:
 
@@ -56,21 +56,21 @@ Each peripheral supporting condition for this BSP is as follows:
 | **Expansion Module**     | **Support** | **Remark**                            |
 | LVGL                     | √           |                                       |
 
-## Quickly Get Started
+### 1.3 Quickly Get Started
 
 This 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.
 
-#### Hardware Connection
+### 1.4 Hardware Connection
 
 Use a cable to connect the development board to the PC and turn on the power switch.
 
-### Compile and Download
+### 1.5 Compile and Download
 
 Double-click the `project.uvprojx` file to open the MDK5 project, compile and download the program to the development board.
 
 > 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
 
-#### Running Results
+### 1.6 Running Results
 
 After 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.
 
@@ -84,7 +84,7 @@ Connect the corresponding serial port of the development board to the PC, and wh
 msh >
 ```
 
-## **Advanced Features**
+### 1.7 **Advanced Features**
 
 This 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:
 
@@ -95,3 +95,129 @@ This BSP only enables GPIO and UART1 by default. If you need more advanced featu
 
 More 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). 
 
+## 2 MIMXRT1060-EVK User Manual
+
+This manual records the execution instruction of the MIMXRT1060-EVK on RT-Thread homebuilt IDE RT-Thread Studio. 
+
+### 2.1 Preparation
+
+- Clone the RT-Thread repository from GitHub to your local. [Link](https://github.com/RT-Thread/rt-thread)
+- Download and install RT-Thread Studio. [Link](https://www.rt-thread.io/studio.html)
+- Prepare the [RW007](https://github.com/RT-Thread-packages/rw007/blob/master/README.md) module.
+
+### 2.2 Quickly Get Started
+
+#### 2.2.1 menuconfig to configure the project
+
+Open 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
+
+![](./figures/6.png)
+
+#### 2.2.2 Cancel the configuration that is not needed, as follows:
+
+Set the Onboard Peripheral Drivers option:
+
+![](./figures/4.png)
+
+Set the On-chip Peripheral Drivers option:
+
+![](./figures/5.png)
+
+### 2.3 Go to File, and click the Import
+
+![](./figures/1_en.png)
+
+### 2.4 Import RT-Thread BSP to workspace 
+
+![](./figures/2_en.png)
+
+### 2.5 Fill out the project info
+
+![](./figures/3_en.png)
+
+### 2.6 Compile project
+
+![](./figures/8.png)
+
+Till now, the project is compiled, and the preparation is completed.
+
+## 3 Use RT-Studio to Configure BSP Driver 
+
+Each 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.
+
+RT-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.
+
+![](./figures/17_en.png)
+
+## 4 Connect to Internet: Use the RW007 module
+
+The 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).
+
+The 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.
+
+![](./figures/11.png)
+
+### 4.1 Configure the onboard SPI peripherals
+
+RW007 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:
+
+![](./figures/10_en.png)
+
+### 4.2 Configure the RW007 package using RT-Studio
+
+Click 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:
+
+![](./figures/9_en.png)
+
+### 4.3 Plug the RW007 module into the onboard Arduino interface
+
+![](./figures/12.png)
+
+### 4.4 Modify the RW007 example
+
+Since the default example of the RW007 package is based on the STM32, minor modifications are required on the RT1060-EVK, modify the `rw007_stm32_port.c` file in the example folder in the RW007 package.
+
+Modify the `int wifi_spi_device_init(void)` function, replacing the example with the code given below:
+
+```
+int wifi_spi_device_init(void)
+{
+    char sn_version[32];
+    
+    rw007_gpio_init();
+    rt_hw_spi_device_attach(RW007_SPI_BUS_NAME, "wspi", RW007_CS_PIN);
+    rt_hw_wifi_init("wspi");
+
+    rt_wlan_set_mode(RT_WLAN_DEVICE_STA_NAME, RT_WLAN_STATION);
+    rt_wlan_set_mode(RT_WLAN_DEVICE_AP_NAME, RT_WLAN_AP);
+
+    rw007_sn_get(sn_version);
+    rt_kprintf("\nrw007  sn: [%s]\n", sn_version);
+    rw007_version_get(sn_version);
+    rt_kprintf("rw007 ver: [%s]\n\n", sn_version);
+
+    return 0;
+}
+```
+
+### 4.5 After the modification is completed, compile the project and burn the firmware
+
+![](./figures/13.png)
+
+`rw007 sn` and `rw007 ver` are successfully output, and RW007 driver is successfully connected. 
+
+### 4.6 WIFI connection test
+
+Enter the `wifi scan` command into the shell to search for WIFI.
+
+![](./figures/14.png)
+
+Enter `wifi` and press `tab` to list wifi-related commands:
+
+![](./figures/15.png)
+
+Use the ping command to test if the WIFI connection is available:
+
+![](./figures/16.png)
+
+At this point, the basic environment of the MIMXRT1060-EVK is successfully set up!

+ 146 - 11
bsp/imxrt/imxrt1060-nxp-evk/README_zh.md

@@ -1,6 +1,8 @@
-# BSP README 模板
+# MIMXRT1060-EVK
 
-## 简介
+**中文** | [英文](README.md) 
+
+## 1 BSP简介
 
 本文档为 MIMXRT1060-EVK 开发板的 BSP (板级支持包) 说明。
 
@@ -12,7 +14,7 @@
 
 通过阅读快速上手章节开发者可以快速地上手该 BSP,将 RT-Thread 运行在开发板上。在进阶使用指南章节,将会介绍更多高级功能,帮助开发者利用 RT-Thread 驱动更多板载资源。
 
-## 开发板介绍
+### 1.2 开发板介绍
 
 开发板外观如下图所示:
 
@@ -31,7 +33,7 @@
 
 开发板更多详细信息请参考【NXP】 [MIMXRT1060-EVK开发板介绍](https://www.nxp.com.cn/design/development-boards/i-mx-evaluation-and-development-boards/i-mx-rt1060-evaluation-kit:MIMXRT1060-EVK)。
 
-## 外设支持
+### 1.3 外设支持
 
 本 BSP 目前对外设的支持情况如下:
 
@@ -54,7 +56,7 @@
 | **扩展模块** | **支持情况** | **备注**                              |
 | LVGL         |     支持     |                                       |
 
-## 使用说明
+### 1.4 使用说明
 
 使用说明分为如下两个章节:
 
@@ -66,22 +68,21 @@
 
     本章节是为需要在 RT-Thread 操作系统上使用更多开发板资源的开发者准备的。通过使用 ENV 工具对 BSP 进行配置,可以开启更多板载资源,实现更多高级功能。
 
-
-### 快速上手
+### 1.6 快速上手
 
 本 BSP 为开发者提供 MDK4、MDK5 和 IAR 工程,以及GCC 开发环境。下面以 MDK5 开发环境为例,介绍如何将系统运行起来。
 
-#### 硬件连接
+### 1.7 硬件连接
 
 使用数据线连接开发板到 PC,打开电源开关。
 
-#### 编译下载
+### 1.8 编译下载
 
 双击 project.uvprojx 文件,打开 MDK5 工程,编译并下载程序到开发板。
 
 > 工程默认配置使用 CMSIS-DAP 仿真器下载程序,在通过 USB 连接开发板的基础上,点击下载按钮即可下载程序到开发板
 
-#### 运行结果
+### 1.9 运行结果
 
 下载程序成功之后,系统会自动运行,LED会以1Hz的频率闪烁。
 
@@ -94,7 +95,7 @@
  2006 - 2022 Copyright by RT-Thread team
 msh >
 ```
-### 进阶使用
+### 1.10 进阶使用
 
 此 BSP 默认只开启了 GPIO 和 串口1 的功能,如果需使用 SD 卡、Flash 等更多高级功能,需要利用 ENV 工具对BSP 进行配置(暂时还不支持,等待第二阶段),步骤如下:
 
@@ -107,3 +108,137 @@ msh >
 4. 输入`scons --target=mdk/iar` 命令重新生成工程。
 
 本章节更多详细的介绍请参考 [IMXRT 系列 BSP 外设驱动使用教程](../docs/IMXRT系列BSP外设驱动使用教程.md)。
+
+## 2 MIMXRT1060-EVK上手指南
+
+**中文** | [English](MIMXRT1060-EVK User Manual.md)
+
+MIMXRT1060-EVK支持RT-Studio工程,本上手指南以RT-Studio环境的开发说明举例。
+
+### 2.1 准备阶段
+
+- 拉取rt-thread的github仓库到本地,[链接地址](https://github.com/RT-Thread/rt-thread)。
+
+- 下载安装RT-Thread Studio,[链接地址](https://www.rt-thread.org/studio.html)。
+- 准备RW007模块。
+
+### 2.2 BSP上手阶段
+
+#### 2.2.1 menuconfig配置工程
+
+打开MIMXRT1060-EVK BSP所在目录,在ENV工具中使用menuconfig命令配置工程
+
+![](./figures/6.png)
+
+#### 2.2.2 取消暂时不需要的配置,具体操作如下:
+
+Onboard Peripherial Drivers选项设置:
+
+![](./figures/4.png)
+
+On-chip Peripherial Drivers选项设置:
+
+![](./figures/5.png)
+
+### 2.3 点击文件,选择导入选项。
+
+![](./figures/1.png)
+
+### 2.4 选择导入RT-Thread Bsp 到工作空间中
+
+![](./figures/2.png)
+
+<div STYLE="page-break-after: always;"></div>
+
+### 2.5 按照示例填写工程信息
+
+![](./figures/3.png)
+
+<div STYLE="page-break-after: always;"></div>
+
+### 2.6 编译工程
+
+![](./figures/8.png)
+
+工程编译通过,至此,准备阶段完成。
+
+## 3 使用RT-Studio配置BSP驱动
+
+RT-Thread每个BSP已经默认适配了若干片上外设驱动与板载外设驱动,使用RT-Studio将相应的开关直接打开并依据使用环境配置相应参数即可使用。由于各个管脚存在复用功能,所以并不是所有的片上外设驱动与板载外设驱动都可以同时使用,使用时需要结合原理图来合理开启相应的外设驱动。
+
+RT-Thread有许多软件软件包,使用RT-Studio将相应软件包的开关打开便可将软件包添加至工程使用。
+
+![](./figures/17.png)
+
+## 4 联网实操:使用RW007模块联网
+
+RW007 是由上海睿赛德电子科技有限公司开发的高速 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)。
+
+MIMXRT1060-EVK板载arduino接口提供的SPI接口与SD卡的SDIO接口使用的管脚存在重复的管脚,所以板载的SPI接口默认未连接,将下方**原理图中标记DNP的地方连接起来(使用SPI接口一定要做这一步!!!)**便可以使用板载arduino接口引出的SPI接口,此时板载的SD卡槽不可使用。
+
+![](./figures/11.png)
+
+### 4.1 配置板载SPI外设
+
+RW007可采用SPI接口通讯,MIMXRT1060-EVK支持SPI驱动,默认采用轮询的方式与RW007通讯(暂不支持中断与DMA模式与RW007通讯),使用RT-Studio配置SPI的具体配置如下:
+
+![](./figures/10.png)
+
+### 4.2 使用RT-Studio配置RW007软件包
+
+点击左侧的RT-Thread Settings选项,弹出右侧的配置菜单,在搜索栏中输入RW007,选择`rw007:SPI WIFI rw007 driver `,相应配置参数如下:
+
+![](./figures/9.png)
+
+### 4.3 将RW007模块插入板载的arduino接口
+
+![](./figures/12.png)
+
+### 4.4 修改RW007示例
+
+由于RW007软件包的默认示例是基于STM32的示例,所以在RT1060-EVK上需进行少量的修改,修改RW007软件包中的example文件夹中的rw007_stm32_port.c文件。
+
+修改`int wifi_spi_device_init(void)`函数,使用下述给出的代码替换原有的示例:
+
+```c
+int wifi_spi_device_init(void)
+{
+    char sn_version[32];
+    
+    rw007_gpio_init();
+    rt_hw_spi_device_attach(RW007_SPI_BUS_NAME, "wspi", RW007_CS_PIN);
+    rt_hw_wifi_init("wspi");
+
+    rt_wlan_set_mode(RT_WLAN_DEVICE_STA_NAME, RT_WLAN_STATION);
+    rt_wlan_set_mode(RT_WLAN_DEVICE_AP_NAME, RT_WLAN_AP);
+
+    rw007_sn_get(sn_version);
+    rt_kprintf("\nrw007  sn: [%s]\n", sn_version);
+    rw007_version_get(sn_version);
+    rt_kprintf("rw007 ver: [%s]\n\n", sn_version);
+
+    return 0;
+}
+```
+
+### 4.5 修改完成后,编译工程,烧录固件。
+
+![](./figures/13.png)
+
+`rw007 sn`与`rw007 ver`可以正常输出无乱码时,RW007驱动成功!
+
+### 4.6 wifi联网测试
+
+在shell中输入`wifi scan`命令搜索WIFI。
+
+![](./figures/14.png)
+
+输入`wifi`,按`tab`键列出wifi相关命令:
+
+![](./figures/15.png)
+
+连接目标wifi测试,使用ping命令测试是否连接成功:
+
+![](./figures/16.png)
+
+至此MIMXRT1060-EVK的基础环境便搭建测试完毕!

+ 0 - 147
bsp/wch/risc-v/ch32v208w-r0/CH32V208W-R0上手指南.md

@@ -1,147 +0,0 @@
-# CH32V208W-R0上手指南
-
-**中文** | [English](./CH32V208W-R0 Getting Started Guide.md)
-
-CH32V208W-R0支持RT-Studio工程,本上手指南以RT-Studio环境的开发说明举例。
-
-## 1 准备阶段
-
-- 拉取rt-thread的github仓库到本地,[链接地址](https://github.com/RT-Thread/rt-thread)。
-
-- 下载安装RT-Thread Studio,[链接地址](https://www.rt-thread.org/studio.html)。
-- 准备ESP8266模块。
-
-## 2 BSP上手阶段
-
-### 2.1 点击文件,选择导入选项。
-
-<img src="./figures/1import.png" style="zoom:80%;" />
-
-### 2.2 选择导入RT-Thread Bsp 到工作空间中
-
-<img src="./figures/2workspace.png" style="zoom:80%;" />
-
-<div STYLE="page-break-after: always;"></div>
-
-### 2.3 按照示例填写工程信息
-
-<img src="./figures/3info.png" style="zoom:80%;" />
-
-### 2.4 配置工程
-
-导入工程后,在工程的根目录下存在参考文档readme,首先按照readme.md进行基础的配置
-
-为了减小链接时添加的标准库带来的内存增大,我们可以选择使用相对占用内存较小的newlib,具体操作如下:
-
-<img src="./figures/13newlib.png" style="zoom:67%;" />
-
-### 2.5 编译工程
-
-点击编译选项:
-
-![](./figures/4build.png)
-
-编译结果:
-
-![](./figures/5result.png)
-
-工程编译通过,至此,准备阶段完成。
-
-## 3 使用RT-Studio配置BSP驱动
-
-RT-Thread每个BSP已经默认适配了若干片上外设驱动与板载外设驱动,使用RT-Studio将相应的开关直接打开并依据使用环境配置相应参数即可使用。由于各个管脚存在复用功能,所以并不是所有的片上外设驱动与板载外设驱动都可以同时使用,使用时需要结合原理图来合理开启相应的外设驱动。
-
-RT-Thread有许多软件软件包,使用RT-Studio将相应软件包的开关打开便可将软件包添加至工程使用。
-
-<img src="./figures/6pkgs.png" style="zoom:80%;" />
-
-## 4 联网实操:使用ESP8266模块联网
-
-ESP8266是面向物联网应用的高性价比、高度集成的 Wi-Fi MCU,也可以将其作为一个单独的WIFI模块使用,其实物图如下。ESP8266模组通常支持[AT指令](https://www.rt-thread.org/document/site/#/rt-thread-version/rt-thread-standard/programming-manual/at/at)的操作方式,RT-Thread针对这些支持AT指令的模组提供了一个抽象层,本小结将使用AT组将与ESP8266通讯并连接WIFI。
-
-<img src="./figures/7esp8266.png" style="zoom:60%;" />
-
-### 4.1 配置板载UART外设
-
-使用AT组件与ESP8266模组通讯采用串口通讯的方式,所以需要再使能一路串口,这里我们使用UART2,串口驱动默认已经支持,我们仅需要在使用时在RT-Studio中打开即可,具体操作方式如下:
-
-![](./figures/8setting.png)
-
-开启选项后,`ctrl + s`保存设置,串口2即被初始化。
-
-### 4.2 使用RT-Studio配置AT组件
-
-点击左侧的RT-Thread Settings选项,弹出右侧的配置菜单,在搜索栏中输入AT,选择`AT设备 `,使能AT设备:
-
-<img src="./figures/9AT.png" style="zoom: 50%;" />
-
-选择ESP8266,并配置相应参数,示例如下:
-
-<img src="./figures/10wifinfo.png" style="zoom:80%;" />
-
-### 4.3 ESP8266模组连接
-
-将板子上的`PA2`管脚与模组的`RX`管脚连接,将`PA3`管脚与模组的`TX`管脚连接,并使用开发板引出的电源为模组供电。
-
-<img src="./figures/11board.png" style="zoom: 25%;" />
-
-### 4.4 使能内核调试功能。
-
-为了更加直观的了解组件的初始化过程,我们可以使能内核调试功能来观察(不需要时可以关掉),操作方法如下:
-
-![](./figures/12kdebug.png)
-
-重新编译并烧录固件,shell输出如下:
-
-![](./figures/14shellinfo.png)
-
-
-
-### 4.5 wifi联网测试
-
-我门在使用AT时已经配置了WIFI的ID与密码,在shell中输入`ping www.baidu.com`命令测试WIFI连接情况。
-
-![](./figures/15ping.png)
-
-输出类似内容,ESP8266模组便联网成功!
-
-### 5 RTduino组件
-
-[RTduino](https://github.com/Yaochenger/RTduino)是RT-Thread实时操作系统的Arduino生态兼容层,为[RT-Thread社区](https://github.com/RT-Thread/rt-thread)的子社区、Arduino开源项目的下游项目,旨在兼容Arduino社区生态来丰富RT-Thread社区软件包生态(如上千种分门别类的Arduino库,以及Arduino社区优秀的开源项目),并降低RT-Thread操作系统以及与RT-Thread适配的芯片的学习门槛。
-
-#### 5.1 配置RTduino
-
-将板载设备驱动中的RTduino选项打开。
-
-![](./figures/16rtduino.png)
-
-开启选项后,`ctrl + s`保存设置,RTduino软件包即可添加至工程。
-
-#### 5.2 使用RTduino
-
-在`arduino_main.cpp`中会看到熟悉的`void setup(void)`与`void loop(void)`,至此我们便可以在此像使用arduino官方板一样使用该BSP,示例代码如下:
-
-```c++
-#include <Arduino.h>
-
-void setup(void)
- {
-     /* put your setup code here, to run once: */
-    pinMode(LED_BUILTIN, OUTPUT);
- }
-
-void loop(void)
-{
-    /* put your main code here, to run repeatedly: */
-    digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
-    delay(100);
-}
-
-```
-
- 工程默认执行一个LED闪烁的功能,ch32v208w-r0这款板子默认板载LED不与管脚直接连接,用户在使用LED时需要使用杜邦线手动将LED与控制管脚连接起来,现象如下图所示:
-
-<img src="./figures/17led.png" style="zoom: 25%;" />
-
-至此ch32v208w-r0的基础环境便搭建测试完毕!
-

+ 256 - 0
bsp/wch/risc-v/ch32v208w-r0/README_ZN.md

@@ -0,0 +1,256 @@
+# CH32V208W-R0 BSP 说明
+
+**中文** | [英文](README.md) 
+
+## 1 开发板简介
+
+CH32V208W-R0 是 WCH 推出的一款基于 RISC-V 内核的开发板,最高主频为 144Mhz。比较适合入门学习 RISC-V 架构。
+
+![board](./figures/ch32v208.png)
+
+**基本特性:**
+
+- MCU:CH32V208WBU6,主频 144MHz,FLASH和RAM可配置
+- LED:2个。
+- 按键:3个 Download  ,Reset, User 。
+- USB:2个,Tpye-C。
+- 网口:1个,内置 10M PHY。
+- 板上无 WCH-Link 下载调试工具,需外接。
+
+### 1.2 编译说明
+
+板级包支持 RISC-V GCC 开发环境,以下是具体版本信息:
+
+| IDE/编译器 | 已测试版本           |
+| ---------- | -------------------- |
+| GCC        | WCH RISC-V GCC 8.2.0 |
+
+### 1.3 使用说明
+
+>本章节是为刚接触 RT-Thread 的新手准备的使用说明,遵循简单的步骤即可将 RT-Thread 操作系统运行在该开发板上,看到实验效果 。
+
+### 1.4 使用Env编译BSP
+
+本节讲解如何使用Env工具来编译BSP工程。
+
+#### 1.4.1 编译BSP
+
+1. [下载WCH编译工具链](https://github.com/NanjingQinheng/sdk-toolchain-RISC-V-GCC-WCH/archive/refs/tags/V1.0.0.zip)
+2. 下载Env工具[最新版本](https://github.com/RT-Thread/env-windows/releases)
+3. 下载RT-Thread[最新源码](https://github.com/RT-Thread/rt-thread/archive/refs/heads/master.zip)
+4. 并在当前BSP根目录下打开Env工具并执行 `scons --exec-path=D:\sdk-toolchain-RISC-V-GCC-WCH-1.0.0\bin` 命令,在指定工具链位置的同时直接编译。
+5. 编译完成之后会生成 **rtthread.bin** 文件。
+
+![sconscompile](./figures/sconscompile.jpg)
+
+#### 1.4.2 硬件连接
+
+使用数据线连接板载 wch-link 到 PC,打开电源开关。
+
+#### 1.4.3 下载
+
+打开 WCH RISC-V MCU ProgrammerTool 下载软件,选择刚刚生成的 **rtthread.bin**  文件,进行下载。
+
+![tool](./figures/tool.png)
+
+#### 1.4.4 运行结果
+
+在终端工具里打开板载 wch-link 串口(WCHDapLink SERIAL,默认115200-8-1-N),复位设备后,在串口上可以看到 RT-Thread 的输出信息:
+
+![end](./figures/end.png)
+
+### 1.5 使用VSCode编译工程
+
+在Env终端中敲入命令 `scons --target=vsc` 来生成VSCode工程. 接着敲入命令 `code .` 来打开VSCode.
+
+使用 **VSCode 终端** 敲入命令 `scons -j12 --exec-path=D:\sdk-toolchain-RISC-V-GCC-WCH-1.0.0bin` 来编译工程。
+
+![vscode-terminal](./figures/vscode-terminal.png)
+
+### 1.6 导入 RT-Thread Studio 工程
+
+#### 1.6.1 导入
+
+打开 RT-Thread Studio 后点击:文件->导入:
+
+![import](./figures/import.png)
+
+选择“RT-Thread Bsp 到工作空间中”:
+
+![windows](./figures/windows.png)
+
+填写项目信息,Bsp 根目录为 `\rt-thread\bsp\wch\risc-v\ch32v307v-r1` 目录:
+
+![config](./figures/config.png)
+
+#### 1.6.2 配置环境
+
+工程导入后进行编译环境的设置,首先点击“打开构建设置”进入设置界面:
+
+![set](./figures/set.png)
+
+将编译链路径复制到 Toolchain path 中:
+
+![toolchain](./figures/toolchain.png)
+
+如图更改 Prefix :
+
+![prefix](./figures/prefix.png)
+
+进行工具设置:
+
+![toolset](./figures/toolset.png)
+
+#### 1.6.3 编译
+
+编译结果如下:
+
+#### ![success](./figures/success.png)
+
+## 2 CH32V208W-R0上手指南
+
+**中文** | [English](./CH32V208W-R0 Getting Started Guide.md)
+
+CH32V208W-R0支持RT-Studio工程,本上手指南以RT-Studio环境的开发说明举例。
+
+### 2.1 准备阶段
+
+- 拉取rt-thread的github仓库到本地,[链接地址](https://github.com/RT-Thread/rt-thread)。
+
+- 下载安装RT-Thread Studio,[链接地址](https://www.rt-thread.org/studio.html)。
+- 准备ESP8266模块。
+
+### 2.2 BSP上手阶段
+
+#### 2.2.1 点击文件,选择导入选项。
+
+<img src="E:/RTT/rt-thread/bsp/wch/risc-v/ch32v208w-r0/figures/1import.png" style="zoom:80%;" />
+
+#### 2.2.2 选择导入RT-Thread Bsp 到工作空间中
+
+<img src="E:/RTT/rt-thread/bsp/wch/risc-v/ch32v208w-r0/figures/2workspace.png" style="zoom:80%;" />
+
+<div STYLE="page-break-after: always;"></div>
+
+#### 2.2.3 按照示例填写工程信息
+
+<img src="E:/RTT/rt-thread/bsp/wch/risc-v/ch32v208w-r0/figures/3info.png" style="zoom:80%;" />
+
+### 2.4 配置工程
+
+导入工程后,在工程的根目录下存在参考文档readme,首先按照readme.md进行基础的配置
+
+为了减小链接时添加的标准库带来的内存增大,我们可以选择使用相对占用内存较小的newlib,具体操作如下:
+
+<img src="E:/RTT/rt-thread/bsp/wch/risc-v/ch32v208w-r0/figures/13newlib.png" style="zoom:67%;" />
+
+### 2.5 编译工程
+
+点击编译选项:
+
+![](E:/RTT/rt-thread/bsp/wch/risc-v/ch32v208w-r0/figures/4build.png)
+
+编译结果:
+
+![](E:/RTT/rt-thread/bsp/wch/risc-v/ch32v208w-r0/figures/5result.png)
+
+工程编译通过,至此,准备阶段完成。
+
+## 3 使用RT-Studio配置BSP驱动
+
+RT-Thread每个BSP已经默认适配了若干片上外设驱动与板载外设驱动,使用RT-Studio将相应的开关直接打开并依据使用环境配置相应参数即可使用。由于各个管脚存在复用功能,所以并不是所有的片上外设驱动与板载外设驱动都可以同时使用,使用时需要结合原理图来合理开启相应的外设驱动。
+
+RT-Thread有许多软件软件包,使用RT-Studio将相应软件包的开关打开便可将软件包添加至工程使用。
+
+<img src="E:/RTT/rt-thread/bsp/wch/risc-v/ch32v208w-r0/figures/6pkgs.png" style="zoom:80%;" />
+
+## 4 联网实操:使用ESP8266模块联网
+
+ESP8266是面向物联网应用的高性价比、高度集成的 Wi-Fi MCU,也可以将其作为一个单独的WIFI模块使用,其实物图如下。ESP8266模组通常支持[AT指令](https://www.rt-thread.org/document/site/#/rt-thread-version/rt-thread-standard/programming-manual/at/at)的操作方式,RT-Thread针对这些支持AT指令的模组提供了一个抽象层,本小结将使用AT组将与ESP8266通讯并连接WIFI。
+
+<img src="E:/RTT/rt-thread/bsp/wch/risc-v/ch32v208w-r0/figures/7esp8266.png" style="zoom:60%;" />
+
+### 4.1 配置板载UART外设
+
+使用AT组件与ESP8266模组通讯采用串口通讯的方式,所以需要再使能一路串口,这里我们使用UART2,串口驱动默认已经支持,我们仅需要在使用时在RT-Studio中打开即可,具体操作方式如下:
+
+![](E:/RTT/rt-thread/bsp/wch/risc-v/ch32v208w-r0/figures/8setting.png)
+
+开启选项后,`ctrl + s`保存设置,串口2即被初始化。
+
+### 4.2 使用RT-Studio配置AT组件
+
+点击左侧的RT-Thread Settings选项,弹出右侧的配置菜单,在搜索栏中输入AT,选择`AT设备 `,使能AT设备:
+
+<img src="E:/RTT/rt-thread/bsp/wch/risc-v/ch32v208w-r0/figures/9AT.png" style="zoom: 50%;" />
+
+选择ESP8266,并配置相应参数,示例如下:
+
+<img src="E:/RTT/rt-thread/bsp/wch/risc-v/ch32v208w-r0/figures/10wifinfo.png" style="zoom:80%;" />
+
+### 4.3 ESP8266模组连接
+
+将板子上的`PA2`管脚与模组的`RX`管脚连接,将`PA3`管脚与模组的`TX`管脚连接,并使用开发板引出的电源为模组供电。
+
+<img src="E:/RTT/rt-thread/bsp/wch/risc-v/ch32v208w-r0/figures/11board.png" style="zoom: 25%;" />
+
+### 4.4 使能内核调试功能。
+
+为了更加直观的了解组件的初始化过程,我们可以使能内核调试功能来观察(不需要时可以关掉),操作方法如下:
+
+![](E:/RTT/rt-thread/bsp/wch/risc-v/ch32v208w-r0/figures/12kdebug.png)
+
+重新编译并烧录固件,shell输出如下:
+
+![](E:/RTT/rt-thread/bsp/wch/risc-v/ch32v208w-r0/figures/14shellinfo.png)
+
+
+
+### 4.5 wifi联网测试
+
+我门在使用AT时已经配置了WIFI的ID与密码,在shell中输入`ping www.baidu.com`命令测试WIFI连接情况。
+
+![](E:/RTT/rt-thread/bsp/wch/risc-v/ch32v208w-r0/figures/15ping.png)
+
+输出类似内容,ESP8266模组便联网成功!
+
+## 5 RTduino组件
+
+[RTduino](https://github.com/Yaochenger/RTduino)是RT-Thread实时操作系统的Arduino生态兼容层,为[RT-Thread社区](https://github.com/RT-Thread/rt-thread)的子社区、Arduino开源项目的下游项目,旨在兼容Arduino社区生态来丰富RT-Thread社区软件包生态(如上千种分门别类的Arduino库,以及Arduino社区优秀的开源项目),并降低RT-Thread操作系统以及与RT-Thread适配的芯片的学习门槛。
+
+### 5.1 配置RTduino
+
+将板载设备驱动中的RTduino选项打开。
+
+![](E:/RTT/rt-thread/bsp/wch/risc-v/ch32v208w-r0/figures/16rtduino.png)
+
+开启选项后,`ctrl + s`保存设置,RTduino软件包即可添加至工程。
+
+### 5.2 使用RTduino
+
+在`arduino_main.cpp`中会看到熟悉的`void setup(void)`与`void loop(void)`,至此我们便可以在此像使用arduino官方板一样使用该BSP,示例代码如下:
+
+```c++
+#include <Arduino.h>
+
+void setup(void)
+ {
+     /* put your setup code here, to run once: */
+    pinMode(LED_BUILTIN, OUTPUT);
+ }
+
+void loop(void)
+{
+    /* put your main code here, to run repeatedly: */
+    digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
+    delay(100);
+}
+
+```
+
+ 工程默认执行一个LED闪烁的功能,ch32v208w-r0这款板子默认板载LED不与管脚直接连接,用户在使用LED时需要使用杜邦线手动将LED与控制管脚连接起来,现象如下图所示:
+
+<img src="E:/RTT/rt-thread/bsp/wch/risc-v/ch32v208w-r0/figures/17led.png" style="zoom: 25%;" />
+
+至此ch32v208w-r0的基础环境便搭建测试完毕!
+

+ 95 - 60
bsp/wch/risc-v/ch32v208w-r0/readme.md

@@ -1,108 +1,143 @@
-# CH32V208W-R0 BSP 说明
+# CH32V208W-R0 User Guide
 
-**中文**
+**英文** | [中文](./README_ZN.md)
 
-## 1 开发板简介
+The CH32V208W-R0 supports RT-Studio projects, and this tutorial gives an example of development instructions for the RT-Studio environment.
 
-CH32V208W-R0 是 WCH 推出的一款基于 RISC-V 内核的开发板,最高主频为 144Mhz。比较适合入门学习 RISC-V 架构。
+## 1 Preparation Stage
 
-![board](./figures/ch32v208.png)
+- Pull the github repository for rt-thread locally, [link address](https://github.com/RT-Thread/rt-thread).
+- Download and install RT-Thread Studio, [link to address](https://www.rt-thread.org/studio.html).
+- Prepare the ESP8266 module.
 
-**基本特性:**
+## 2 BSP Start Stage
 
-- MCU:CH32V208WBU6,主频 144MHz,FLASH和RAM可配置
-- LED:2个。
-- 按键:3个 Download  ,Reset, User 。
-- USB:2个,Tpye-C。
-- 网口:1个,内置 10M PHY。
-- 板上无 WCH-Link 下载调试工具,需外接。
+### 2.1 Click on the file and select the import option.
 
-## 2 编译说明
+<img src="./figures_en/1import_en.png" style="zoom:80%;" />
 
-板级包支持 RISC-V GCC 开发环境,以下是具体版本信息:
+### 2.2 Select to import RT-Thread BSP into the workspace
 
-| IDE/编译器 | 已测试版本           |
-| ---------- | -------------------- |
-| GCC        | WCH RISC-V GCC 8.2.0 |
+<img src="./figures_en/2workspace_en.png" style="zoom:80%;" />
 
-## 3 使用说明
+<div STYLE="page-break-after: always;"></div>
 
->本章节是为刚接触 RT-Thread 的新手准备的使用说明,遵循简单的步骤即可将 RT-Thread 操作系统运行在该开发板上,看到实验效果 。
+### 2.3 Fill in the project information according to the example
 
-### 3.1 使用Env编译BSP
+<img src="./figures_en/3info_en.png" style="zoom:80%;" />
 
-本节讲解如何使用Env工具来编译BSP工程。
+### 2.4 Configuration Engineering
 
-#### 3.1.1 编译BSP
+After importing the project, there is a reference document readme in the root directory of the project, first of all, follow the readme.md for basic configuration
 
-1. [下载WCH编译工具链](https://github.com/NanjingQinheng/sdk-toolchain-RISC-V-GCC-WCH/archive/refs/tags/V1.0.0.zip)
-2. 下载Env工具[最新版本](https://github.com/RT-Thread/env-windows/releases)
-3. 下载RT-Thread[最新源码](https://github.com/RT-Thread/rt-thread/archive/refs/heads/master.zip)
-4. 并在当前BSP根目录下打开Env工具并执行 `scons --exec-path=D:\sdk-toolchain-RISC-V-GCC-WCH-1.0.0\bin` 命令,在指定工具链位置的同时直接编译。
-5. 编译完成之后会生成 **rtthread.bin** 文件。
+In order to reduce the memory increase caused by the standard library added during linking, we can choose to use the relatively small memory consumption of newlib, as follows:
 
-![sconscompile](./figures/sconscompile.jpg)
+<img src="./figures/13newlib.png" style="zoom:67%;" />
 
-#### 3.1.2 硬件连接
+### 2.5 Compiling the project
 
-使用数据线连接板载 wch-link 到 PC,打开电源开关。
+Click on the compile option:
 
-#### 3.1.3 下载
+![](./figures_en/4build_en.png)
 
-打开 WCH RISC-V MCU ProgrammerTool 下载软件,选择刚刚生成的 **rtthread.bin**  文件,进行下载。
+Compile result:
 
-![tool](./figures/tool.png)
+![](./figures/5result.png)
 
-#### 3.1.4 运行结果
+The project compiles and passes, and thus the preparation phase is completed.
 
-在终端工具里打开板载 wch-link 串口(WCHDapLink SERIAL,默认115200-8-1-N),复位设备后,在串口上可以看到 RT-Thread 的输出信息:
+## 3 Configuring the BSP driver with RT-Studio
 
-![end](./figures/end.png)
+Each BSP of RT-Thread has been configured with several on-chip peripheral drivers and onboard peripheral drivers by default, use RT-Studio to turn on the corresponding switches directly and configure the corresponding parameters according to the usage environment to use. Due to the multiplexing function of each pin, not all on-chip peripheral drivers and onboard peripheral drivers can be used at the same time, so you need to combine them with the schematic to enable the corresponding peripheral drivers.
 
-### 3.2 使用VSCode编译工程
+RT-Thread has a number of software packages, which can be added to the project by turning on the corresponding package switch using RT-Studio.
 
-在Env终端中敲入命令 `scons --target=vsc` 来生成VSCode工程. 接着敲入命令 `code .` 来打开VSCode.
+<img src="./figures_en/6pkgs_en.png" style="zoom:80%;" />
 
-使用 **VSCode 终端** 敲入命令 `scons -j12 --exec-path=D:\sdk-toolchain-RISC-V-GCC-WCH-1.0.0bin` 来编译工程。
+## 4 Networking with ESP8266 modules
 
-![vscode-terminal](./figures/vscode-terminal.png)
+The ESP8266 is a cost-effective, highly integrated Wi-Fi MCU for IoT applications, and can also be used as a standalone WIFI module with the following physical diagram. ESP8266 modules usually support [AT](https://www.rt-thread.org/document/site/#/rt- thread-version/rt-thread-standard/programming-manual/at/at), RT-Thread provides an abstraction layer for these modules that support AT instructions, and this summary will use the AT group to communicate with ESP8266 and connect WIFI.
 
-### 3.3 导入 RT-Thread Studio 工程
+<img src="./figures/7esp8266.png" style="zoom:60%;" />
 
-#### 3.3.1 导入
+### 4.1 Configuring Onboard UART Peripherals
 
-打开 RT-Thread Studio 后点击:文件->导入:
+Using the AT component to communicate with the ESP8266 module using serial communication, so we need to enable one more serial port, here we use UART2, the serial driver is already supported by default, we just need to open it in RT-Studio when we use it, as follows:
 
-![import](./figures/import.png)
+![](./figures_en/8setting_en.png)
 
-选择“RT-Thread Bsp 到工作空间中”:
+After turning on the option, `ctrl + s` saves the settings and serial port 2 is initialized.
 
-![windows](./figures/windows.png)
+### 4.2 Configuring AT components with RT-Studio
 
-填写项目信息,Bsp 根目录为 `\rt-thread\bsp\wch\risc-v\ch32v307v-r1` 目录:
+Click on the RT-Thread Settings option on the left, the configuration menu on the right pops up, type AT in the search field, select `AT device` and enable the AT device: 
 
-![config](./figures/config.png)
+<img src="./figures_en/9AT_en.png" style="zoom: 50%;" />
 
-#### 3.3.2 配置环境
+Select the ESP8266 and configure the appropriate parameters, as shown in the example below.
 
-工程导入后进行编译环境的设置,首先点击“打开构建设置”进入设置界面:
+<img src="./figures_en/10wifinfo_en.png" style="zoom:80%;" />
 
-![set](./figures/set.png)
+### 4.3 ESP8266 module connection
 
-将编译链路径复制到 Toolchain path 中:
+Connect the `PA2` pin on the board to the `RX` pin of the module, connect the `PA3` pin to the `TX` pin of the module, and power the module using the power supply pinout from the development board.
 
-![toolchain](./figures/toolchain.png)
+<img src="./figures/11board.png" style="zoom: 25%;" />
 
-如图更改 Prefix :
+### 4.4 Enabling kernel debugging.
 
-![prefix](./figures/prefix.png)
+For a more intuitive understanding of the component initialization process, we can enable the kernel debugging feature to observe it (you can turn it off when not needed) by doing the following:
 
-进行工具设置:
+![](./figures_en/12kdebug_en.png)
 
-![toolset](./figures/toolset.png)
+Recompile and burn the firmware, the shell output is as follows:
 
-#### 3.3.3 编译
+![](./figures/14shellinfo.png)
 
-编译结果如下:
+### 4.5 wifi networking test
 
-![success](./figures/success.png)
+My door has configured the WIFI ID and password when using AT, enter the `ping www.baidu.com` command in the shell to test the WIFI connection.
+
+![](./figures/15ping.png)
+
+Output similar content, the ESP8266 module is connected successfully!
+
+### 5 RTduino components
+
+[RTduino](https://github.com/Yaochenger/RTduino) is the Arduino eco-compatible layer of the RT-Thread real-time operating system, and is a sub-community of the [RT-Thread community](https://github.com/RT-Thread/rt- thread), the downstream project of the Arduino open source project, aims to be compatible with the Arduino community ecology to enrich the RT-Thread community package ecology (such as thousands of different Arduino libraries, as well as the excellent open source projects of the Arduino community), and to reduce the learning threshold of the RT-Thread operating system and the chips compatible with RT-Thread. and RT-Thread-adapted chips.
+
+#### 5.1 Configuring RTduino
+
+Turn on the RTduino option in the onboard device driver.
+
+![](./figures_en/16rtduino_en.png)
+
+After turning on the option, `ctrl + s` saves the settings and the RTduino package can be added to the project.
+
+#### 5.2 Using RTduino
+
+In `arduino_main.cpp` you will see the familiar `void setup(void)` and `void loop(void)`, so we can use the BSP here like the official arduino board, the sample code is as follows:
+
+```c++
+#include <Arduino.h>
+
+void setup(void)
+ {
+     /* put your setup code here, to run once: */
+    pinMode(LED_BUILTIN, OUTPUT).
+ }
+
+void loop(void)
+{
+    /* put your main code here, to run repeatedly: */
+    digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN)).
+    delay(100).
+}
+
+```
+
+ By default, the project performs a blinking LED function. ch32v208w-r0, the default on-board LED is not directly connected to the pin, the user needs to manually connect the LED to the control pin using a duplex cable, the phenomenon is shown below:
+
+<img src="./figures/17led.png" style="zoom: 25%;" />
+
+So the basic environment of ch32v208w-r0 is built and tested!