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.16.0 released

We are pleased to announce that STM32CubeMX 6.16.0 release is available. What is new in 6.16.0: Added support for new microcontrollers across the STM32WBA, STM32N6 and STM32H5 series and the STM32WL3x product line. The related new boards include the...

Aimen1 by ST Employee
  • 392 Views
  • 4 replies
  • 6 kudos

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
  • 157 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
  • 146 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
  • 122 Views
  • 1 replies
  • 1 kudos

Resolved! Trouble using alternate function on STM32C092

Hi,  i'm missing something in the configuration of alternate function on STM32C092. I can't get working alternare function on shared pin, interested physical pin are  PIN 1, 15, 20.  Example1: PIN15 only the function on PA8 are working properly, neit...

Sanderthunder_0-1762329932926.png Sanderthunder_1-1762330470607.png Sanderthunder_3-1762331610233.png Sanderthunder_2-1762330978487.png

STM32CubeMX(6.15.0) bug for NUCLEO-H563

Hello.In CubeMX, there is a Bug with a wrong Clock of USART2 and a wrong BRR-ValueI've used CubeMX to configure the Clock, based on the Nucleon-H563.For the USART2, i want to use the stable crystal oszillator (25MHz) from the Board (not the HSI-Clock...

Heinz_Baumer_0-1762249055656.png Heinz_Baumer_1-1762249082004.png