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 to initialize and use TIM2 for output compare?

I am using the STM32F303CB controller.System Clock - 72MHz APB1ENR - 72MHz for TimerI followed the below steps as per the reference manual.Timer2 Initialization: RCC->APB1ENR|= RCC_APB1ENR_TIM2EN;   TIM2->ARR = 72000-1;   TIM2->CCR1= 4000;   TIM2->...

It always work ok for RTC. But sometimes HAL_RTC_MspInit retrun me HAL_TIMEOUT, which case would cause this error? I did not change my hardware and firmware for RTC, I use the internal clock for rtc.

It will occur @here: /** @addtogroup RTC_Private_Functions * @{ *//** * @brief Enter the RTC Initialization mode. * @note  The RTC Initialization mode is write protected, use the *     __HAL_RTC_WRITEPROTECTION_DISABLE() before calling this function....

ZXiao.1 by Associate II
  • 1267 Views
  • 4 replies
  • 0 kudos

Resolved! Can a Timer Capture Compare be skipped if needed?

I'm using a Timer (TIM8) in a capture compare application for measuring timing between signals. In some cases I don't need the value so I have been skipping the read of the CCRx register. I'm using a HAL command as the code below shows:The HAL_TIM_R...

BTrem.1 by Senior II
  • 866 Views
  • 2 replies
  • 0 kudos

How to read VBATT Voltage from ADC

I Am using STM32F303CB.I want to read the VBATT voltage from ADC1_IN17 as VBATT is connected to ADC1 channel 17.Here my Code:void ADC1_Init(){   RCC->CFGR2 |= RCC_CFGR2_ADCPRE12_DIV1;   RCC->AHBENR |= RCC_AHBENR_ADC12EN;   RCC->AHBENR |= RCC_AHBENR_G...

STMH753 GPIO port pin read is slower compared to the STMF429

Hi,I am porting an application from the STMF429ZI to the STMH753ZI and have noticed that the STMH753 is slower when reading the GPIO inputs compared to the STMF429. In one function, multiple GPIOs are read to gather 16 input states. Measuring this fu...

TSosi.1 by Associate III
  • 1200 Views
  • 1 replies
  • 0 kudos

Resolved! DALI Interface for STM32G MCU

Hi,I am planning to implement DALI on STM32G MCU, I have looked at the documentation but all the example projects are with STM32L1 or STM32F1 and the library provided by STM is based on IAR workbench. My questions are Can I implement DALI Slave on ST...

KPras.1 by Associate
  • 1613 Views
  • 1 replies
  • 0 kudos