STM32 MCUs Products

Ask questions, find answers, and share insights on STM32 products and their technical features.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Change Period/Pulse of HRTIM based SimplePWM

Custom board, STM32H747 device, Simple PWM Using the code generated by MX, and adding a call to HAL_HRTIM_SimplePWMStart, I can generate a nice simple PWM output signal. If I change the initial values for period/pulse, rebuild, and program to the dev...

C-Coder by Associate III
  • 195 Views
  • 1 replies
  • 0 kudos

Encoder mode

Hello everyone, I am currently working on encoder mode with an STM32C031. I am using a DC motor with an incremental encoder and a gear reducer. My goal is to measure both the velocity and position of the motor. I have configured Timer1 with a frequen...

aba12_0-1742324330403.png aba12_1-1742324352790.png
aba12 by Associate
  • 311 Views
  • 3 replies
  • 0 kudos

Resolved! PWM Duty cycle control with __HAL_TIM_SET_COMPARE

I am working on a project that I aim to control a boost converter using a stm32 f407 disc kit. I want to control pwm duty cycle with two different integers which are x and y. I want my duty cycle equal to (1-(x/y)) how can I do it

STM32H7 DMA stops after first transfer

I tested this example from the STM32CubeH7 repository and it works fine.When I try the DMA1 instead of the BDMA, the DMA stops after the first transfer.I made only the following changes to use the DMA1 __HAL_RCC_DMA1_CLK_ENABLE(); // Enable the cloc...

JKuen.2 by Associate II
  • 1472 Views
  • 8 replies
  • 0 kudos

Resolved! Problem with connecting STM32H755ZI-Q

I am new to using stm32 MCUs and I was following a youtube tutorial on how to set up a debugger for dual core MCUs. Before changing some settings I was able to start the debugger without any errors. Now when I try to run the debugger I get this error...

david027 by Associate II
  • 549 Views
  • 8 replies
  • 3 kudos

Resolved! Clarification on Debug Register Configuration in STM32H755

Hi,I'm working with the NUCLEO-H755ZI-Q, which features dual cores (Cortex-M4 & Cortex-M7). I’m trying to understand whether these two cores have separate debug registers, such as DHCSR (Debug Halting Control and Status Register).I have reviewed RM03...

wukong by Associate II
  • 578 Views
  • 10 replies
  • 2 kudos