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

Resolved! STM32G031F4P ADC Trigger problem.

Hi everyone.I am using STM32G431F4P MCU. I am using Timer3-Channel3 PWM output. PWM frequency is 20 kHz. ADC1 is DMA mode and i want to trigger ADC1 using Timer3-Channel1 (PWM generation no output). Timer3 and ADC1 settings are as follows;This is cod...

0693W00000JPR75QAH.png 0693W00000JPR88QAH.png
ABURM by Senior
  • 1373 Views
  • 6 replies
  • 0 kudos

Resolved! PWM frequency generated using timer 1 is incorrect.

I want to generate a PWM at ~76K Hz using the TIMER1 on an STM32F401 microcontroller.To my understanding, because the timer 1 is clocked at 84 MHz, I need to configure the ARR to 1099. See the screenshot to see my detailed configuration.## The proble...

0693W00000JPWf2QAH.png 0693W00000JPWenQAH.png 0693W00000JPWesQAH.png 0693W00000JPWeTQAX.png
GBert.2 by Senior
  • 1915 Views
  • 2 replies
  • 0 kudos

STM32CubeMX: Feature request - "User Labels" for periphery.

When creating a project with several different hardwares I like the posibility that the CubeMX created definitions for the GPIOs in the main.h header file which can be used in the project and by just changing the project-file one can use a totally di...

stst9180 by Associate III
  • 810 Views
  • 1 replies
  • 1 kudos

Resolved! STM32Cube code generator bug for STM32G030J6

The generated code has wrong order for MX_DMA_Init() that doesn't work: MX_GPIO_Init(); MX_ADC1_Init(); MX_DMA_Init();...Correct code is: MX_GPIO_Init(); MX_DMA_Init(); MX_ADC1_Init();...note: STM32CubeIDE Version: 1.7.0 Build: 10852_20210715_0634 (U...

Question about STM32H7 clock domains

I am configuring SPI1 on the STM32H743. At first, I used the default configuration where the peripheral is clocked off of PLL1Q as shown below: However, with this configuration, the HAL peripheral driver would time out waiting for EOT flag to be set....

0693W00000JPLOyQAP.png 0693W00000JPLJuQAP.png
JMill.1 by Associate III
  • 1597 Views
  • 3 replies
  • 0 kudos

Resolved! Hello, Today i updated to STM32CubeIDE 1.8.0 However when i tried to create a project based on a B-L4S5I-IOT01A Board i get an error saying

 "Error downloading files: stm32cube_fw_14_v1170.zip (cannot unzipped) and stm32cube_fw_14_v1171.zip (Dependency no loaded). I also tried to update my Firmware using the Help updates links:Check for Embedded package software updates...but i receive t...

BHend.1 by Associate II
  • 2638 Views
  • 9 replies
  • 1 kudos

Resolved! STM32F722RET6 increasing HCLK frequency issue

There is external crystal on my PCB Mfr part: X1E0003410273 I am working on STM32 Cube IDE. At first whenever I enabled external crystal my program did not run at all. Even In low frequencies. Then I enabled Clock Secure System (CSS) Now my program i...

0693W00000JPF4jQAH.png
NChor.1 by Associate II
  • 1180 Views
  • 2 replies
  • 0 kudos