WCH CH32V305F-EVT-R0
Overview
The WCH [1] CH32V305F-EVT-R0 is an evaluation board for the RISC-V based CH32V305FBP6 SOC.
The board is equipped with a power LED, reset button, USB port for power/data, and two user LEDs.
Hardware
The QingKe V4F 32-bit RISC-V processor of the WCH CH32V305F-EVT-R0 is clocked by an external crystal and runs at 144 MHz.
The WCH webpage on CH32V30x [2] contains the processor’s information and the datasheet. WCH CH32V305F-EVT-R0 board schematics can be found on CH32V307 openwch git repository [6]. Note that the documentation for the CH32V305 is located under the CH32V307 pages.
Warning
Most WCH dev kits do not come with the USB CC line pull-downs fitted. To power the board from a USB C adapter you need to fit them. However there is no USB VBUS diode on the board so be careful not to power a device from USB and external supply simultaneously!
Supported Features
The ch32v305f_evt_r0 board supports the hardware features listed below.
- on-chip / on-board
- Feature integrated in the SoC / present on the board.
- 2 / 2
-
Number of instances that are enabled / disabled.
Click on the label to see the first instance of this feature in the board/SoC DTS files. -
vnd,foo -
Compatible string for the Devicetree binding matching the feature.
Click on the link to view the binding documentation.
Connections and IOs
LED
Board LEDs are not connected to SoC in layout. For blinky and threads sample
applications you have to use jumper wires to connect them to I/O pins. You also need
to change leds status to “okay” in boards/wch/ch32v305f_evt_r0/ch32v305f_evt_r0.dts.
P4 header |
P2 header |
|---|---|
LED1 |
PB6 |
LED2 |
PB7 |
Programming and Debugging
The ch32v305f_evt_r0 board supports the runners and associated west commands listed below.
| flash | debug |
|---|
Applications for the ch32v305f_evt_r0 board can be built and flashed
in the usual way (see Building an Application and Run an Application
for more details).
Flashing
You can use minichlink [3] to flash the board. Once minichlink has been set
up, build and flash applications as usual (see Building an Application and
Run an Application for more details). wlink [4] is an alternative tool for using
the WCH programmers. Alternatively, wchisp [5] can be used to flash via the USB bootloader.
Here is an example for the Blinky application.
# From the root of the zephyr repository
west build -b ch32v305f_evt_r0 samples/basic/blinky
west flash
Or you can use Basic thread manipulation sample to test both LEDs.
# From the root of the zephyr repository
west build -b ch32v305f_evt_r0 samples/basic/threads
west flash
Debugging
This board can be debugged via minichlink / openocd.