YD-CH32V307VCT6 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:
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 compile the BSP in Linux.
Check board connection:
wch-isp list
0: BTVER v2.9 UID 10-46-89-26-3b-38-d4-a4 [0x1770] CH32V307VCT6
MCU current flash size: 256 Kbyte
Note that Chip Mem here is set to 256K ROM + 64K RAM (see Table 2-1 of datasheet CH32V307, and chapter 32.6 "User Option Bytes" of Reference Manual CH32V2x_V3x).
Download firmware to board:
wch-isp -p flash ./rtthread.bin && wch-isp reset
In the terminal tool, open the converter serial port (default 115200-8-1-N), and after resetting the device, you can see the output information of RT-Thread on the serial port:
\ | /
- RT - Thread Operating System
/ | \ 5.1.0 build Jan 6 2024 17:12:03
2006 - 2022 Copyright by RT-Thread team
SystemClk: 144000000 Hz
msh >
On board LEDs (red and blue) blinking.