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

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
  • 1800 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
  • 3392 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
  • 774 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
  • 897 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
  • 779 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

STM32 timers break feature unit

Introduction  The break feature is embedded only in timer peripherals that include complementary outputs. Specifically, it is available in timers that have at least one channel with two complementary outputs. This makes it suitable for:  Advanced ti...

SarraS_0-1755178068024.png SarraS_0-1754579259365.png
Sarra.S by ST Employee
  • 1036 Views
  • 0 comments
  • 1 kudos

How to create a Thread using AzureRTOS and STM32CubeIDE

Using the software package available in the STM32Cube ecosystem is straight forward, all steps and a demo code are provided in this article.   Goal: The purpose of this article is to give you a first overview of how the AZURE-RTOS ThreadX is support...

422.png 423.png 424.png 425.png

How to add post build commands in VS Code

Summary This article explains how to add post build commands in VS Code with CMake for STM32 projects. Introduction When developing STM32 firmware using Visual Studio Code with the CMake extension, the build process often involves more than simply c...

BMontanari_0-1754074931286.png BMontanari_1-1754074931295.png BMontanari_2-1754074931304.png

How to debug an external .elf file in VS Code

Summary This article explains how to debug an external *.elf file in Visual Studio Code (VS Code) using the STM32CubeExtension, without requiring a CMake project or a full development environment. Introduction Debugging embedded applications on STM3...

BMontanari_0-1753989954047.png BMontanari_1-1753989954054.png BMontanari_2-1753989954054.png BMontanari_3-1753989954055.png

How to implement USBX in standalone mode

Summary The following article is a tutorial on how to implement the USB device, HID mouse class, using the Azure RTOS USBX package in standalone mode (without the RTOS). 1. Introduction Hello developer and welcome to this article! For this tutorial,...

BMontanari_0-1701201503044.jpeg BMontanari_1-1701201503083.png BMontanari_2-1701201503094.png BMontanari_3-1701201503100.png

How to add RTC on the STM32N6

Summary This article provides a quick guide on how to enable and add real-time clock (RTC) on STM32N6 MCUs and configure it accordingly. This tutorial uses the STM32N6570-DK for the demonstration. Introduction The real-time clock (RTC) is an indepen...

BMontanari_0-1752779806727.png BMontanari_1-1752779806729.png BMontanari_2-1752779806735.png BMontanari_3-1752779806738.png