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! How can I prevent the I2C from getting interrupted?

There's a sensor applied to the I2C as a slave. Also on this microcontroller there's a communication running on the UART-Interface in blocking mode. If the UART has to transmit a huge amount of data, it seems that the I2C (also blocking mode) can get...

stm32f103rbt6 i2c1 remap not working

i am using stm32f103rb i think i have found a bug i am trying to use i2c1 on pin port b 8 and 9 for that you have to remap i2c1 in afio mapr register i have done that but in debug session i note that the bit never get set i have attached code and deb...

Iyar.388 by Associate
  • 1005 Views
  • 1 replies
  • 0 kudos

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
  • 2109 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
  • 657 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
  • 983 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...

STM32f103vct6 Uart tx always busy and system is halted.

hello. I have a question using uart(115200, 8, 0,1) in stm32f103vct6.huart3->gstate have been changed hal_busy forever In an unspecified situation and system is halted. I use true studio compiler. and In debug mode at that time, systick interrupt ...

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
  • 960 Views
  • 4 replies
  • 0 kudos