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 the STM32C5 with Segger J-Link

Summary This article provides a step-by-step guide explaining how to transition a development setup from STM32C5 + ST-LINK to STM32C5 + Segger J-Link. It focuses on the complete RDP life cycle and including RDP regression with password based on OEM k...

image 1.png image 2.png image 3.jpg image 4 - editedv2.png

How to use the IRQ callback with STM32CubeMX2 and HAL2

Summary This article provides a step-by-step guide to configure interrupt requests (IRQs) in STM32CubeMX2. It describes the location of related functions. The NUCLEO-C562RE board is used as an example. SummaryIntroductionPrerequisites1. STM32CubeMX2 ...

BMontanari_0-1770994976861.png BMontanari_1-1770994994252.png BMontanari_2-1770995014967.png BMontanari_3-1770995035236.png

How to set up a VS Code profile for STM32CubeMX2

Summary This article provides a detailed guide on how to create, configure, and use Visual Studio Code profiles specifically tailored for MX2 development. It covers setting up a dedicated VS Code profile to streamline the workflow, managing extension...

BMontanari_0-1771255724628.png BMontanari_1-1771255724630.png BMontanari_2-1771255724634.png BMontanari_3-1771255724635.png

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
  • 364 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
  • 10365 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