|
| 1 | +.. zephyr:board:: bluepillplus_ch32v203 |
| 2 | +
|
| 3 | +Overview |
| 4 | +******** |
| 5 | + |
| 6 | +The `WeActStudio`_ Blue Pill Plus CH32V203 hardware provides support for QingKe 32-bit RISC-V4B |
| 7 | +processor and the following devices: |
| 8 | + |
| 9 | +* CLOCK |
| 10 | +* :abbr:`GPIO (General Purpose Input Output)` |
| 11 | +* :abbr:`NVIC (Nested Vectored Interrupt Controller)` |
| 12 | + |
| 13 | +The board is equipped with two LEDs and two Buttons. |
| 14 | +The `WCH webpage on CH32V203`_ contains the processor's manuals. |
| 15 | +The `WeActStudio webpage on BPP`_ contains the Blue Pill's schematic. |
| 16 | + |
| 17 | +Hardware |
| 18 | +******** |
| 19 | + |
| 20 | +The QingKe 32-bit RISC-V4B processor of the Blue Pill Plus CH32V203 is clocked by an external |
| 21 | +8 MHz crystal or the internal 8 MHz oscillator and runs up to 144 MHz. |
| 22 | +The CH32V203 SoC Features 2-4 USART, 4 GPIO ports, 1-2 SPI, 0-2 I2C, 9-16 ADC, RTC, |
| 23 | +CAN, USB Device, USB Host, OPA, and several timers. |
| 24 | + |
| 25 | +Supported Features |
| 26 | +================== |
| 27 | + |
| 28 | +.. zephyr:board-supported-hw:: |
| 29 | +
|
| 30 | +Connections and IOs |
| 31 | +=================== |
| 32 | + |
| 33 | +LED |
| 34 | +--- |
| 35 | + |
| 36 | +* LED0 = Blue User LED |
| 37 | + |
| 38 | +Button |
| 39 | +------ |
| 40 | + |
| 41 | +* SW0 = User Button |
| 42 | + |
| 43 | +Programming and Debugging |
| 44 | +************************* |
| 45 | + |
| 46 | +Applications for the ``bluepillplus_ch32v203`` board target can be built and flashed |
| 47 | +in the usual way (see :ref:`build_an_application` and :ref:`application_run` |
| 48 | +for more details); however, an external programmer is required since the board |
| 49 | +does not have any built-in debug support. |
| 50 | + |
| 51 | +The following pins of the external programmer must be connected to the |
| 52 | +following pins on the PCB: |
| 53 | + |
| 54 | +* VCC = VCC |
| 55 | +* GND = GND |
| 56 | +* SWIO = PA13 |
| 57 | +* SWCLK = PA14 |
| 58 | + |
| 59 | +Flashing |
| 60 | +======== |
| 61 | + |
| 62 | +You can use ``minichlink`` to flash the board. Once ``minichlink`` has been set |
| 63 | +up, build and flash applications as usual (see :ref:`build_an_application` and |
| 64 | +:ref:`application_run` for more details). |
| 65 | + |
| 66 | +Here is an example for the :zephyr:code-sample:`blinky` application. |
| 67 | + |
| 68 | +.. zephyr-app-commands:: |
| 69 | + :zephyr-app: samples/basic/blinky |
| 70 | + :board: bluepillplus_ch32v203 |
| 71 | + :goals: build flash |
| 72 | + |
| 73 | +Debugging |
| 74 | +========= |
| 75 | + |
| 76 | +This board can be debugged via OpenOCD or ``minichlink``. |
| 77 | + |
| 78 | +References |
| 79 | +********** |
| 80 | + |
| 81 | +.. target-notes:: |
| 82 | + |
| 83 | +.. _WeActStudio: https://github.com/WeActStudio |
| 84 | +.. _WCH webpage on CH32V203: https://www.wch-ic.com/products/CH32V203.html |
| 85 | +.. _WeActStudio webpage on BPP: https://github.com/WeActStudio/WeActStudio.BluePill-Plus-CH32 |
0 commit comments