STM32CubeMX (MCUs)

Ask questions on STM32CubeMX. Discuss code generation and configuration challenges, among other topics.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

STM32CubeMX 6.15.0 released

We are pleased to announce that the version 6.15.0 of STM32CubeMX is available. What is new in 6.15.0: Enhanced microprocessor support: Added the STM32MP21-A35-TD, STM32MP21-M33-TD, STM32MP25-M33-TD, and STM32MP23-M33-TD trusted domains for the STM32...

Resolved! How to setup hfmpi2c1 using STM32F446

I have enable the hfmpi2c1 in STM32CubeMX tools, but I can find the FMPI2C_HandleTypeDef is undefined in the source code. Do we have a demo code to show how to setup and use hfmpi2c1. It's very confuse that the F446 only have one Fast Plus Mode IIC i...

Lding2025_0-1758166731293.png Lding2025_1-1758166779567.png Lding2025_2-1758166817354.png

About TouchGFX frame buffer problem

Hello, I'm using TouchGFX on an STM32L452RET6 with an SPI screen. The screen has integrated GRAM, so I selected the partial buffer option in STM32CubeMX. STM32CubeMX generated the partial buffer code as expected, but it also generated code for a full...

PixPin_2025-11-05_13-41-38.png PixPin_2025-11-05_13-43-10.png
TomBrown by Associate
  • 117 Views
  • 2 replies
  • 0 kudos

How to configure HSEM in STM32CubeMX

The HSEM option is not found in "System Core" in STM32CubeMX (version 6.15), and the configuration option for HSEM interrupt is only found in NVIC. How to configure HSEM in STM32CubeMX. When I selected the LL library environment, the generated source...

Snipaste_2025-11-07_15-12-55.png
liuxw by Associate
  • 152 Views
  • 2 replies
  • 0 kudos

Resolved! How to generate LL code use STMCubeIDE? like I2C example

Dear AllI am new to STM32CubeIDE and imported an example project I2C_OneBoard_AdcCommunication_DMAAndIT_Init, it work well, but when I try to do same with my own project, the generated code like MX_I2C2_Init(void) is totally different with the exampl...

Ping1 by Associate II
  • 93 Views
  • 1 replies
  • 1 kudos

OSC_IN and OSC_EN wrong initialization order

Hi!I have a board with an external oscillator. The oscillator would not start, and I spent a few hours debugging the issue only to find out the automatically generated code initialized the clock and the OSC_EN pin in the wrong order!relevant ioc line...

cyber_v1 by Associate II
  • 94 Views
  • 1 replies
  • 1 kudos