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

hal_delay() not working

So I've created a project and am trying to use the HAL_delay(10); but it gets stuck at this function when im trying to debug. I have been changing the clock and enabling the TIM2 so I don't know if i've messed something up. Here are the settings that...

_legacyfs_online_stmicro_images_0693W00000biAmBQAU.png _legacyfs_online_stmicro_images_0693W00000biAmGQAU.png _legacyfs_online_stmicro_images_0693W00000biAmVQAU.png _legacyfs_online_stmicro_images_0693W00000biAmaQAE.png
PPopo.1 by Senior
  • 13120 Views
  • 54 replies
  • 0 kudos

I2C_frequency configuration

Hi,I would like to configure the I2C frequency based on the input clock frequency. Is there a specific formula to calculate the I2C timing values? Also, I would like to know whether this formula is applicable to all STM32 microcontrollers, or if it v...

SDhar.1 by Associate II
  • 249 Views
  • 2 replies
  • 2 kudos

Issues with interrupt priority handling

Hello,i have configured a timer interrupt an it seems like that interrupt preempt another adc interrupt. I configured the timer interrupt like that: NVIC_SetPriority(TIM1_BRK_IRQn, 2U); NVIC_SetPriority(TIM1_UP_IRQn, 2U); and the adc interrupt like t...