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
  • 389 Views
  • 4 replies
  • 6 kudos

Can't use RTT with CMake project

I tried to use cmake with CubeMx but I cant make RTT works.Error:multiple definition of `_write_r'; /usr/lib/gcc/arm-none-eabi/13.2.0/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libc_nano.a(libc_a-writer.o):/build/arm-none-eabi-newlib/src/build-nan...

Hyderman by Associate II
  • 3566 Views
  • 9 replies
  • 1 kudos

CubeMX octospi code generation

Hi everyone,I noticed that CubeMX 6.14.0 ignores the octospi parameter settings. I created a new project for the NucleoU5A5 board, configured Octospi1 with a clock prescaler of 99. I notice the following behaviorGenerated code (CubeIDE) has a prescal...

tzijnge by Associate II
  • 396 Views
  • 3 replies
  • 0 kudos

Resolved! USBX Add Custom Class

MCU:STM32U585xxEnv:ThreadX + USBX + FileXI want to use USBX add my own class type, but I'm already have 3 classes, HID, MSC and CDC ACM, it means 4 classes after added my own.In file (ux_device_descriptors.h) have a define (USBD_MAX_SUPPORTED_CLASS  ...

Jason927 by Associate III
  • 568 Views
  • 1 replies
  • 0 kudos

Custom User Code Sections

In many cases, especially for middleware, it may be necessary to extend the code generated by CubeMX.Since not all files have sections that are untouched by the code generator or some places inside a file are missing those user code sections, I'm oft...

dmocom by Associate II
  • 4040 Views
  • 7 replies
  • 9 kudos

Resolved! Ethernet PHY type resets itself

Hi,A small but annoying bug with STM32CubeMX 6.14.0 with H7 package 1.12.1.  Every time I change anything in the LWIP general settings (e.g. DHCP enable/disable), the PHY setting changes by itself from USER_PHY to undefined. This is a nuisance as if ...

ADunc1_0-1743728005237.png
ADunc.1 by Senior
  • 492 Views
  • 1 replies
  • 1 kudos

UART RX not working on Nucleo-H723

I am trying to get the USART2 working on my Nucleo-H7 board. I am using HAL_UART_Transmit for the TX side. This works fine. But when I use HAL_UART_Receive on the RX side, there is never any RX data coming into the device. I have stepped through the ...

MHoop.1 by Senior
  • 1893 Views
  • 5 replies
  • 0 kudos

Resolved! CubeMX 6.14 encoding of generated code changed?

Hi,just made an update of CubeMX from 6.11.1 to 6.14.The problem I have is that our comments within user blocks were ISO-8859-1 encoded and this never was a problem until now and with 6.14, when we generate code, all Umlauts are replaced with the UTF...

bbee by Associate III
  • 478 Views
  • 3 replies
  • 4 kudos