Question
STM32F103 (Blue Pill), CUBE MX and PWM
I am trying to setup a PWM output with Timer 4 by using CubeMX. When starting the code it always stops at command HAL_TIM_PWM_Start(&htim4,TIM_CHANNEL_1)
Attached are the setup in the main() and setup in the CubeMX.
Any ideas what am I missing?

MX_GPIO_Init();
MX_SPI1_Init();
MX_TIM4_Init();
HAL_TIM_Base_Start(&htim4);
HAL_TIM_PWM_Start(&htim4,TIM_CHANNEL_1);