|
| 1 | +.. _gd32f350r_eval: |
| 2 | + |
| 3 | +GigaDevice GD32F350R-EVAL |
| 4 | +######################### |
| 5 | + |
| 6 | +Overview |
| 7 | +******** |
| 8 | + |
| 9 | +The GD32F350R-EVAL board is a hardware platform that enables design and debug |
| 10 | +of the GigaDevice F350 Cortex-M4F High Performance MCU. |
| 11 | + |
| 12 | +The GD32F350RBT6 features a single-core ARM Cortex-M4F MCU which can run up |
| 13 | +to 108-MHz with flash accesses zero wait states, 128kB of Flash, 16kB of |
| 14 | +SRAM and 55 GPIOs. |
| 15 | + |
| 16 | +.. image:: img/gd32f350r_eval.png |
| 17 | + :align: center |
| 18 | + :alt: gd32f350r_eval |
| 19 | + |
| 20 | +Hardware |
| 21 | +******** |
| 22 | + |
| 23 | +- GD32F350RBT6 MCU |
| 24 | +- AT24C02C 2Kb EEPROM |
| 25 | +- 4 x User LEDs |
| 26 | +- 4 x User Push buttons |
| 27 | +- 1 x USART (RS-232 at J2 connector) |
| 28 | +- 1 x POT connected to an ADC input |
| 29 | +- Headphone interface |
| 30 | +- Micro SD Card Interface |
| 31 | +- 2.4'' TFT-LCD (36x48) |
| 32 | +- GD-Link on board programmer |
| 33 | +- J-Link/SWD connector |
| 34 | + |
| 35 | +For more information about the GD32F350 SoC and GD32F350R-EVAL board: |
| 36 | + |
| 37 | +- `GigaDevice Cortex-M4F Stretch Performance SoC Website`_ |
| 38 | +- `GD32F350xx Datasheet`_ |
| 39 | +- `GD32F3x0 User Manual`_ |
| 40 | +- `GD32F350R-EVAL User Manual`_ |
| 41 | + |
| 42 | +Supported Features |
| 43 | +================== |
| 44 | + |
| 45 | +The board configuration supports the following hardware features: |
| 46 | + |
| 47 | +.. list-table:: |
| 48 | + :header-rows: 1 |
| 49 | + |
| 50 | + * - Peripheral |
| 51 | + - Kconfig option |
| 52 | + - Devicetree compatible |
| 53 | + * - NVIC |
| 54 | + - N/A |
| 55 | + - :dtcompatible:`arm,v7m-nvic` |
| 56 | + * - SYSTICK |
| 57 | + - N/A |
| 58 | + - N/A |
| 59 | + * - USART |
| 60 | + - :kconfig:`CONFIG_SERIAL` |
| 61 | + - :dtcompatible:`gd,gd32-usart` |
| 62 | + * - PINMUX |
| 63 | + - :kconfig:`CONFIG_PINCTRL` |
| 64 | + - :dtcompatible:`gd,gd32-pinctrl-af` |
| 65 | + |
| 66 | +Serial Port |
| 67 | +=========== |
| 68 | + |
| 69 | +The GD32F350R-EVAL board has one serial communication port. The default port |
| 70 | +is USART0 with TX connected at PA9 and RX at PA10. |
| 71 | + |
| 72 | +Programming and Debugging |
| 73 | +************************* |
| 74 | + |
| 75 | +Before programming your board make sure to configure boot and serial jumpers as follows: |
| 76 | + |
| 77 | +- J4: Select 2-3 for both (labeled as ``L``) |
| 78 | +- J13: Select 1-2 position (labeled as ``USART``) |
| 79 | + |
| 80 | +Using GD-Link |
| 81 | +============= |
| 82 | + |
| 83 | +The GD32F350R-EVAL includes an onboard programmer/debugger (GD-Link) which |
| 84 | +allows flash programming and debugging over USB. There is also a SWD header |
| 85 | +(J3) which can be used with tools like Segger J-Link. |
| 86 | + |
| 87 | +#. Build the Zephyr kernel and the :ref:`hello_world` sample application: |
| 88 | + |
| 89 | + .. zephyr-app-commands:: |
| 90 | + :zephyr-app: samples/hello_world |
| 91 | + :board: gd32f350r_eval |
| 92 | + :goals: build |
| 93 | + :compact: |
| 94 | + |
| 95 | +#. Run your favorite terminal program to listen for output. On Linux the |
| 96 | + terminal should be something like ``/dev/ttyUSB0``. For example: |
| 97 | + |
| 98 | + .. code-block:: console |
| 99 | +
|
| 100 | + minicom -D /dev/ttyUSB0 -o |
| 101 | +
|
| 102 | + The -o option tells minicom not to send the modem initialization |
| 103 | + string. Connection should be configured as follows: |
| 104 | + |
| 105 | + - Speed: 115200 |
| 106 | + - Data: 8 bits |
| 107 | + - Parity: None |
| 108 | + - Stop bits: 1 |
| 109 | + |
| 110 | +#. To flash an image: |
| 111 | + |
| 112 | + .. zephyr-app-commands:: |
| 113 | + :zephyr-app: samples/hello_world |
| 114 | + :board: gd32f350r_eval |
| 115 | + :goals: flash |
| 116 | + :compact: |
| 117 | + |
| 118 | + You should see "Hello World! gd32f350r_eval" in your terminal. |
| 119 | + |
| 120 | +#. To debug an image: |
| 121 | + |
| 122 | + .. zephyr-app-commands:: |
| 123 | + :zephyr-app: samples/hello_world |
| 124 | + :board: gd32f350r_eval |
| 125 | + :goals: debug |
| 126 | + :compact: |
| 127 | + |
| 128 | +.. _GigaDevice Cortex-M4F Stretch Performance SoC Website: |
| 129 | + https://www.gigadevice.com/products/microcontrollers/gd32/arm-cortex-m4/stretch-performance-line/ |
| 130 | + |
| 131 | +.. _GD32F350xx Datasheet: |
| 132 | + http://gd32mcu.com/download/down/document_id/133/path_type/1 |
| 133 | + |
| 134 | +.. _GD32F3x0 User Manual: |
| 135 | + http://gd32mcu.com/download/down/document_id/136/path_type/1 |
| 136 | + |
| 137 | +.. _GD32F350R-EVAL User Manual: |
| 138 | + https://www.tme.com/Document/ff0a3609934053c07d78ef8662781da9/GD32350R-EVAL%20User%20Manual-V1.0.pdf |
0 commit comments