Skip to content

WR2LE Wi-Fi Module

by Tuya Inc. - product page

Information  
Board code wr2le
MCU Realtek RTL8710BX
Series AmebaZ
Partition layout Tuya (2x 788k apps)
Specifications  
Frequency 62.5 MHz
Flash size 2 MiB
RAM size 256 KiB
Voltage 3.0V - 3.6V
I/O 5x GPIO, 5x PWM, 1x UART
Wi-Fi 802.11 b/g/n

Usage

Board code: wr2le

In platformio.ini:

[env:wr2le]
platform = libretiny
board = wr2le
framework = arduino

In ESPHome YAML:

rtl87xx:
  board: wr2le

Quick flashing guide

Pin Connection
PA29 / RX2 TX of USB-UART adapter
PA30 / TX2 RX of USB-UART adapter
PA29 (strapping pin) GND to enter download mode
CEN (Chip-Enable) GND to reset the chip
  1. Connect the USB-UART adapter.
  2. Connect PA29 (TX2) to GND.
  3. Power-cycle the device or briefly short CEN to GND.
  4. Disconnect PA29 from GND, keep connected to USB-UART.
  5. Start the flashing process.

Pinout

Pinout

Pin functions

Name(s) UART I²C SPI PWM Other
PA05 PWM4
PA12 PWM3
PA14 PWM0 SWCLK
PA15 PWM1 SWDIO
PA22 PWM5

Flash memory map

Flash size: 2 MiB / 2,097,152 B / 0x200000

Hex values are in bytes.

Name Code Start Length End
Boot XIP boot_xip 0x000000 16 KiB / 0x4000 0x004000
Boot RAM boot_ram 0x004000 16 KiB / 0x4000 0x008000
(reserved) - 0x008000 4 KiB / 0x1000 0x009000
System Data system 0x009000 4 KiB / 0x1000 0x00A000
Calibration calibration 0x00A000 4 KiB / 0x1000 0x00B000
OTA1 Image ota1 0x00B000 788 KiB / 0xC5000 0x0D0000
OTA2 Image ota2 0x0D0000 788 KiB / 0xC5000 0x195000
LibreTiny Storage kvs 0x195000 32 KiB / 0x8000 0x19D000
User Data userdata 0x19D000 392 KiB / 0x62000 0x1FF000
Tuya Storage tuya 0x1EB000 84 KiB / 0x15000 0x200000
RDP rdp 0x1FF000 4 KiB / 0x1000 0x200000