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
  • 1003 Views
  • 5 replies
  • 7 kudos

Nucleo-H563ZI HardFault at vRestoreContextOfFirstTask

I created default project with FreeRTOS in STM32CubeMx for the board Nucleo-H563ZI. Nothing more added.Hard Fault is invoked at vRestoreContexOfFirstTask.I was looking for the solution in Copilot and Perplexity but without success. Only I can say it'...

Jan27 by Associate II
  • 130 Views
  • 2 replies
  • 0 kudos

Resolved! CDC ECM on STM32U385RG

I would like to use USBX to make a CDC ECM USB device, but in STM32CubeMX, there is no option for CDC ECM or RNDIS in the USBX device class menu: The STM32U545RE on the other hand has options for CDC ECM and RNDIS:  Does STM32U385 support CDC ECM a...

wmcgsandc_0-1756417297150.png wmcgsandc_1-1756417504807.png

Resolved! RTC system doesn't work with LSI clock source

When "Activating clock source" is ticked in RTC module, my MCU doesn't start up if I reset it from RST button. But as soon as I switch the RCC clock source to LSE external 32.768khz crystal and change RTC Clock Mux to LSE, it works without a hitch. I...

I2C rise and falltime setting

We have a board with a stm32u5. were VDDIO are connected to 1.8 V and  the I2C bus have pullup to 3.0 V. Some I2C devices uses 3.0 V logic levels and som 1.8 V. Between which voltage levels shall i measure the rise and falltime that i enter in cubemx...

Sebastian33_0-1764232564330.png Sebastian33_0-1764600090994.png

Resolved! How to configure FileX using CubeMX?

How to start with FileX using CubeMX?In CubeMX I enabled ThreadX and FileX with the default configuration, increased ThreadX "memory pool size" to 2k and  enabled "Generate Init Code" for both.In app_azure_rtos.c, tx_application_define() function MX_...

STM32-ThreadX-1.png STM32-ThreadX-2.png
TDJ by Lead
  • 5396 Views
  • 11 replies
  • 4 kudos

Resolved! Cannot configure MbedTLS in CubeMX for H755

When trying to setup MBedTLS through CubeMX for the NUCLEO-H755ZI-Q, CubeMX does not give the option to select LWIP as the TCP/IP stack in the MBEDTLS "Version and modes" configuration tab. The only options given are "None" and "User defined". Additi...

SPetr.6 by Associate III
  • 642 Views
  • 5 replies
  • 0 kudos