|
| 1 | +.. zephyr:board:: ch32v303evt |
| 2 | +
|
| 3 | +Overview |
| 4 | +******** |
| 5 | + |
| 6 | +The `WCH`_ CH3V303EVT hardware provides support for QingKe 32-bit RISC-V4F |
| 7 | +processor. |
| 8 | + |
| 9 | +The `WCH webpage on CH32V303`_ contains |
| 10 | +the processor's information and the datasheet. |
| 11 | + |
| 12 | +Hardware |
| 13 | +******** |
| 14 | + |
| 15 | +The QingKe 32-bit RISC-V4F processor of the WCH CH32V303EVT is clocked by an external |
| 16 | +32 MHz crystal or the internal 8 MHz oscillator and runs up to 144 MHz. |
| 17 | +The CH32V303 SoC features 8 USART, 4 GPIO ports, 3 SPI, 2 I2C, 2 ADC, RTC, |
| 18 | +CAN, USB Host/Device, and 4 OPA. |
| 19 | + |
| 20 | +Supported Features |
| 21 | +================== |
| 22 | + |
| 23 | +.. zephyr:board-supported-hw:: |
| 24 | +
|
| 25 | +Programming and Debugging |
| 26 | +************************* |
| 27 | + |
| 28 | +Applications for the ``ch32v303evt`` board target can be built and flashed |
| 29 | +in the usual way (see :ref:`build_an_application` and :ref:`application_run` |
| 30 | +for more details); however, an external programmer (like the `WCH LinkE`_) is required since the board |
| 31 | +does not have any built-in debug support. |
| 32 | + |
| 33 | +Flashing |
| 34 | +======== |
| 35 | + |
| 36 | +You can use ``minichlink`` to flash the board. Once ``minichlink`` has been set |
| 37 | +up, build and flash applications as usual (see :ref:`build_an_application` and |
| 38 | +:ref:`application_run` for more details). |
| 39 | + |
| 40 | +Here is an example for the :zephyr:code-sample:`hello_world` application. |
| 41 | + |
| 42 | +.. zephyr-app-commands:: |
| 43 | + :zephyr-app: samples/hello_world |
| 44 | + :board: ch32v303evt |
| 45 | + :goals: build flash |
| 46 | + |
| 47 | +Debugging |
| 48 | +========= |
| 49 | + |
| 50 | +This board can be debugged via OpenOCD using the WCH openOCD liberated fork, available at https://github.com/jnk0le/openocd-wch. |
| 51 | + |
| 52 | +References |
| 53 | +********** |
| 54 | + |
| 55 | +.. target-notes:: |
| 56 | + |
| 57 | +.. _WCH: http://www.wch-ic.com |
| 58 | +.. _WCH webpage on CH32V303: https://www.wch-ic.com/products/CH32V303.html |
| 59 | +.. _WCH LinkE: https://www.wch-ic.com/products/WCH-Link.html |
0 commit comments