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 VS Code extension to use OpenOCD

Summary The STM32 VS Code extension doesn’t natively support OpenOCD, but with some simple configuration, you can integrate it into your debugging workflow. This article covers how to set up OpenOCD (either Streamline or ST’s fork) with the extension...

STM_Thirty2_0-1732844454636.png STM_Thirty2_1-1732844636529.png STM_Thirty2_2-1732844759012.png scrnshot.jpg

FAQ: STM32 HAL UART driver - API and Callbacks

How to use STM32 HAL UART driver API and Callbacks?What are the callbacks involved in UART TX / RX?How are these callbacks called?Why is the callback not called? 1. STM32 HAL UART supports 3 modes for transmitter (TX) / receiver (RX) Polling mode (no...

81.png 82.png 84.png 85.png

How to configure the MPU of an STM32 using STM32CubeMX

1. Introduction The MPU (Memory Protection Unit) is included in the Cortex-M4 and M7 based STM32 Microcontrollers (refer to specific product datasheets to confirm availability). The MPU can be used to make an embedded system more robust and more secu...

1760.png 1761.png 1762.png 1763.png

Using VS Code for FreeRTOS™ application debugging

Introduction  In this article, we explore how to set up and debug a FreeRTOS™ project for the STM32H753 microcontroller using visual studio code (VS Code). We cover the necessary extensions, step-by-step project creation, and debugging processes, inc...

Extensions.png Tasks creation.png vTaskDelay.png Project generation.png
Sarra.S by ST Employee
  • 5392 Views
  • 0 comments
  • 0 kudos

Helpful tips on using VS Code with STM32

Summary This article highlights some tips on using VS Code with STM32. In this article, we cover the following: Performing a clean build of your project and deleting the cacheAdding source files, directories, and include files to your VS Code project...

B_Subramanian_0-1733431777905.png B_Subramanian_1-1733431777909.png cmakelists.png B_Subramanian_3-1733431777914.png

How to create a custom build setup in STM32CubeIDE

This article covers how to create a custom build setup to allow users to customize, modify, and add specific build settings for each file, folder, or project. Introduction Creating a custom build in STM32CubeIDE can be a powerful tool for developers...

BMontanari_0-1705600232962.png BMontanari_1-1705600232966.png BMontanari_2-1705600232967.png BMontanari_3-1705600232968.png

How to wake up the STM32U5 from STOP2 using LPUART

This article will show you how wake up the STM32U5 MCU from Stop 2 Low Power mode using the LPUART1 supplied by LSE or HSI Clock Source. By the end of this article, you will know the needed steps to properly set the LPUART, RCC and PWR peripheral reg...

566.jpg 567.png 569.png 571.png

Porting and using X-CUBE-EEPROM with any STM32

Summary  X-CUBE-EEPROM is an EEPROM emulation software package that works on a variety of STM32 MCUs. Upon downloading the package, there are premade examples that work with STMicroelectronics development kits. However, it is not obvious how you can...

Laurids_PETERSEN_0-1687869279217.png 2 porting.png Laurids_PETERSEN_1-1687869424399.png 4 flash interface.png

STM32 FDCAN running at 8 Mb/s on NUCLEO boards

Introduction Many customers requested to have FDCAN communicating at 8 Mb/s. We provide a GitHub hotspot that contains a simple project on several STM32 part numbers. The project allows for FDCAN to reach a bit rate of 8 Mb/s in the data phase. The ...

Laurids_PETERSEN_0-1728997194171.png SofLit_0-1728659214427.png SofLit_1-1728659326925.png SofLit_3-1728659591872.png
mƎALLEm by ST Employee
  • 5775 Views
  • 2 comments
  • 7 kudos

STM32H5: How to interconnect RCC clocks to timers

Introduction RCC clocks can be internally connected to timers. The points addressed here are the following: Finding which clock is connected to which timer.Finding how the clock is connected to a timer.Implementing this connection in STM32CubeMX. Thi...

2024-11-29 14_58_57bis-STM32H523_33xx, STM32H562_63xx, and STM32H573xx Arm_Sup_®__Sup_-based 32-bit MCU.png 2024-12-10 14_32_28bis-STM32H523_33xx, STM32H562_63xx, and STM32H573xx Arm_Sup_®__Sup_-based 32-bit MCU.png 2024-12-10 14_32_28Ter-STM32H523_33xx, STM32H562_63xx, and STM32H573xx Arm_Sup_®__Sup_-based 32-bit MCU.png 2024-12-10 14_32_28quarte-STM32H523_33xx, STM32H562_63xx, and STM32H573xx Arm_Sup_®__Sup_-based 32-bit MCU.png

Why NRST pin as GPIO mode is holding the MCU under reset

Introduction The NRST pin can be configured in GPIO mode and this is handy for small packages such as STM32C011 8-pin package. In this article, we explain the constraints and potential workaround of using NRST pin in GPIO mode. STM32C011D6Yx 8pin pa...

STea_1-1733827858859.png STea_0-1733847673174.png STea_2-1733828435310.png
STea by ST Employee
  • 2430 Views
  • 0 comments
  • 1 kudos

Troubleshooting bxCAN issues in Loop back mode on STM32 MCUs

Introduction As many know, CAN test mode is used for debug or test. One of the test modes is the CAN Loop back mode which is mainly used when only one CAN node is available, and the user needs to test the CAN functionality with no need to establish ...

SofLit_0-1733738092058.png SofLit_0-1733739357109.png
mƎALLEm by ST Employee
  • 2065 Views
  • 0 comments
  • 2 kudos