English | 中文
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.
This document records the execution instruction of the BSP (board support package) provided by the RT-Thread community for the CH32V307V-R1 development board.
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.
Features
For more details about this board, please refer to: CH32V307
The BSP supports the RISC-V GCC development environment, here's the specific version information:
IDE/Compiler | Version Tested |
---|---|
GCC | WCH RISC-V GCC 8.2.0 |
This section is about to introduce how to use Env to compile the BSP.
scons -j12 --exec-path=D:\sdk-toolchain-RISC-V-GCC-WCH-1.0.0bin
command, compile it directly while specifying the toolchain location.Use a data cable to connect the onboard wch-link to the PC, and turn on the power switch.
Open the WCH RISC-V MCU ProgrammerTool, select the rtthread.bin file that we just generated, and download it.
Note that Chip Mem here is set to 224K ROM + 96K RAM.
In the terminal tool, open the onboard wch-link serial port (WCHDapLink SERIAL, default 115200-8-1-N), and after resetting the device, you can see the output information of RT-Thread on the serial port:
In the Env terminal, type command scons --target=vsc
to generate the VSCode project. Then, type command code .
in the Env terminal to open the VSCode.
Use VSCode terminal to type command scons -j12 --exec-path=D:\sdk-toolchain-RISC-V-GCC-WCH-1.0.0bin
to compile the project in VSCode.