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

Resolved! STM32F4 COMPOSITE implementation

Hi,i am trying to implement my mcu (stm32f407IG) as a composite device with USB FS. I want to use CDC+HID or more how can i implement that with CubeMX ?Are there any examples about that?Thanks for your help.

arduo by Senior
  • 704 Views
  • 1 replies
  • 1 kudos

Resolved! OCTOSPI - wrong code generation? Bug should be fixed.

Hello, I am debugging a board which contains the MCU - STM32L4R7VI6 and an HYPERRAM IC connected to the OCTOSPI2 port on the MCU. While generating code on the STM32CUBEMX the tool generates the following code snippet at the bottom of the OCTOSPI_INIT...

CesarH by Associate
  • 1303 Views
  • 3 replies
  • 0 kudos

Where is the code generator gone?

Hello!I have upgraded to version 5. Can anybody tell me where the generator command is gone? It used to be directly in one of the 3 menus as far as I remember, something like generate code or something like that.Thanks!K

KY by Associate II
  • 947 Views
  • 4 replies
  • 0 kudos

STM32CubeMX generated MX_TIMx_Init() functions

Hi.I have the latest STM32CubeMX with a STM32L433 project.I have selected in CubeMX Advanced Settings to use "LL" drivers for TIM1 & TIM2, and the option to "Not Generated Function Call" for these timers.As expected, In the auto generated main() ther...

Resolved! change default value of pins (gpio) in cubeMX

Hello,I searched in cubemx where to change the default value of gpio pins, but couldn't find it.Does anyone knows ? In generated code, all output gpio are set to 0, for example :HAL_GPIO_WritePin(GPIOK, SW_LED1_Pin, GPIO_PIN_RESET);Thanks,ranran

ranran by Senior II
  • 3033 Views
  • 1 replies
  • 0 kudos

CubeMX RTC Code Generated Not Working

Hi,I'm new STM32L072 (Discovery Kit) and I had generated a code to run the RTC using the LSI Clock and displaying the values via UART2 but the RTC values are not incremented even if rest button is pressed, Then I deactivated the calendar and observed...

0690X000006DFmvQAG.jpg

Understanding external clock configurations

For my CubeMX application on the STM32F091RC we are trying to setup an active external clock source. We do this by selection 'BYPASS Clock Source' for 'High Speed Clock (HSE) Mode', correct?Seems confusingly simple, I wanted to ask here before resear...

Justin1 by Senior
  • 620 Views
  • 1 replies
  • 0 kudos