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

Resolved! If i want to change pulse width on ONE timer pwm channel, do i have to rewrite ALL active channels every time i change one?

I am using one timer (timer2) as pwm generator and i am using 3 channels on it. I wish to set each channel pulse width independently (they are controlling LEDs) from 1 to 100. But from the generated stcubeIDE function, it looks like that the channels...

KSkor.1 by Associate III
  • 823 Views
  • 2 replies
  • 0 kudos

Resolved! Encoder code acting strangely on

So I've got some very basic code for a STM32 to read an encoder using timer 1 in encoder mode.This first routine works fine counting up and down as expected, printing CW (Clockwise) while counting up and CCW (Counter Clockwise) while counting down......

Omiks3 by Associate
  • 1379 Views
  • 3 replies
  • 0 kudos

STM32 MCU stucks after power cut-off

Here is my process :I supply my board with an USB cable.Then I flash my stm32L4 with a segger / st-link.My firmware goes in shutdown mode.I unplug the USB cable. Thus the power is suddently off.After that, I wire a battery to my device. Thus the MCU ...

SimonF by Senior
  • 2020 Views
  • 5 replies
  • 0 kudos

Regarding modbus to write negative values.

Hi, i am new to stm32 i need to write negative values (signed integers or float) in my modbus and transmit it to my PC. But i am not able to write negative values it shows some other values if i transmit negative values . can anyone help me w...

Lchal.1 by Associate III
  • 2139 Views
  • 5 replies
  • 0 kudos
龙承.1 by Associate
  • 521 Views
  • 0 replies
  • 0 kudos

PWM using Timer with STM32F4

Dear ST,I am coming back to you to configure a PWM peripheral with STM32F429.I am familiar with TI DSP and I have to implement it with ST this time.Could you help me to configure TIMER1 for symmetrical PWM and trigger an interrupt to trig ADC. I ma u...

What is RCC_APB2Periph_AFIO clock signal?

Posted on March 20, 2012 at 06:20Hi. Could You help me to understand somethink. In STM32 like STM32F103c8... there is a clock signal called RCC_APB2Periph_AFIO. When should be turned on this signal, always when I use peripherial, like Timmer, AD, US...

sholojda by Associate III
  • 2618 Views
  • 7 replies
  • 0 kudos

STM32G474 LSE oscillator not ready ?

Hi Folks,Greetings !With a Nucleo-G474RE MB1367C, with an onboard 32.768kHz crystal:I am trying to turn ON the LSE oscillator, but the LSE oscillator does not get RDY at all.This is what I tried to do:void SystemClock_Config(void) { LL_FLASH_SetLate...

Slow increasing voltage MCU (STM32H743) reset

Hi team,We are increasing the Input voltage 0.5 Volts/ Minute to Input of PMIC. PMI switches on after the Input voltage reaches 3.7 volts.After PMIC switches on it gives 3.3Volt Output but Controller is not getting reset.If we Power up instantly cont...

STM32H7 SPI DMA not working

Hello,When I use DMA with SPI it is not working.When I get a falling edge on DRDY this function gets called :void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) { if(GPIO_Pin == DRDY_ADC_Pin) { HAL_SPI_Receive_DMA(&hspi1, SPI1_RxBuffer, READBACK_LENGT...

0693W000007BGY9QAO.png