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

We are pleased to announce that the minor version 6.14.1 of STM32CubeMX is available. What is new in 6.14.1: SAI settings not displayed in the configuration tab of STM32H7Bxxx devices: After upgrading to STM32CubeMX 6.14.0, the SAI tab configuration ...

STM32CubeMX 6.14.0 released

We are pleased to announce that the release 6.14.0 of STM32CubeMX is available. What is new in 6.14.0: Added the support for the STM32WBA6xxx microcontrollers and:Added the support for USBX multi-instanceAdded the support for the memory management to...

Resolved! CubeMX 6.1.0 RTC alarm init bug

Hi,I noticed that if I enable an alarm for the RTC using CubeMX 6.1.0 with date/weekday mask enabled, it results in this line being generated:RTC_AlarmStruct.AlarmMask = RTC_ALARMMASK_DATEWEEKDAYHowever, that flag is undefined. In my case, it should ...

Resolved! How to find matching drive level for LSE crystal?

After reading the Oscillator Design Guide, I picked a LSE crystal for my F7 from the list provided in that guide.But how do I know what the appropriate drive level is? My crystal has a max drive level of 1 uW. But does that corresponds to Low, Medi...

Wrong Folder for Code Generation

When I want to generate code with STM32CubeMX 5.3.0 for STM32CudeIDE, a new folder is created instead of using the folder containing the .ioc file when the .ioc file isn't named like the folder containg it. Only the .mxproject is created at the right...

CubeIDE + CubeMX .ioc checkbox being unchecked unexpectedly

CubeIDE V1.2CubeMX V5.6.1Have not been able to pin down exactly what is happening here, but I have seen it several times. I believe it has something to do with closing the .ioc file in CubeIDE. Or possibly with changing certain settings causing other...

PLane.1 by Associate II
  • 537 Views
  • 1 replies
  • 0 kudos

STM32H743IIKx CubeMX 6.0.1 USB_OTG_HS Bug report

Hello, I would like to report an issue with CubeMX configuration and code generation for USB_OTG_HS when interfacing a PHY on a custom board in Device Mode .The problem stems from the Maximum GPIO speed setting on all pins in CubeMX can only be set t...

HFjel.1 by Associate
  • 455 Views
  • 1 replies
  • 0 kudos

Trouble changing timebase to something other than systick

I have a NUCLEO-H745ZI-Q and am trying to teach myself how to use FreeRTOS on it. I can't figure out how to change the HAL timebase away from systick to one of the other timers, as is strongly recommended for FreeRTOS use. I start a new STM32 proje...

MMcPh.1 by Associate II
  • 2748 Views
  • 5 replies
  • 4 kudos

STM32CubeIDE and STM32CubeMx bugs on Mac Catalina

These two bugs seem related. Bug 1 on STM32CubeIDE. After modifying an ioc file, when you regenerate, the IDE wipes all the contents of the Drivers folder and all subfolders, and doesn't replace them! Yow.Bug2 on STM32CubeMx. When generating code, th...

AVoel.1 by Associate III
  • 552 Views
  • 2 replies
  • 0 kudos

SystemClock_Config code generated using HAL is working fine but using LL API it is failing for STM32F072xb. is that something missed in code generation. Attached the code generated by both LL and HAL.

Code generated using LL : (Issue)------------------------------------------void SystemClock_Config(void){ LL_FLASH_SetLatency(LL_FLASH_LATENCY_0); if(LL_FLASH_GetLatency() != LL_FLASH_LATENCY_0) { Error_Handler();  } LL_RCC_HSI_Enable();  /* Wait til...

MAnna by Associate
  • 731 Views
  • 1 replies
  • 0 kudos