From 2bcc22f6b039b36cb3526888daeb1e0463c3b6eb Mon Sep 17 00:00:00 2001 From: "Man, Jianting (Meco)" <920369182@qq.com> Date: Tue, 18 Oct 2022 21:40:42 -0400 Subject: [PATCH] =?UTF-8?q?[ch32v307][readme]=20=E5=A2=9E=E5=8A=A0vscode?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E4=BB=8B=E7=BB=8D=20(#6540)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/wch/risc-v/ch32v307v-r1/README.md | 28 +++++++++++------- bsp/wch/risc-v/ch32v307v-r1/README_zh.md | 17 +++++++---- .../ch32v307v-r1/figures/vscode-terminal.png | Bin 0 -> 44862 bytes 3 files changed, 30 insertions(+), 15 deletions(-) create mode 100644 bsp/wch/risc-v/ch32v307v-r1/figures/vscode-terminal.png diff --git a/bsp/wch/risc-v/ch32v307v-r1/README.md b/bsp/wch/risc-v/ch32v307v-r1/README.md index 4343717b83..e0e555c081 100644 --- a/bsp/wch/risc-v/ch32v307v-r1/README.md +++ b/bsp/wch/risc-v/ch32v307v-r1/README.md @@ -2,7 +2,7 @@ **English** | [中文](README_zh.md) -## Introduction +## 1 Introduction CH32V307V-R1 is a RISC-V core-based development board with a maximum main frequency of 144Mhz. It delivers the best value for developers to try and get started with RISC-V architecture. @@ -29,7 +29,7 @@ By reading the Quickly Get Started section developers can quickly get their hand For more details about this board, please refer to: [CH32V307](https://www.wch.cn/products/CH32V307.html) -## Compiling +## 2 Compiling The BSP supports the RISC-V GCC development environment, here's the specific version information: @@ -37,18 +37,18 @@ The BSP supports the RISC-V GCC development environment, here's the specific ver | ------------ | -------------------- | | GCC | WCH RISC-V GCC 8.2.0 | -## Quickly Get Started +## 3 Quickly Get Started -#### 3.1 Using [Env](https://www.rt-thread.io/download.html?download=Env) to compile BSP +### 3.1 Using [Env](https://www.rt-thread.io/download.html?download=Env) to compile BSP This section is about to introduce how to use Env to compile the BSP. #### 3.1.1 Compile BSP -1. [Download WCH Compile Toolchain](https://github.com/NanjingQinheng/sdk-toolchain-RISC-V-GCC-WCH/archive/refs/tags/V1.0.0.zip) +1. [Download WCH Compile Toolchain](https://github.com/NanjingQinheng/sdk-toolchain-RISC-V-GCC-WCH/releases) 2. [Download the Env tool latest version](https://github.com/RT-Thread/env-windows/releases) 3. [Download the RT-Thread latest code](https://github.com/RT-Thread/rt-thread/archive/refs/heads/master.zip) -4. Open the Env tool in the current BSP root directory and execute the `scons --exec-path=D:sdk-toolchain-RISC-V-GCC-WCH-1.0.0bin` command, compile it directly while specifying the toolchain location. +4. Open the Env tool in the current BSP root directory and execute the `scons -j12 --exec-path=D:\sdk-toolchain-RISC-V-GCC-WCH-1.0.0bin` command, compile it directly while specifying the toolchain location. 5. After compilation, the **rtthread.bin** file will be generated ![sconscompile](./figures/sconscompile.jpg) @@ -72,11 +72,19 @@ In the terminal tool, open the onboard wch-link serial port (WCHDapLink SERIAL, ![end](./figures/end.png) -