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
  • 313 Views
  • 4 replies
  • 5 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
  • 139 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
  • 120 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

Problem in NetXDuo when selecting RGMII mode in ETH1

I am trying to do tcp client application with stm32n6570-dk board and when  I select RGMII mode in ETH1, ethernet interface is grayed out in network interface settings in netxduo. How can I fix it? Cube IDE versiyon is 1.19.0, CubeMX version is 6.15....

erik71 by Associate II
  • 222 Views
  • 6 replies
  • 1 kudos

BUG FOUND IN LTDC 18bits mode in STMCubeMX 6.15.0

Hello ST team,I would like to report a pin mapping issue in STM32CubeMX when configuring the LTDC peripheral in RGB666 (18-bit) mode, especially on STM32H750 (and other STM32H7 devices).Problem descriptionWhen selecting RGB666 (18 bits) as the LTDC c...

deived10 by Associate
  • 130 Views
  • 2 replies
  • 1 kudos

Keil slash and backslash

I generated an STM32 project using STM32CubeMX for Keil (MDK-ARM).In Keil, functions like HAL_GPIO_TogglePin() don’t show up in code completion (IntelliSense).I found that in Project → Options for Target → C/C++ → Include Paths, the paths use / (for ...

UV4_fLY8qK25Zr.png

Resolved! STM32CubeMX generates wrong code for Nucleo-G431KB

In STM32CubeMX 6.15.0 / Win11 I generate a default CMake project for the Nucleo-G431KB board.The generated cmake/stm32cubemx/CMakeLists.txt contains:# STM32CubeMX generated symbols (macros) set(MX_Defines_Syms USE_NUCLEO_64 USE_HAL_DRIVER STM32...

KnarfB by Super User
  • 133 Views
  • 2 replies
  • 1 kudos