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

Resolved! How to set ADC regular channels in CubeMX?

Hello!I use CubeMx 5.0.1, my project based on STM32F413 cpu and was migrated from previous version of Cube. I need to set ADC1 to perform multiple regular conversions. This is what Cube shows me:You can see two entries marked Rank1. How can it be?And...

0690X000006DFKhQAO.jpg
micklecat by Associate II
  • 1515 Views
  • 1 replies
  • 0 kudos

Timer One Pulse Mode Delay and Pulse

HiTimer make me crazy !!!Is there a simple formula to compute prescaler and ARR for a defined Delay and Pulse ?I have a STM32F411 Nucleo at 100 MHz. For the Timer2, APB1 is at 50 MHz.I want a delay of 10 ms with a pulse of 50 us. ThanksLionelNote : w...

Lionel1 by Associate II
  • 3505 Views
  • 9 replies
  • 0 kudos

12bit ADC output over USART on STM32

My goal: I'm trying to read two ADC pins with 12 bit resolution and output the values through DMA over USART.I can see that the ADC values are being read in the debug tab in STM32CubeMX. I can "talk" over USART to my serial capture program by having ...

PAbdu by Associate II
  • 6013 Views
  • 17 replies
  • 0 kudos

Hello, ADC conversion time measurement

I'm using STM32f401re nucleo board and Truestudio IDE. I am only concentrating on ADC peripheral. I want to measure the number of clock cycles consumed for single ADC conversion. I am willing to measure conversion time for 6, 8, 10, 12 bit resolution...

JSubr by Associate
  • 805 Views
  • 3 replies
  • 0 kudos

PWM configuration with CubeMx

Hello,I'm working with an STM32F401RE (on a Nucleo), and I have some problem with the TIMER frequency. a) The frequency APBx is 84Mhz, and I want a 500Hz PWM frequency on TIM3.I set prescaler to 167 (168-1) and period to 999 (1000-1), is it correct ?...

RStra by Associate III
  • 1779 Views
  • 6 replies
  • 0 kudos

V5.0.1 Import Bug?

It appears that v5.0.1 is assigning the wrong firmware package on import.I start a new CubeMX project using the MCU Selector and pick an F103c8. Then go to file->Import and select a .ioc for an existing f303 project. When I generated code for the bas...

stm32cubemx example code not able to receive

#include "main.h" #include "stm32f4xx_hal.h"   /* USER CODE BEGIN Includes */   /* USER CODE END Includes */   /* Private variables ---------------------------------------------------------*/ CAN_HandleTypeDef hcan1;   /* USER CODE BEGIN PV */ /* Pri...

kgedi by Associate II
  • 766 Views
  • 0 replies
  • 0 kudos