RAK3312 WisBlock Core Module
Overview
The RAK3312 WisBlock Core Module is a WisBlock Core module for RAK WisBlock based on the Espressif ESP32-S3 MCU with an integrated Semtech SX1262 LoRa transceiver. It supports triple wireless connectivity with LoRa, BLE, and WiFi, making it highly versatile for a wide range of IoT applications including home automation, sensor networks, and building automation.
Hardware
Supported Features
The rak3312 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.
rak3312/esp32s3/appcpu target
On-target memory for this board target: 416 KiB of RAM, 16 MiB of Flash.
Type |
Location |
Description |
Compatible |
|---|---|---|---|
CPU |
on-chip |
Espressif Xtensa LX7 CPU2 |
|
ADC |
on-chip |
ESP32 ADC2 |
|
Bluetooth |
on-chip |
Bluetooth HCI for Espressif ESP321 |
|
CAN |
on-chip |
ESP32 Two-Wire Automotive Interface (TWAI)1 |
|
Clock control |
on-chip |
ESP32 Clock (Power & Clock Controller Module) Module1 |
|
Counter |
on-chip |
ESP32 Counter Driver based on RTC Main Timer1 |
|
on-chip |
|||
on-chip |
ESP32 counters4 |
||
Cryptographic accelerator |
on-chip |
Espressif ESP32 family AES Hardware Accelerator1 |
|
on-chip |
Espressif ESP32 SHA Hardware Accelerator1 |
||
DMA |
on-chip |
ESP32 GDMA (General Direct Memory Access)1 |
|
Flash controller |
on-chip |
ESP32 flash controller1 |
|
GPIO & Headers |
on-chip |
ESP32 GPIO controller2 |
|
I2C |
on-chip |
ESP32 I2C2 |
|
I2S |
on-chip |
ESP32 I2S2 |
|
Input |
on-chip |
ESP32 touch sensor input1 |
|
Interrupt controller |
on-chip |
ESP32 Interrupt controller1 |
|
IPM |
on-chip |
ESP32 soft inter processor message1 |
|
Mailbox |
on-chip |
ESP32 soft mailbox1 |
|
Memory controller |
on-chip |
ESP32 pseudo-static RAM controller1 |
|
MIPI-DBI |
on-chip |
ESP32 LCD-CAM display interface1 |
|
Miscellaneous |
on-chip |
Espressif Sigma-Delta Modulator (SDM)1 |
|
on-chip |
ESP32 LCD-CAM controller1 |
||
MTD |
on-chip |
Flash node1 |
|
Pin control |
on-chip |
ESP32 pin controller1 |
|
Pulse IO |
on-chip |
Espressif Remote Control Transceiver (RMT) pulse_io controller1 |
|
PWM |
on-chip |
ESP32 LED Control (LEDC)1 |
|
on-chip |
ESP32 Motor Control Pulse Width Modulator (MCPWM)2 |
||
RNG |
on-chip |
ESP32 TRNG (True Random Number Generator)1 |
|
SDHC |
on-chip |
ESP32 SDHC controller1 |
|
on-chip |
ESP32 SDHC controller slot2 |
||
Sensors |
on-chip |
ESP32 internal temperature sensor1 |
|
on-chip |
ESP32 Pulse Counter (PCNT)1 |
||
Serial controller |
on-chip |
ESP32 UART3 |
|
on-chip |
ESP32 UART1 |
||
SPI |
on-chip |
ESP32 SPI controller2 |
|
SRAM |
on-chip |
Generic on-chip SRAM2 |
|
USB |
on-chip |
Espressif USB-OTG full-speed controller (DWC2 compatible) with the internal FS/LS PHY1 |
|
Video |
on-chip |
ESP32 LCD-CAM camera interface1 |
|
Watchdog |
on-chip |
ESP32 watchdog2 |
|
on-chip |
ESP32 XT Watchdog Timer1 |
||
Wi-Fi |
on-chip |
ESP32 SoC Wi-Fi1 |
rak3312/esp32s3/procpu target
On-target memory for this board target: 416 KiB of RAM, 16 MiB of Flash.
Type |
Location |
Description |
Compatible |
|---|---|---|---|
CPU |
on-chip |
Espressif Xtensa LX7 CPU2 |
|
ADC |
on-chip |
ESP32 ADC2 |
|
on-board |
WisBlock ADC Channel Map1 |
||
Bluetooth |
on-chip |
Bluetooth HCI for Espressif ESP321 |
|
CAN |
on-chip |
ESP32 Two-Wire Automotive Interface (TWAI)1 |
|
Clock control |
on-chip |
ESP32 Clock (Power & Clock Controller Module) Module1 |
|
Counter |
on-chip |
ESP32 Counter Driver based on RTC Main Timer1 |
|
on-chip |
ESP32 general-purpose timers4 |
||
on-chip |
ESP32 counters4 |
||
Cryptographic accelerator |
on-chip |
Espressif ESP32 family AES Hardware Accelerator1 |
|
on-chip |
Espressif ESP32 SHA Hardware Accelerator1 |
||
DMA |
on-chip |
ESP32 GDMA (General Direct Memory Access)1 |
|
Flash controller |
on-chip |
ESP32 flash controller1 |
|
GPIO & Headers |
on-chip |
ESP32 GPIO controller2 |
|
on-board |
WisBlock I/O Slot Connector1 |
||
I2C |
on-chip |
ESP32 I2C2 |
|
I2S |
on-chip |
ESP32 I2S2 |
|
Input |
on-chip |
ESP32 touch sensor input1 |
|
Interrupt controller |
on-chip |
ESP32 Interrupt controller1 |
|
IPM |
on-chip |
ESP32 soft inter processor message1 |
|
LoRa |
on-chip |
Semtech SX1262 LoRa Modem1 |
|
Mailbox |
on-chip |
ESP32 soft mailbox1 |
|
Memory controller |
on-chip |
ESP32 pseudo-static RAM controller1 |
|
MIPI-DBI |
on-chip |
ESP32 LCD-CAM display interface1 |
|
Miscellaneous |
on-chip |
Espressif Sigma-Delta Modulator (SDM)1 |
|
on-chip |
ESP32 LCD-CAM controller1 |
||
MTD |
on-chip |
Flash node1 |
|
Pin control |
on-chip |
ESP32 pin controller1 |
|
Pulse IO |
on-chip |
Espressif Remote Control Transceiver (RMT) pulse_io controller1 |
|
PWM |
on-chip |
ESP32 LED Control (LEDC)1 |
|
on-chip |
ESP32 Motor Control Pulse Width Modulator (MCPWM)2 |
||
on-board |
WisBlock PWM Channel Map1 |
||
RNG |
on-chip |
ESP32 TRNG (True Random Number Generator)1 |
|
SDHC |
on-chip |
ESP32 SDHC controller1 |
|
on-chip |
ESP32 SDHC controller slot2 |
||
Sensors |
on-chip |
ESP32 internal temperature sensor1 |
|
on-chip |
ESP32 Pulse Counter (PCNT)1 |
||
Serial controller |
on-chip |
ESP32 UART3 |
|
on-chip |
ESP32 UART1 |
||
SPI |
on-chip |
||
SRAM |
on-chip |
Generic on-chip SRAM2 |
|
USB |
on-chip |
Espressif USB-OTG full-speed controller (DWC2 compatible) with the internal FS/LS PHY1 |
|
Video |
on-chip |
ESP32 LCD-CAM camera interface1 |
|
Watchdog |
on-chip |
||
on-chip |
ESP32 XT Watchdog Timer1 |
||
Wi-Fi |
on-chip |
ESP32 SoC Wi-Fi1 |
Connections and IOs
The RAK3312 features a 40-pin header with various I/O interfaces for the WisBlock ecosystem. The pinout is as follows:
Used |
Name |
Pin |
Pin |
Name |
Used |
|---|---|---|---|---|---|
NC |
VBAT |
1 |
2 |
VBAT |
NC |
GND |
GND |
3 |
4 |
GND |
GND |
3V3 |
3V3 |
5 |
6 |
3V3 |
3V3 |
GPIO20 / USB_SERIAL |
USB_P |
7 |
8 |
USB_N |
GPIO19 / USB_SERIAL |
NC |
VBUS |
9 |
10 |
SW1 |
NC |
NC |
TXD0 |
11 |
12 |
RXD0 |
NC |
RESET |
RESET |
13 |
14 |
LED1 |
GPIO46 |
GPIO45 |
LED2 |
15 |
16 |
LED3 |
NC |
3V3 |
VDD |
17 |
18 |
VDD |
3V3 |
GPIO9 / I2C0_SDA |
I2C1_SDA |
19 |
20 |
I2C1_SCL |
GPIO40 / I2C0_SCL |
GPIO1 / ADC_VBAT |
AIN0 |
21 |
22 |
AIN1 |
GPIO2 / ADC |
BOOT |
BOOT0 |
23 |
24 |
IO7 |
NC |
GPIO12 / SPI3_CS |
SPI_CS |
25 |
26 |
SPI_CLK |
GPIO13 / SPI3_SCK |
GPIO10 / SPI3_MISO |
SPI_MISO |
27 |
28 |
SPI_MOSI |
GPIO11 / SPI3_MOSI |
GPIO21 |
IO1 |
29 |
30 |
IO2 |
GPIO14 |
GPIO41 |
IO3 |
31 |
32 |
IO4 |
GPIO42 |
GPIO43 |
TXD1 |
33 |
34 |
RXD1 |
GPIO44 |
GPIO17 / I2C1_SDA |
I2C2_SDA |
35 |
36 |
I2C2_SCL |
GPIO18 / I2C1_SCL |
GPIO38 |
IO5 |
37 |
38 |
IO6 |
GPIO39 |
GND |
GND |
39 |
40 |
GND |
GND |
WisBlock IO2 is the only analog input on ADC2, which the Wi-Fi radio shares.
A read taken while the radio holds the block returns -ETIMEDOUT, so an
application that uses both should retry. AIN0 and AIN1 are on ADC1 and are
unaffected.
Connecting to a Baseboard
The module mounts on a WisBlock Base Board through the 40-pin WisBlock connector. See the RAK3312 datasheet [2] for the mounting orientation.
Programming and debugging
The rak3312 board supports the runners and associated west commands listed below.
| flash | debug | rtt | debugserver | attach | |
|---|---|---|---|---|---|
| esp32 | ✅ (default) | ||||
| openocd | ✅ | ✅ (default) | ✅ | ✅ | ✅ |
Building & Flashing
# From the root of the zephyr repository
west build -b rak3312/esp32s3/procpu --shield rakwireless_rak19007 samples/basic/blinky
west flash
Debugging
You can debug an application in the usual way. Here is an example for the Hello World application.
# From the root of the zephyr repository
west build -b rak3312/esp32s3/procpu --shield rakwireless_rak19007 samples/hello_world
west debug