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

We are pleased to announce that the minor version 6.16.1 of STM32CubeMX is available. What is new in 6.16.1: This release addresses and resolves the issues outlined below: Users of STM32CubeMX version 6.13.0 and later may encounter a HardFault except...

Aimen1 by ST Employee
  • 943 Views
  • 0 replies
  • 1 kudos

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

Good starting point for VCP module (FT232 replacement)

I just ordered a PCBA with FT232RL as USB-VCP bridge and found that these things are bulky, expensive and out of stock mostly. So why not design a USB-serial (eg. 3.3 V 9600 bd) bridge using any STM32?I am aware that CubeMX supports USB/VCP so this i...

MMMartin by Associate II
  • 1366 Views
  • 5 replies
  • 0 kudos

Devicetree generation for MCU

Hi,Zephyr OS use device tree to describe hardware layer on MCU. Is there anyway I can generate device tree from STM32cubeMX configuration (ioc file) as we can do it for MPU ? Thanks,

FLapo.2 by Associate
  • 807 Views
  • 0 replies
  • 1 kudos

What is the relationship between HAL_ and MX_ APIs?

CubeMX provides a host of MX_ functions for which I'm unable to find any documentation.I can instea find extensive HAL and LL API documentation.And these APIs overlap like MX_TIMxx_EnablePWM and HAL_TIM_PWM_InitThere is also a lot of MX_init code but...

CCarb.1 by Associate
  • 1299 Views
  • 4 replies
  • 0 kudos

nucleo board STM32CubeMX clock configuration nonsense

Hi,I'm trying to set up the HSI (16MHz) on a nucleo-f446ze board. The clock configuration GUI is kinda misleading I guess: default PLLMUX configuration is selecting HSE, but HSE oscillator is not present by default on the nucleosselecting HSI on PLLM...

0693W00000D0s07QAB.png 0693W00000D0s0HQAR.png
SCott.1 by Associate
  • 2276 Views
  • 4 replies
  • 0 kudos

Resolved! [STMCubeIDE] V1.6.1 (using integrated CubeMX) does not properly generate initialisation code for SMBus peripheral

I am using an STM32F407 controller and have configured I2C1 as SMBus.However after configuration in the IDE, the initialization code generated for I2C1 is as follows:void MX_I2C1_SMBUS_Init(void) {   /* USER CODE BEGIN I2C1_Init 0 */   /* USER CO...

Nandan V by Associate II
  • 1436 Views
  • 5 replies
  • 0 kudos

Updated MX to latest and get incorrect code generated...

I updated to the latest 1.7.0 for IDE and 6.3.0 for MX and when I regenerate configuration code using MX I get the following for ADC clock configuration.   PeriphClkInit.PeriphClockSelection = RCC_PERIPHCLK_ADC;   PeriphClkInit.AdcClockSelection = AD...

C Austin by Associate II
  • 1348 Views
  • 4 replies
  • 1 kudos