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 STM32 as a USB device game controller

Summary This article presents a step-by-step tutorial on how to configure the STM32H7 as a USB HID class gamepad using ST middleware. The tutorial is based on NUCLEO-H743ZI2 and can be easily tailored to any other STM32   Introduction If you want t...

Gyessine_0-1769433976158.png Gyessine_1-1769434450890.png Gyessine_7-1769434875826.png Gyessine_2-1769434531440.png
Gyessine by ST Employee
  • 701 Views
  • 0 comments
  • 2 kudos

How to configure the linked list mode in STM32CubeMX

Introduction This article provides a step-by-step guide on configuring the GPDMA linked list in STM32CubeMX. It does not cover the legacy standard DMA approach, which is described in the article "How to configure the GPDMA." 1. Software prerequisite...

Icache config.png GPDMA config(all channels).png GPDMA config(ch0).png linked_list_Queue_Config.png
Sarra.S by ST Employee
  • 10957 Views
  • 7 comments
  • 3 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 use the STM32CubeMX2 Part Drivers and BSP

Summary This article guides you through using Part Drivers in STM32CubeMX2 (MX2), focusing on the Button and LED Part Drivers for the NUCLEO-C562RE board. You will learn how to enable, configure, and integrate these drivers into your project. This e...

BMontanari_0-1771014647162.png BMontanari_1-1771014647167.png BMontanari_2-1771014647172.png BMontanari_3-1771014647176.png

How to use EEPROM emulation with STM32CubeMX2

Summary This article explains how to use the STM32 EEPROM emulation driver on STM32C5 devices by leveraging a ready-to-build Visual Studio Code, CMake, and GCC example project. It introduces the STM32C5 EDATA FLASH sector and the main concepts behin...

BMontanari_0-1774361324173.png BMontanari_1-1774361324175.png BMontanari_2-1774361324178.png BMontanari_3-1774361324182.png

How to use the HAL2 structure and project format

Summary This article describes how to use the HAL2 project format when developing STM32 applications. It explains what changes with HAL2 compared to the HAL1 framework, how the new project structure affects user code, and how to work safely with cod...

BMontanari_0-1770812884384.png BMontanari_1-1770812884390.png BMontanari_2-1770812884394.png BMontanari_3-1770812884397.png

How to configure the MPU with STM32CubeMX2

Summary  This article provides a step-by-step guide to enable the memory protection unit (MPU) and configure a memory region in STM32CubeMX2. The example uses the NUCLEO-C562RE board. SummaryIntroduction1. Prerequisites2. Project setup2.1 Project c...

BMontanari_0-1769528501172.png BMontanari_1-1769528501176.png BMontanari_2-1769528501179.png BMontanari_3-1769528501184.png

CRC computation in STM32 MCUs and post-build creation

1. Introduction Cyclic Redundancy Check (CRC) is an error detection method for digital datas based on binary division.CRC algorithm generates a fixed checksum code length.  2. How is CRC value calculated, how to determine CRC algorithm in embedded ap...

1500.png 1501.png 1502.png 1503.png

How to use DAC with STM32CubeMX2

Summary This tutorial provides a step-by-step guide on how to enable and configure the digital-to-analog converter (DAC) peripheral using STM32CubeMX2. The example uses the NUCLEO-C562RE board and demonstrates output on DAC channel1. The tutorial cov...

BMontanari_0-1771439105018.png BMontanari_1-1771439105023.png BMontanari_2-1771439105028.png BMontanari_3-1771439105030.png

How to use RAM ECC on STM32C5

Introduction STM32C5 devices integrate a RAM configuration controller (RAMCFG) that provides error code correction (ECC) on internal SRAM. On STM32C5, ECC is available only on SRAM2. ECC allows the following: Detect and correct single-bit errors wit...

BMontanari_0-1770646689466.png BMontanari_1-1770646689469.png BMontanari_2-1770646689471.png BMontanari_3-1770646689474.png

How to use ADC with STM32CubeMX2

Summary This tutorial provides a step-by-step guide to enable and configure the analog-to-digital converter (ADC) peripheral using STM32CubeMX2. The example uses the NUCLEO-C562RE board and demonstrates the acquisition of two ADC channels simultaneou...

BMontanari_0-1770300899565.png BMontanari_1-1770300899568.png BMontanari_2-1770300899573.png BMontanari_3-1770300899576.png

How to use the MCO with STM32CubeMX2

Summary This article provides a step-by-step guide to configuring and verifying the master clock output (MCO) on an STM32 microcontroller. The workflow includes initial hardware configuration in STM32CubeMX2, project management using CMake, and proje...

BMontanari_0-1769541272670.png BMontanari_1-1769541272673.png BMontanari_2-1769541272676.png BMontanari_3-1769541272678.png

How to use FreeRTOS™ with STM32CubeMX2

Summary This article provides a step-by-step guide to developing FreeRTOS™ applications on STM32 microcontrollers using STM32CubeMX2 and Visual Studio Code. It covers configuring FreeRTOS™ within STM32CubeMX2, generating and building the project in V...

BMontanari_0-1770907837658.png BMontanari_1-1770907837661.png BMontanari_2-1770907837665.png BMontanari_3-1770907837668.png

How to use FDCAN and HSE with STM32CubeMX2

Summary This tutorial guides you through enabling and configuring the flexible data-rate controller area network (FDCAN) peripheral using STM32CubeMX2 on the NUCLEO-C562RE board. It includes: Setting up FDCAN for basic CAN communicationConfiguring cl...

BMontanari_0-1772672268492.png BMontanari_1-1772672268495.png BMontanari_2-1772672268498.png BMontanari_3-1772672268500.png

How to use RTC with STM32CubeMX2

Summary This article provides a step-by-step guide to configure the hardware real-time clock (RTC) with a basic calendar in STM32CubeMX2. The tutorial uses the NUCLEO-C562RE board. SummaryIntroductionPrerequisites1. Project setup1.1 Project creation...

BMontanari_0-1769630329893.png BMontanari_1-1769630329896.png BMontanari_2-1769630329899.png BMontanari_3-1769630329902.png