Loading...
 
Skip to main content

System Workbench for STM32


NO PWM Whatsoever

Yes Bob1,

I only had to add HAL_TIM_PWM_Start four times for each output. Well that's solved then.

I again used CubeMX to generate the code necessary to configure one timer for PWM. With the STM32F103C8T6 only TIMER 2,3 and 4 can be configured for PWM. CubeMX did everything except it did not start the PWM hence HAL_TIM_PWM_Start I had to manually add in main.c. I guess there's also a HAL_TIM_PWM_Stop somewhere to be found otherwise I wouldn't know why ST created this extra mandatory function (to then forget about it in CubeMX).

Your PWM_SERVO_wkg1.png screenshot was useful in seeing the necessities.

Thx,
Ben

 
Collapse/expand modules below