RAK3172

Overview

RAK3172 is a WisDuo LPWAN module which integrating a STM32WLE5CC chip. The breakout board has the RAK3172 as its core and with soldered to the antenna connector.

Hardware

The breakout board footprint allows RAK3172 stamp module pins to be transferred to 2.54 mm headers. It is designed to easy access to the pins on the board and simplify the evaluation of the RAK3172 module.

  • RAK3172 STM32WLE5CC Module with LPWAN single-core Cortex®-M4 at 48 MHz

  • 256-Kbyte Flash memory and 64-Kbyte SRAM

  • RF transceiver LoRa® modulations

  • Hardware encryption AES256-bit and a True random number generator

  • SMA connectors for the LORA antenna

  • I/O ports:

    • UART

    • I2C

    • SPI

    • SWD

RAK3172-pinout

For more information about the RAK3172 stamp module:

Supported Features

The rak3172 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.
rak3172
/
stm32wle5xx

Type

Location

Description

Compatible

CPU

on-chip

ARM Cortex-M4 CPU1

arm,cortex-m4

ADC

on-chip

STM32 ADC1

st,stm32-adc

Clock control

on-chip

STM32WL RCC (Reset and Clock controller)1

st,stm32wl-rcc

on-chip

STM32WL HSE Clock1

st,stm32wl-hse-clock

on-chip

Generic fixed-rate clock provider2

fixed-clock

on-chip

STM32 MSI Clock1

st,stm32-msi-clock

on-chip

STM32 LSE Clock1

st,stm32-lse-clock

on-chip

STM32WB and STM32WL PLL node1

st,stm32wb-pll-clock

on-chip

STM32 Microcontroller Clock Output (MCO)1

st,stm32-clock-mco

Counter

on-chip

STM32 counters3

st,stm32-counter

Cryptographic accelerator

on-chip

STM32 AES Accelerator1

st,stm32-aes

DAC

on-chip

STM32 family DAC1

st,stm32-dac

DMA

on-chip

STM32 DMA controller (V2)2

st,stm32-dma-v2

on-chip

STM32 DMAMUX controller1

st,stm32-dmamux

Flash controller

on-chip

STM32 Family flash controller1

st,stm32-flash-controller

GPIO & Headers

on-chip

STM32 GPIO Controller4

st,stm32-gpio

I2C

on-chip

STM32 I2C V2 controller1 2

st,stm32-i2c-v2

Interrupt controller

on-chip

ARMv7-M NVIC (Nested Vectored Interrupt Controller)1

arm,v7m-nvic

on-chip

STM32 External Interrupt Controller1

st,stm32-exti

LED

on-board

Group of GPIO-controlled LEDs1

gpio-leds

LoRa

on-chip

STM32WL Sub-GHz Radio1

st,stm32wl-subghz-radio

Memory controller

on-chip

STM32 Battery Backed RAM1

st,stm32-bbram

MTD

on-chip

STM32 flash memory1

st,stm32-nv-flash

on-board

Fixed partitions of a flash (or other non-volatile storage) memory1

fixed-partitions

Pin control

on-chip

STM32 Pin controller1

st,stm32-pinctrl

Power management

on-chip

STM32 power controller1

st,stm32-pwr

PWM

on-chip

STM32 PWM4

st,stm32-pwm

Reset controller

on-chip

STM32 Reset and Clock Control (RCC) Controller1

st,stm32-rcc-rctl

RNG

on-chip

STM32 Random Number Generator1

st,stm32-rng

RTC

on-chip

STM32 RTC1

st,stm32-rtc

Sensors

on-chip

STM32 family TEMP node for production calibrated sensors with two calibration temperatures1

st,stm32-temp-cal

on-chip

STM32 VREF+1

st,stm32-vref

on-chip

STM32 VBAT1

st,stm32-vbat

Serial controller

on-chip

STM32 USART2

st,stm32-usart

on-chip

STM32 LPUART1

st,stm32-lpuart

SMbus

on-chip

STM32 SMBus controller3

st,stm32-smbus

SPI

on-chip

STM32 SPI controller with embedded Rx and Tx FIFOs1 1

st,stm32-spi-fifo

on-chip

STM32 SUBGHZ SPI controller1

st,stm32-spi-subghz

SRAM

on-chip

Generic on-chip SRAM description1

mmio-sram

Timer

on-chip

ARMv7-M System Tick1

arm,armv7m-systick

on-chip

STM32 low-power timer (LPTIM)1

st,stm32-lptim

on-chip

STM32 timers4

st,stm32-timers

Watchdog

on-chip

STM32 watchdog1

st,stm32-watchdog

on-chip

STM32 system window watchdog1

st,stm32-window-watchdog

Programming and Debugging

The RAK3172 board can be debugged and flashed with an external debug probe connected to the SWD pins. It can also be flashed via pyOCD [3], but have to install an additional pack to support STM32WL.

$ pyocd pack --update
$ pyocd pack --install stm32wl

Flashing an application

Connect the board to your host computer and build and flash an application. The sample application Hello World is used for this example. Build the Zephyr kernel and application, then flash it to the device:

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

Run a serial terminal to connect with your board. By default, usart1 is accessible via the USB to TTL converter.

  • Speed: 115200

  • Data: 8 bits

  • Parity: None

  • Stop bits: 1

Hello World! rak3172/stm32wle5xx

References