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

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
  • 1142 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

How to measure power on the STM32N6

Summary This article provides a comprehensive guide to measuring power consumption on STM32N6 Nucleo and Discovery boards. It covers the STM32N6's multiple power supply domains and explains their impact on power usage. You learn how to identify meas...

BMontanari_0-1752156880741.png BMontanari_4-1752157232015.png BMontanari_3-1752157182956.png BMontanari_1-1752156985662.png
EBowdach by ST Employee
  • 1167 Views
  • 0 comments
  • 1 kudos

How to calibrate a temperature sensor using ADC4 on STM32U575

Introduction The calibration of temperature sensors is a critical step to ensure accurate measurements in embedded systems. The STM32U575 microcontroller integrates two analog-to-digital converters (ADC1 and ADC4). ADC1 supports configurable resolut...

KDJEM1_3-1748526581559.png KDJEM1_2-1749651714367.png KDJEM1_3-1749651803201.png KDJEM1_6-1748527245899.png
KDJEM.1 by ST Employee
  • 625 Views
  • 0 comments
  • 1 kudos

How to program STM32 Option Bytes with the HAL API

Although it is possible to program the option bytes through a debugger with a tool like STM32CubeProgrammer, there are many times where it is necessary or helpful to program the options bytes in the runtime of the application. The STM32 HAL libraries...

1323.png

How to configure STM32 as USB dual role

Summary This article provides a step-by-step guide to configuring the NUCLEO-H723ZG board as a dual role device. It details the entire setup process, starting with the basic hardware connections and progressing to the firmware implementation. By foll...

Gyessine_0-1750254030723.png Gyessine_0-1748273891932.png Gyessine_1-1750244633024.png Gyessine_4-1748351544818.png
Gyessine by ST Employee
  • 1031 Views
  • 0 comments
  • 4 kudos

How to enable FreeRTOS™ Run Time and Stack Usage view

In this article, we explore the FreeRTOS™ debugging viewers using STM32CubeIDE and how to enable "Min Free Stack" and "Run Time usage" in each task. Introduction To enhance the analysis and validation of the application running on FreeRTOS™, STM32C...

BMontanari_0-1704993362634.png BMontanari_1-1704993362640.png BMontanari_2-1704993362643.png BMontanari_3-1704993362644.png

How does the ThreadX event flag work on STM32?

Summary The purpose of this article is to provide a brief explanation with a working example of how to implement and use the Event Flag resources. Although the example is using the STM32G474 Discovery kit, you can apply this knowledge base in any oth...

209.png 211.png 214.png 216.png

Ethernet not working on STM32H7x3

The Ethernet peripheral on STM32H7x3 is not sending, or receiving data correctly. Or, the IP stack is not able to establish connection to other devices. What could be the problem? In most cases, the problem is related to memory layout and Memory Prot...

How to debug an external .elf file in STM32CubeIDE

Summary This article provides a quick guide on debugging an application using its external *.elf file. It includes instructions and explanations on how to implement the file into the STM32CubeIDE interface and enter debug mode, enabling the user to ...

BMontanari_0-1750793983954.png BMontanari_1-1750793983956.png BMontanari_2-1750793983960.png BMontanari_3-1750793983964.png