|
| 1 | +.. zephyr:board:: ch32v006evt |
| 2 | +
|
| 3 | +Overview |
| 4 | +******** |
| 5 | + |
| 6 | +The `WCH`_ CH32V006EVT is an evaluation board for the RISC-V based CH32V006K8U6 |
| 7 | +SOC. |
| 8 | + |
| 9 | +The board is equipped with a power LED, reset button, USB port for power, and |
| 10 | +two user LEDs. The `WCH webpage on CH32V006`_ contains the processor's |
| 11 | +information and the datasheet. |
| 12 | + |
| 13 | +Hardware |
| 14 | +******** |
| 15 | + |
| 16 | +The QingKe 32-bit RISC-V2C processor of the WCH CH32V006EVT is clocked by an |
| 17 | +external crystal and runs at 48 MHz. |
| 18 | + |
| 19 | +Supported Features |
| 20 | +================== |
| 21 | + |
| 22 | +.. zephyr:board-supported-hw:: |
| 23 | +
|
| 24 | +Connections and IOs |
| 25 | +=================== |
| 26 | + |
| 27 | +LED |
| 28 | +--- |
| 29 | + |
| 30 | +* LED1 = Unconnected. Connect to an I/O pin (PD0). |
| 31 | +* LED2 = Unconnected. Connect to an I/O pin (PB4). |
| 32 | + |
| 33 | +Programming and Debugging |
| 34 | +************************* |
| 35 | + |
| 36 | +.. zephyr:board-supported-runners:: |
| 37 | +
|
| 38 | +Applications for the ``ch32v006evt`` board can be built and flashed |
| 39 | +in the usual way (see :ref:`build_an_application` and :ref:`application_run` |
| 40 | +for more details); however, an external programmer is required since the board |
| 41 | +does not have any built-in debug support. |
| 42 | + |
| 43 | +Connect the programmer to the following pins on the PCB: |
| 44 | + |
| 45 | +* VCC = VCC (do not power the board from the USB port at the same time) |
| 46 | +* GND = GND |
| 47 | +* SWIO = PD1 |
| 48 | + |
| 49 | +Flashing |
| 50 | +======== |
| 51 | + |
| 52 | +You can use minichlink_ to flash the board. Once ``minichlink`` has been set |
| 53 | +up, build and flash applications as usual (see :ref:`build_an_application` and |
| 54 | +:ref:`application_run` for more details). |
| 55 | + |
| 56 | +Here is an example for the :zephyr:code-sample:`blinky` application. |
| 57 | + |
| 58 | +.. zephyr-app-commands:: |
| 59 | + :zephyr-app: samples/basic/blinky |
| 60 | + :board: ch32v006evt |
| 61 | + :goals: build flash |
| 62 | + |
| 63 | +Debugging |
| 64 | +========= |
| 65 | + |
| 66 | +This board can be debugged via OpenOCD or ``minichlink``. |
| 67 | + |
| 68 | +Testing the LED on the WCH CH32V006EVT |
| 69 | +************************************** |
| 70 | + |
| 71 | +The `blinky` sample can be used to test that the LEDs on the board are working |
| 72 | +properly with Zephyr: |
| 73 | + |
| 74 | +* :zephyr:code-sample:`blinky` |
| 75 | + |
| 76 | +You can build and flash the examples to make sure Zephyr is running |
| 77 | +correctly on your board. The LED definitions can be found in |
| 78 | +:zephyr_file:`boards/wch/ch32v006evt/ch32v006evt.dts`. |
| 79 | + |
| 80 | +References |
| 81 | +********** |
| 82 | + |
| 83 | +.. target-notes:: |
| 84 | + |
| 85 | +.. _WCH: http://www.wch-ic.com |
| 86 | +.. _WCH webpage on CH32V006: https://www.wch-ic.com/downloads/CH32V006DS0_PDF.html |
| 87 | +.. _minichlink: https://github.com/cnlohr/ch32fun/tree/master/minichlink |
0 commit comments