STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Resolved! How to handle HardFault?

There is a function called HardFault_Handler in the STM32 MCUs (full code below). This function I usually work with when debugging but am unsure how to use this for handling error. What is the correct protocol to handle errors in this function? If a ...

AAgar.2 by Associate III
  • 3783 Views
  • 3 replies
  • 1 kudos

Detecting when I2C bus becomes IDLE

STM32F302K8 here. According to the manual, there is a flag in the ISR to see if the bus is busy, but it does not generate an interrupt when cleared. Also the STOP condition says it is only generated while you are the master and generate it, or are ...

psusi by Associate II
  • 1087 Views
  • 4 replies
  • 0 kudos

Hello All, I am using, STM32F446RE controller evaluation board. I want to count external pulses. I had set TIM2 as counter and started the counter. But the counter interrupt is not getting generated with the frequency we are setting the pulse.

Appending more details here,Configured TIM2 as counter. Below is the TIM2_INit code,static void MX_TIM2_Init(void){ TIM_SlaveConfigTypeDef sSlaveConfig = {0}; TIM_MasterConfigTypeDef sMasterConfig = {0}; htim2.Instance = TIM2; htim2.Init.Prescaler = ...

TH.16.336 by Associate III
  • 330 Views
  • 1 replies
  • 0 kudos