Skip to content

Commit 6107ea2

Browse files
authored
[BSP/WCH] fix read me for pkgs --update
1 parent 6e2007e commit 6107ea2

File tree

4 files changed

+17
-7
lines changed

4 files changed

+17
-7
lines changed

bsp/wch/risc-v/ch32v208w-r0/readme.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ The CH32V208W-R0 supports RT-Studio projects, and this tutorial gives an example
1010
- Download and install RT-Thread Studio, [link to address](https://www.rt-thread.org/studio.html).
1111
- Prepare the ESP8266 module.
1212

13+
>NOTE: Please execute `pkgs --update` before `scons`
14+
1315
## 2 BSP Start Stage
1416

1517
### 2.1 Click on the file and select the import option.
@@ -140,4 +142,5 @@ void loop(void)
140142
141143
<img src="./figures/17led.png" style="zoom: 25%;" />
142144
143-
So the basic environment of ch32v208w-r0 is built and tested!
145+
So the basic environment of ch32v208w-r0 is built and tested!
146+

bsp/wch/risc-v/ch32v307v-r1/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,11 @@ This section is about to introduce how to use Env to compile the BSP.
4848
1. [Download WCH Compile Toolchain](https://github.com/NanjingQinheng/sdk-toolchain-RISC-V-GCC-WCH/releases)
4949
2. [Download the Env tool latest version](https://github.com/RT-Thread/env-windows/releases)
5050
3. [Download the RT-Thread latest code](https://github.com/RT-Thread/rt-thread/archive/refs/heads/master.zip)
51-
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.0\bin` command, compile it directly while specifying the toolchain location.
52-
5. After compilation, the **rtthread.bin** file will be generated
51+
4. enter bsp
52+
5. execute `scons --pyconfig-silent`
53+
6. execute `pkgs --update`
54+
7. 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.0\bin` command, compile it directly while specifying the toolchain location.
55+
8. After compilation, the **rtthread.bin** file will be generated
5356

5457
![sconscompile](./figures/sconscompile.jpg)
5558

bsp/wch/risc-v/ch32v307v-r1/README_zh.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,11 @@ CH32V307V-R1 是 WCH 推出的一款基于 RISC-V 内核的开发板,最高主
4040
1. [下载 WCH 编译工具链](https://github.com/NanjingQinheng/sdk-toolchain-RISC-V-GCC-WCH/archive/refs/tags/V1.0.0.zip)
4141
2. 下载 Env 工具[最新版本](https://github.com/RT-Thread/env-windows/releases)
4242
3. 下载 RT-Thread[最新源码](https://github.com/RT-Thread/rt-thread/archive/refs/heads/master.zip)
43-
4. 并在当前 BSP 根目录下打开 Env 工具并执行 `scons --exec-path=D:\sdk-toolchain-RISC-V-GCC-WCH-1.0.0\bin` 命令,在指定工具链位置的同时直接编译。
44-
5. 编译完成之后会生成 **rtthread.bin** 文件。
43+
4. 打开Env工具进入bsp目录
44+
5. 执行`scons --pyconfig-silent`刷新配置
45+
6. 执行`pkgs --update`拉取
46+
7. 执行 `scons --exec-path=D:\sdk-toolchain-RISC-V-GCC-WCH-1.0.0\bin` 命令,在指定工具链位置的同时直接编译。
47+
8. 编译完成之后会生成 **rtthread.bin** 文件。
4548

4649
![sconscompile](./figures/sconscompile.jpg)
4750

bsp/wch/risc-v/yd-ch32v307vct6/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ This section is about to introduce how to compile the BSP in Linux.
5656
3. Install SCons construction tool (similar GNU Make): sudo apt install scons
5757
4. Edit the variable **EXEC_PATH** in file **rtconfig.py** to point to the directory with executable WCH Compile Toolchain (file riscv-none-embed-gcc).
5858
5. Configure RT-Thread and hardware board: scons --menuconfig
59-
6. Start compilation: scons
60-
7. After compilation, the **rtthread.bin** file will be generated
59+
6. Update sdk library: `pkgs --update`
60+
7. Start compilation: scons
61+
8. After compilation, the **rtthread.bin** file will be generated
6162

6263
#### 3.1.2 Download
6364

0 commit comments

Comments
 (0)