Hello all, I have prepared a custom target for the STM32F103VDT and it is working but for any reason the PWMs on pins PD_12,13,14,15 are not. I have changed the us_timer as per Jan Kamidra suggestion but with no success, this is what I have done :
/*
#define TIM_MST TIM4
#define TIM_MST_IRQ TIM4_IRQn
#define TIM_MST_RCC __HAL_RCC_TIM4_CLK_ENABLE()
#define TIM_MST_DBGMCU_FREEZE __HAL_DBGMCU_FREEZE_TIM4()
#define TIM_MST_RESET_ON __HAL_RCC_TIM4_FORCE_RESET()
#define TIM_MST_RESET_OFF __HAL_RCC_TIM4_RELEASE_RESET()
*/
#define TIM_MST TIM5
#define TIM_MST_IRQ TIM5_IRQn
#define TIM_MST_RCC __HAL_RCC_TIM5_CLK_ENABLE()
#define TIM_MST_DBGMCU_FREEZE __HAL_DBGMCU_FREEZE_TIM5()
#define TIM_MST_RESET_ON __HAL_RCC_TIM5_FORCE_RESET()
#define TIM_MST_RESET_OFF __HAL_RCC_TIM5_RELEASE_RESET()
#define TIM_MST_BIT_WIDTH 16 // 16 or 32
#define TIM_MST_PCLK 1 // Select the peripheral clock number (1 or 2)
Do I miss something?, maybe I need to do something more to free TIM4 for PWM?
Thank you very much
Regards
Miguel Angel