boards/realtek/rtl8721f_evb/doc/index.rst
.. zephyr:board:: rtl8721f_evb
Overview
The Realtek RTL8721F Series is a low-power, single-chip microcontroller featuring dual RISC cores
compatible with the Arm® Cortex®-M55 instruction set, designed for optimized power efficiency,
RF performance, and ultra-low power consumption. It incorporates comprehensive low-power features
such as fine-grained clock gating, multiple power modes, and dynamic power scaling. As a dual-band
(2.4 GHz and 5 GHz) communication controller, the RTL8721F integrates Wi-Fi 6
(802.11a/b/g/n/ac/ax with 20 MHz bandwidth) and Bluetooth Core 5.4 Qualified specifications,
combining a WLAN MAC, a 1T1R-capable WLAN baseband and RF, along with Bluetooth functionality to
deliver complete wireless connectivity solutions. For more information, check RTL8721F-EVB_.
Hardware
The features of RTL8721F include the following:
Dual cores: two Real-M300 (or KM4 thereafter) processors
512KB on-chip SRAM
Wi-Fi 6 (802.11 a/b/g/n/ac/ax), 1T1R, 2.4GHz/5GHz dual-band
Bluetooth 5.0 LE
Peripheral Interface:
Cryptographic hardware acceleration (TRNG, ECC/RSA, SHA-2, AES,Flash XIP decryption)
For more information, refer to the RTL8721F Application Note, the RTL8721F Datasheet, and
the RTL8721F Pinmux Table_, depending on the chip you are using.
.. zephyr:board-supported-hw::
System Requirements
Realtek HAL requires binary blobs in order work. Run the command below to retrieve those files.
.. code-block:: console
west blobs fetch hal_realtek
.. note::
It is recommended running the command above after west update.
Programming and Debugging
.. zephyr:board-supported-runners::
An example of building the :zephyr:code-sample:hello_world application is shown below:
.. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: rtl8721f_evb :goals: build
The standard flash target is supported by the board configuration.
Enter Download Mode
To flash the device, you must first put the SoC into download mode using the on-board FT232RL USB-to-UART converter. Follow these steps:
USB Connection: Connect a USB cable to the USB2UART port.
Enter Download Mode:
Download button.Chip_En button to reset the SoC.Download button after the reset.The SoC is now in download mode and ready to receive firmware.
.. note::
The <port_name> placeholder in the flash command must be replaced with the actual serial port
(e.g., /dev/ttyUSB0 on Linux or COM3 on Windows).
An example for flashing the :zephyr:code-sample:hello_world application is shown below:
.. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: rtl8721f_evb :goals: flash :flash-args: --port <port_name>
Enter Normal Mode
After flashing completes successfully, press the Chip_En button once to reboot the SoC.
The device then boots into normal mode and executes the flashed Zephyr firmware.
Debugging is supported via SWD using a J-Link debug probe connected to PA18 (SWD_CLK) and PA19 (SWD_DAT).
An example debug command for the :zephyr:code-sample:hello_world application:
.. zephyr-app-commands:: :zephyr-app: samples/hello_world :board: rtl8721f_evb :maybe-skip-config: :goals: debug
References
.. target-notes::
.. _RTL8721F-EVB: https://aiot.realmcu.com/en/home.html
.. _RTL8721F Application Note: https://aiot.realmcu.com/cn/latest/
.. _RTL8721F Datasheet: https://aiot.realmcu.com/en/datasheet/index.html
.. _RTL8721F Pinmux Table: https://aiot.realmcu.com/en/pinmux/pinmux_table.html