rtl872xd_evb

Overview

The Realtek RTL872xD Series is a Combo SoC that supports dual-band Wi-Fi 4 (2.4GHz + 5GHz) and BLE 5.0 specifications. With ultra-low power consumption, complete encryption strategy and abundant peripheral resources, it is widely in various products such as Home appliance control panel, Smart door, Smart toy, Smart voice, Smart remote control, Bluetooth gateway, Headset, Wi-Fi gamepad, Smart POS, etc. For more information, check RTL872XD-EVB.

The features include the following:

  • Dual cores: Real-M300 and Real-M200

  • 512KB + 64KB on-chip SRAM

  • 802.11 a/b/g/n 1 x 1, 2.4GHz + 5GHz

  • Supports BLE 5.0

  • Peripheral Interface:

    • Multi-communication interfaces: SPI x 2, UART x 4, I2C x 1

    • Hardware Key-scan interface supports up to 36 keys

    • Hardware Quad-decoder supports statistical and comparison functions

    • Hardware IR transceiver can easily adapt to various IR protocols

    • SDIO/USB high speed interface (both host and slave)

    • Supports real-time clock together with 18 channels of PWM output

    • Supports 5 channels of touch pad and 6 channels of GDMA

    • Supports 7 channels of normal 12-bit ADC and 1 channel of VBAT

    • Integrated LCDC supports both RGB and I8080 interfaces

    • Integrated hardware crypto engine supports AES256/192/128 and SHA256

    • Integrated audio codec

For more information, Get application note and datasheet at RTL872xCS/D Series depending on chip you use.

Supported Features

The rtl872xd_evb board supports the hardware features listed below.

on-chip / on-board
Feature integrated in the SoC / present on the board.
2 / 2
Number of instances that are enabled / disabled.
Click on the label to see the first instance of this feature in the board/SoC DTS files.
vnd,foo
Compatible string for the Devicetree binding matching the feature.
Click on the link to view the binding documentation.

rtl872xd_evb/rtl872xd target

Type

Location

Description

Compatible

CPU

on-chip

ARM Cortex-M33 CPU1

arm,cortex-m33

Clock control

on-chip

Generic fixed-rate clock provider1

fixed-clock

GPIO & Headers

on-chip

Realtek Ameba GPIO controller2

realtek,ameba-gpio

Interrupt controller

on-chip

ARMv8-M NVIC (Nested Vectored Interrupt Controller)1

arm,v8m-nvic

MTD

on-chip

Flash node1

soc-nv-flash

Pin control

on-chip

Realtek Ameba pinctrl is a singleton node responsible for controlling pin function selection and pin properties1

realtek,ameba-pinctrl

Serial controller

on-chip

Ameba LOGUART1

realtek,ameba-loguart

SRAM

on-chip

Generic on-chip SRAM1

mmio-sram

Timer

on-chip

ARMv8-M System Tick1

arm,armv8m-systick

Prerequisites

Realtek HAL requires binary blobs in order work. Run the command below to retrieve those files.

west blobs fetch hal_realtek

Note

It is recommended running the command above after west update.

Building

Here is an example for building the Hello World application.

# From the root of the zephyr repository
west build -b rtl872xd_evb samples/hello_world

Flashing

When the build finishes, downloading images into flash by AmebaImageTool:

See the ApplicationNote chapter Image Tool from documentation links for more details.

  1. Environment Requirements: EX. WinXP, Win 7 or later, Microsoft .NET Framework 4.0.

  2. Connect chip and PC with USB wire.

  3. Choose the Device profiles according to the chip you use.

  4. Select the corresponding serial port and transmission baud rate. The default baud rate is 1500000.

  5. Select the images to be programmed and set the start address and end address according to the flash layout, refer to [ameba_flashcfg.c/Flash_layout].

  6. Click the Download button and start. The progress bar will show the download progress of each image and the log window will show the operation status.

Note

For an empty chip, the bootloader and app image shall be downloaded.

Debugging

Using SWD through PB3(SWD_CLK) and PA27(SWD_DAT).

References