how to design schematic for rak3172 lorawan® module

RAK3172 is a LoRaWAN module based on the STM32L4 microcontroller, optimized for low-power IoT applications. It is widely used in custom LoRaWAN boards due to its compact footprint, low current consumption, and support for both AT command and RUI3 development modes.

This guide highlights the key design considerations for creating a custom LoRaWAN end-device circuit board for low-power IoT applications, beginning with a basic schematic diagram of the RAK3172 LoRaWAN module and followed by an explanation of each section.

The following steps focus on specific parts of the design that require special attention.

1. Ensure that the RESET pin includes an external pull-up resistor and a bypass capacitor. The capacitor helps stabilize the signal on the reset line. Without it, the module may become susceptible to external interference, potentially causing unexpected resets. 

If the RAK3172 LoRaWAN module is deployed in a noisy environment, consider adding a second capacitor on this pin with a different value to complement the resonant frequency of the commonly used 100 nF capacitor.

2. UART2 is the most critical interface of the RAK3172 LoRaWAN module. It serves two key functions: accepting AT commands and enabling firmware updates.

Without a UART2 header or connector in the schematic, the module cannot be configured or updated, making the design unusable.

3. In relation to UART2, the header or connector must include the BOOT pin and be placed beside the VDD level. For RUI3 firmware updates, the BOOT pin is not required. 

However, in cases where a full chip erase is necessary or when uploading a complete .hex file to the RAK3172 LoRaWAN module, the BOOT pin must be pulled, and then STM32CubeProgrammer must be used.

🗒️
NOTE

Refer to the dedicated guide on using STM32CubeProgrammer with RAK3172 for recovery scenarios, such as when the module becomes unresponsive or the UART2 RUI3 bootloader cannot be used to update the firmware.

 

4. Another important connection related to board interfacing is the SWD interface. This allows debuggers such as ST-LINK, J-LINK, or RAKDAP1 to connect to RAK3172. It is also advisable to include the RESET line in this interface.
 


 

5. Do not connect anything on PB12. This pin has a special internal function where it determines if the RAK3172 LoRaWAN module is for a low-frequency variant or for a high-frequency variant.

  • Low frequency: EU433, CN470

  • High frequency: US915, EU868, AU915, AS923, IN865, KR920, RU864
     

6. It is recommended to make UART1 accessible in the design. When using the RAK3172 as an external LoRa® or LoRaWAN modem with an external MCU, one approach is to reserve UART2 for firmware updates and use UART1 exclusively for AT command communication. 

By default, UART1 does not support AT commands, but this functionality can be enabled through custom firmware using the Serial API.

 

Next Step: RAK3172 PCB Layout

After applying all these considerations, the schematic diagram for the RAK3172 LoRaWAN module should now be ready for PCB design layout.


carl-rowan.png

Carl Rowan

Carl is a multi-talent individual with a real flair for technology. His vast knowledge of power electronics products, sensors, and IoT give him an edge in performing outstandingly in technical field.


Changelog
  • Version 1 - How to Design a Schematic for RAK3172 LoRaWAN® Module
    • Author: Carl Rowan
    • Reviewer: Karla Jimenez
    • Date Published: 07/22/2025

Updated