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 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 run AI models from model zoo on STM32N6

Summary This article provides a comprehensive guide on running AI models from the STM32 model zoo on STM32N6 microcontrollers. It includes step by step instructions on selecting a model, preparing the development environment, and converting the mode...

BMontanari_0-1750274125242.png BMontanari_20-1750274393361.png BMontanari_21-1750274421046.png BMontanari_22-1750274431052.png

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

How to create an STM32N6 FSBL load and run

Summary The first stage bootloader (FSBL) is a key component in the boot process of STM32N6 microcontrollers. It is responsible for initializing the system, configuring the hardware, and loading the application code from external memory into the int...

FSBL_SimpleLoadAndRun.gif FSBLAndApp.gif BMontanari_2-1738343101105.png BMontanari_3-1738343101107.png

STM32 and FreeRTOS+ CLI library

Introduction In this guide, we explore how to integrate and use the FreeRTOS+ command-line interface (CLI) library to enhance your embedded applications. Designed for ease of use and flexibility, the FreeRTOS+ CLI allows developers to create robust c...

managesoftwarepacks.png freertos.png selectComponents.png softwareselector.png

How to debug STM32N6 using STM32CubeIDE

Summary This tutorial is a comprehensive guide for debugging code from external serial flash on the STM32N6. It covers: setting up the environment, configuring the debugger, and validating the setup. Introduction To debug the code running from the e...

BMontanari_0-1746721362224.png BMontanari_1-1746721390464.png BMontanari_2-1746721418605.png BMontanari_3-1746721449634.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 configure the GPDMA

1. GPDMA module setup The new DMA module (which includes the GPDMA and the LPDMA) available in series such as the STM32U5 are slightly different than the regular DMA. In this article, we’ll discuss the setup for using GPDMA in a similar way as the st...

415.png 416.png 417.png 418.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
  • 169 Views
  • 0 comments
  • 0 kudos

How to use VS Code with STM32 microcontrollers

Summary This article is an introduction to STM32 MCU development through the VS Code IDE. In this article, we cover the following: Setting up your VS Code environment to interface with STM32 MCUsCreating a new project through the embedded CubeMX plat...

B_Subramanian_0-1731514123729.png B_Subramanian_1-1731514123731.png cogwheel.png B_Subramanian_3-1731514123733.png

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

SummaryIntroduction1. Hardware and software prerequisites2. Development2.1 Configure the host project2.2 Configuring the dual role project2.2.1 Configuring the .ioc file of the dual role project2.2.2 Dual role project tree configuration2.2.3 Coding o...

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