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

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

What is FSMC and why do I need it?

1. What is FSMC FSMC is a parallel line interface used to connect microcontrollers to external memories (like NAND/NOR Flash etc) and transfer data at high speed, it is used in applications that require to process a large amount of data.  2. Why to u...

LauraCx by ST Employee
  • 20533 Views
  • 1 comments
  • 2 kudos

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 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
  • 166 Views
  • 0 comments
  • 3 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 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

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
  • 155 Views
  • 0 comments
  • 2 kudos

Differences between MII and RMII interfaces

Summary  In STM32-based Ethernet designs, connecting the internal media access controller (MAC) to an external physical layer transceiver (PHY) requires a hardware interface. The two most common interfaces used for this are: MII: Media-independent in...

STackPointer64_1-1749652793104.png STackPointer64_2-1749658103859.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

How to recognize a genuine ST-LINK/V2 versus a cloned one

To answer the questions like "Is my ST-Link/V2 genuine? Where to find a genuine ST-Link/V2? Why my device isn't recognized?" and other related ones, please refer to the following: Where to find a genuine ST-Link/V2 ST-Link official in-circuit debugge...

667.jpg 668.jpg 669.jpg 670.jpg