STM32 MCUs
From FAQs to complete How-to articles, find useful articles on STM32 MCUs programming, troubleshooting, ecosystem, and product details.
cancel
Showing results for 
Search instead for 
Did you mean: 

Knowledge base articles

How to configure VREFBUF on my STM32

The voltage reference buffer embedded in most STM32 devices serve two main purposes: 1. used as a voltage reference for ADCs, and DACs 2. used as a voltage reference for external components through the VREF+ pin Note that as each product family is un...

1005.png 1006.png 1007.png 1008.png

How to obtain and use the STM32 96-bit UID

Introduction Some STM32 MCUs embed two unique identifiers: a unique 96-bit unique identifier and device ID. This article shows how to both obtain these values in your code, and describe some possible use cases for them. 1. 96-bit unique ID This 96-b...

BMontanari_3-1758715277406.png BMontanari_1-1758715035836.png BMontanari_2-1758715156791.png

Internal clock CK_INT for the STM32H7/H5 timers

Introduction to CK_INT clock  The STM32 products include a flexible clock system for timers, enabling each timer to operate with a specific kernel clock. The RCC configuration determines the kernel clock source for each timer.Timers can utilize vari...

SarraS_0-1757685323191.png SarraS_0-1757674890870.png
Sarra.S by ST Employee
  • 852 Views
  • 0 comments
  • 0 kudos

How to disable Trustzone on STM32U5 Series

The aim of this article is to provide guidelines for disabling Trustzone on STM32U5. 1. Hardware and software setup Nucleo MB1549-U5A5ZJT6Q1. Hardware and software setupSTM32CubeProgrammer As you can see when connecting your board to STM32CubeProgram...

1639.png 1640.png 1641.png 1642.png

How to use semihosting with STM32CubeIDE and STM32

Summary Semihosting can be used to enable code running on STM32 to communicate with the host computer during a debug session. This makes it possible to use host computer I/O (for example keyboard, display, or file system) instead of having such input...

1565.png 1567.png 1570.png 1571.png
LauraCx by ST Employee
  • 27166 Views
  • 6 comments
  • 5 kudos

Lightweight EEPROM emulation

Summary This article provides a step-by-step description of a lightweight algorithm to write and retrieve data from flash using virtual addresses. The key aspect is the low footprint and overall simplicity. The code example in this guide is provided...

Organization.png
Domini by ST Employee
  • 1940 Views
  • 2 comments
  • 3 kudos

How to connect two quad-SPI memories using only one OCTOSPI

There are two possible solutions for connecting two quad-SPI memories using only one OCTOSPI interface. Solution 1: Use a dedicated bit in the OCTOSPI_CR register for external memory selection: MSEL bit for STM32H5, STM32U5, and STM32L5 series or FS...

KDJEM1_0-1719503650093.png KDJEM1_0-1721138414681.png
KDJEM.1 by ST Employee
  • 3503 Views
  • 5 comments
  • 4 kudos

How to use the LPAWUR range on the NUCLEO-WL33CCx board

The low power wakeup radio (LPAWUR) feature is not enabled by default on NUCLEO-WL33CCx boards. It has been designed for the reception of a specific frame to trigger the wake up of a system. To enable and use the LPAWUR feature on the NUCLEO-WL33CCx ...

ImenD_0-1756476306474.png
Imen.D by ST Employee
  • 798 Views
  • 0 comments
  • 1 kudos

Reset management on the NUCLEO-WBA55CG

The NUCLEO-WBA55CG with MB1801-NoUSB-D02 has a different configuration for reset management compared to earlier versions. In the default configuration, the reset via mass storage and the reset via debugging tools are disabled, which may cause issues...

STTwo32_0-1756286143499.png
STTwo-32 by ST Employee
  • 914 Views
  • 1 comments
  • 1 kudos

How can I add TraceX support in STM32CubeIDE?

To add TraceX support to a STM32CubeIDE project and properly use it you’ll need to follow a few steps, described in detail in this article. Goal: Add TraceX support to STM32CubeIDE using X-CUBE-AZRTOS-H7Although the example is using the NUCLEO-H723ZG...

154.png 155.png 157.png 159.png

How to set up Sigfox on STM32WL3x

Introduction This article explains how to set up Sigfox connectivity on the STM32WL3x microcontroller. Sigfox is a low-power wide-area network (LPWAN) technology designed for IoT applications requiring long-range and low-energy communication. By fol...

STTwo32_0-1755877750148.png STTwo32_3-1755879403567.png
STTwo-32 by ST Employee
  • 789 Views
  • 0 comments
  • 0 kudos

USB device not recognized

The USB device is detected by the PC (USB host), but the device initialization reports an error, like. "error code 10" on Windows. What is the problem?When using the HAL libraries, the source of this problem can be a too small heap configured in the ...

705.png