STM32 MCUs Products

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

I am having trouble with timers on STM32F1xx series specifically. I can get PWM to work but no matter how the TIM_TimeBaseInitTypeDef structure is defined, the frequency is 1.1KHz. It appears that the prescaler is divide by 64k. What's happening?

SYS_RC TIMER_setup(void){   TIM_TimeBaseInitTypeDef      TIMER_BaseInitStruct;   TIM_OCInitTypeDef         TIMER_OCInitStruct = {0, };   GPIO_InitTypeDef         GPIO_InitStruct;   RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOB, ENABLE);   RCC_APB1Perip...

WSchi by Associate
  • 221 Views
  • 0 replies
  • 0 kudos

'F42x/43x ODSW/ODSWEN - please unify terminology

In RM0090 rev.17, ch.5.1.4 Voltage regulator for STM32F42xxx and STM32F43xxx, at several places uses ODSW bit name, while the actual bit is caled ODSWEN both in 5.5 Power control registers (STM32F42xxx and STM32F43xxx) and the CMSIS-mandated device h...

I am using the nucleoH743ZI with Free RTOS. Try to send data via UART from each TASK.In Round robin scheduling, First task sends the data via UART, then context switch Second task tried to send the data via UART, handle of the UART was in Busy always.

In "prioritized preemptive scheduling", able to send the data to UART from each task.For the round robin, I set the time slice of 200 ms.Have the doubt like how much time taken to change the state of UART handle from "Busy" to "Ready"?.

Vel by Associate III
  • 1050 Views
  • 7 replies
  • 0 kudos

How to make microsecond delay using timer?

Im using F030F4P6 controller. Here's TIM16 configuration:Here's clock configuration:main.c: /* USER CODE BEGIN WHILE */ while (1) {   toggleAll(); delayUs(1000);   /* USER CODE END WHILE */...delayUs function:void delayUs(uint32_t delay) {   us...

0690X000009akJnQAI.png 0690X000009akJiQAI.png
BBart.16 by Associate II
  • 1873 Views
  • 5 replies
  • 0 kudos

unable to start STM32F103CBU6 ADC

Hi,I started working on stm32f103cbu6 uC recently. Whenever i try to enable ADC1/ ADC2 , debugging terminates abruptly insideADC_Cmd(ADC1, ENABLE); at ADCx->CR2 |= CR2_ADON_Set;The same code works with stm32f103cbt6. I tried with example code in st ...

BAyya by Associate
  • 312 Views
  • 0 replies
  • 0 kudos

Resolved! STM32F429, external interrupt errata?

External interrupt errata?I have setup EXTI_Line12 and EXTI_Line14 to generate en interrupt.But the EXTI15_10_IRQHandler() fails to execute a second interrupt if it happens too close to the first interrupt.But it seems only happen when I use bit-band...

MSipo by Senior II
  • 606 Views
  • 3 replies
  • 0 kudos