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
  • 473 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
  • 715 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

EmirUysal by Associate II
  • 1213 Views
  • 4 replies
  • 0 kudos

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
  • 1958 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
  • 1173 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
  • 1429 Views
  • 10 replies
  • 2 kudos

STM32L432 dynamic VDD voltage change

I'm developing a very power-saving product. The STM32L4 is a really great product for our application ! Usually I run the STM32L4 VDD at 1.8V. Operate at 3.3V only when end user configures it via USB. The problem is that I want to switch the VDD volt...

ikeken by Associate II
  • 843 Views
  • 6 replies
  • 0 kudos

external memory loader for STM32H7S3L8H not working

I am trying to port an existing design that did not use the external memory loader into a version where I can use the external memory loader so that I can add additional code.I watched the videos and read the materials and have successfully made the ...

JBias_1-1742224464441.png JBias_2-1742224481916.png JBias_3-1742224602824.png
JBias by Associate III
  • 512 Views
  • 2 replies
  • 0 kudos

Synchronizing STM32H745 DAC and ADC

Hello,We are using the STM32H745 dual-core MCU for a mostly-analog sensor project. The M4 core is running at 240 MHz and generating a signal on the fly that is passed to the DAC via a DMA stream in circular buffer mode. This part works great.The si...