STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Debug Cortex-M error

Hi,I want to debug a code for USART ISR Handler. The code is working fine. But If I debug, I am getting this error. I am using keil uvision.Cannot access target. shutting down debugging session.Why this error is coming. And how to over come this? I a...

Kumar B by Associate II
  • 1464 Views
  • 5 replies
  • 0 kudos

Which peripherals clock need to be enabled?

For the most of the peripheral (e.g. ADC1) it is obvious, but what is withLL_APB2_GRP1_PERIPH_SYSCFG or LL_APB1_GRP1_PERIPH_PWR? Does the voltage regulator work, if PWR peripherals clock is disabled?

T B by Associate II
  • 455 Views
  • 1 replies
  • 0 kudos

STM32L0x2: Combine two comparator outputs

I have a STM32L072KB microcontroller and want to combine two analog signals (they represent a kind of "quadrature encoded signal" with a 50% duty cycle) into one "combined digital output signal", which have the doubled frequency (for my purpose the d...

0690X00000ArSL8QAN.png 0690X00000ArSLDQA3.png
AHorn.0 by Associate
  • 685 Views
  • 1 replies
  • 0 kudos

Resolved! delay function based on timer, overflow safe?

Hello Everybody,I was thinking about a flexible way to implement a µs or ms delay function with a free running timer as tick source. One of the biggest problems that comes to my mind is the overflow problem when the timer wraps around, so that some c...

PWM not working on STM32l431

When I trying to run PWM on PA8 I get no PWM at all. The pin just goes high and I can't understand why. I used HAL example code. The cpu is running at 16 MHz and here is the codeHW_TIM_PWM_Set(4000, 70); HW_TIM_PWM_Enable(); HW_TIM_Delay(1000); HW_TI...

rickard2 by Associate III
  • 695 Views
  • 4 replies
  • 0 kudos

STM32F103 PC13 variable duty cycle waveform

I'm intending to use PC13 as an output to drive the onboard LED, but at some point in my program the PC13 pin begins outputting a 4.4 khz signal with pulse width that varies from 0% to 100% back to 0% and keeps repeating that pattern at approx 4 Hz. ...