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

New release of Secure Manager 1.2.0 for STM32H5 - overview

The Secure Manager for STM32H573 version 1.2.0 has recently been released.  It’s available on our Secure Manager webpage. We wanted to inform you about the importance of this new release, and to refresh how it could improve your security concerns. Up...

ThierryCrespo_0-1726495408330.png ThierryCrespo_1-1726496946852.png

How to debug a HardFault on an Arm® Cortex®-M STM32

Introduction For a firmware developer targeting and STM32 MCU based on a Cortex® M, they need to keep an eye on memory access, hardware availability, clock, and power. This is needed to avoid running into issues that can be hard to follow and determ...

STea_0-1715262749764.jpeg STea_1-1715262749770.jpeg STea_5-1715262749776.jpeg hardfault regs.PNG
STea by ST Employee
  • 47788 Views
  • 2 comments
  • 16 kudos

How to program and debug the STM32 using the Arduino IDE

Summary This article covers how to program and debug your STM32 device with the Arduino IDE. In this knowledge article, we explore the following main points: How to install the STM32 MCUs in the Arduino IDEHow to program a simple blink LED based on ...

BMontanari_0-1700165815072.png BMontanari_13-1700166272699.png BMontanari_14-1700166292284.png BMontanari_15-1700166325305.png

How to share an API between a bootloader and an application

Summary This article provides a step-by-step guide on how to configure your STM32 to have a super simple bootloader and application. Additionally, a third region in memory where a shared set of functions between the two other codes can reside. The b...

BMontanari_0-1730153357515.png BMontanari_1-1730153357520.png BMontanari_2-1730153357523.png BMontanari_3-1730153357527.png

How to use function pointers in STM32CubeIDE

Summary This article provides a step-by-step guide and example regarding how a function pointer is implemented and used. The basic usage and a simple example application are provided using the NUCLEO-G071RB board but can be easily tailored to any ot...

BMontanari_0-1730142065473.png BMontanari_1-1730142065475.png

How to use SNTP over LwIP and RTC with an STM32

Summary This article demonstrates how to implement an SNTP client using the LwIP stack in a callback-based application. The demonstration code is built using the NUCLEO-H723ZG development board but can be easily tailored to a different STM32. All im...

BMontanari_0-1730159840046.png BMontanari_1-1730159840048.png BMontanari_2-1730159840055.png BMontanari_3-1730159840056.png

How to select suitable endpoints for your STM32 USB application

Introduction The article provides a comprehensive guide on selecting suitable endpoints for USB applications using STM32 microcontrollers. This involves understanding the types of data transfers required by the application and determining suitable en...

FBL_0-1729619247624.png FBL_1-1729624203582.png
FBL by ST Employee
  • 4334 Views
  • 0 comments
  • 2 kudos

How to calculate and generate post-build CRC

1.  Cyclic Redundancy Check Cyclic Redundancy Check (CRC) is an error detection method for digital data based on binary division.CRC algorithm generates a fixed checksum code length.  2. How to calculate and generate post-build CRC? Post build CRC ar...

1541.png 1542.png 1543.png 1544.png
LauraCx by ST Employee
  • 14505 Views
  • 3 comments
  • 1 kudos

Configuring DSP libraries on STM32CubeIDE

This FAQ concerns the DSP Libraries, how to integrate them in an STM32CubeIDE project and to execute an example based on the Digital Signal Processing. Note: If you are using CMSIS V 5.8.0, refer to the article below. How to integrate CMSIS-DSP libra...

1300.jpg 1301.jpg 1303.jpg 1304.jpg

ADC interleaved mode (2/2): Hands-On STM32CubeIDE project

This series of articles will provide you with: Tips&tricks on how to implement ADC interleaved mode to double equivalent sampling rateADC interleave mode details from practical point of viewInfo on DMA data transfer using ADC Common Data Register Par...

1509.png 1510.png 1511.png 1512.png
LauraCx by ST Employee
  • 9949 Views
  • 2 comments
  • 3 kudos

How to connect to the STM32 CAN Bootloader interface

The bootloader inside STM32 families uses the protocol described in AN3154. It is supported by the STM32F1, F2, F4, F7, L4 series. The purpose of this article is to give a guide on how to connect to a STM32 CAN bootloader Target, to erase and program...

10.jpg 11.png 12.png 13.png

Downloading STM32Cube packages from GitHub correctly

You will receive one or more compilation errors if you download any given STM32Cube package by using the GitHub Download ZIP option.  This is because our repository is created using the git submodule command. So, if the GitHub Download ZIP option is...

STTwo-32 by ST Employee
  • 4072 Views
  • 1 comments
  • 1 kudos

How to change STM32CubeIDE to dark theme

If you want a customized interface to work on your projects, you can try the alternatives offered by the STM32CubeIDE to personalize the appearance of your files. To change the default settings to give it a personal touch, follow the steps below. Cre...

273.png 274.png 275.png 276.png

Overall FAQs for QUADSPI/OCTOSPI/HSPI/XSPI

Introduction The purpose of this article is to provide external memories tips and tricks, frequently asked questions, and a list for useful link resources.  1. Overall FAQs for QUADSPI/OCTOSPI/HSPI/XSPI  1.1 How to check whether a device is supported...

KDJEM.1 by ST Employee
  • 5128 Views
  • 0 comments
  • 2 kudos

IWDG early wakeup interrupt in Stop modes for STM32U5

Introduction  The IWDG (Independent Watchdog) offers the possibility to exit from stop modes in STM32U5. The wakeup from stop with interrupt is supported in Stop 0, Stop 1, Stop 2, and Stop 3 modes for STM32U535/545/59x/5Ax/5Fx/5Gx as described in t...

IWDG in lp modes.PNG PA5 GPIO output.PNG IWDG config.PNG LL config.PNG
Sarra.S by ST Employee
  • 1350 Views
  • 0 comments
  • 1 kudos