boards/realtek/rtl87x2g_evb_a/doc/index.rst
.. zephyr:board:: rtl87x2g_evb_a
Overview
RTL87x2G Model A evaluation board works along with an interchangeable daughterboard that houses an RTL87x2G series SoC.
The RTL87x2G Model A evaluation board is compatible with the following daughterboards:
.. note:: The RTL8762GC is currently not supported in Zephyr due to its reliance on external flash memory, which results in a variable flash size configuration.
Hardware
The RTL87x2G series comprises various chip types, each supporting different hardware features.
Below are the common hardware features of the RTL87x2G series:
For detailed hardware information regarding specific part numbers of the RTL87x2G series, please refer to the RTL87x2G Introduction_.
The RTL87x2G Model A Evaluation Board supports the following features:
.. zephyr:board-supported-hw::
Refer to the RTL87x2G Model A EVB Interfaces Distribution_ for detailed information about the board interfaces.
The RTL87x2G series SoC is configured to use the internal 32KHz clock as a source for the system clock.
The RTL87x2G series SoC has 6 UARTs. By default, UART2 is configured for the console and log output.
FLashing
Before flashing, please ensure the :ref:runner_mpcli is installed. This is the default flashing runner for the RTL87x2G series SoCs.
To successfully run Zephyr on the RTL87x2G board, six essential images provided by Realtek must be programmed into the board, in addition to the Zephyr image.
To fetch these essential images, run the following command:
.. code-block:: console
west blobs fetch hal_realtek --allow-regex 'bee/rtl87x2g/.*'
Enter Download Mode
The board is flashed through the serial interface provided by the on-board FT232RL USB-to-UART converter. Please follow these procedures to set up the hardware and enter download mode:
.. image:: img/rtl87x2g_evb_a-download-mode.webp :align: center :alt: rtl87x2g_evb_a-download-mode
After entering download mode, run the following command from the directory containing a build folder:
.. code-block:: console
west flash --port <port_name> --mp-json <zephyr workspace>/modules/hal/realtek/bee/tools/mpcli/configs/rtl87x2g_essential_images.json
.. note::
build directory resides. If not, you must specify the build directory using the --build-dir or -d option.Follow the steps below to build and flash the :zephyr:code-sample:hello_world application.
.. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: rtl87x2g_evb_a/rtl8762gru :goals: build flash :flash-args: --port <port_name>
Enter Normal Mode
After successfully flashing the Zephyr image:
Visualizing the message
The Zephyr console uses the same UART interface as the flashing process. Ensure the USB cable and jumpers remain connected as described above.
#. Open a Serial Terminal:
#. Reset the Board:
Hello World! rtl87x2g_evb_a/rtl8762gru in your terminal.Debugging
You can debug an application in the usual way using a J-Link debugger.
For J-link configuration details, please refer to the RTL87x2G J-Link Setup Guide_. The J-Link wiring diagram is shown below:
.. image:: img/rtl87x2g_evb_a-jlink-wiring.webp :align: center :alt: rtl87x2g_evb_a-jlink-wiring
Here is an example for the :zephyr:code-sample:hello_world application.
.. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: rtl87x2g_evb_a/rtl8762gru :maybe-skip-config: :goals: debug
References
.. target-notes::
.. _RTL87x2G Introduction: https://www.realmcu.com/en/Home/Product/RTL8762G-RTL877xG-Series
.. _RTL87x2G Model A EVB Interfaces Distribution: https://docs.realmcu.com/sdk/rtl87x2g/common/en/latest/doc/evb_guide/text_en/model_a.html#interfaces-distribution
.. _RTL87x2G J-Link Setup Guide: https://github.com/rtkconnectivity/realtek-zephyr-project/wiki/J%E2%80%90Link-Setup-Guide