cancel
Showing results for 
Search instead for 
Did you mean: 

No PWM output after switching to STM32G473

KHarb.1
Senior

I am migrating a project from STM32F373 to STM32G473. I can program the new part successfully, but I don't see PWM . The PWM values are written in user created code and I can read them back via the STLink, so I know that the part at least begins running. I'm not sure if there are new settings that may be defaulting to the wrong values that are preventing outputs. (I see only 0v for PWM) I configured everything via CubeMX and I added the below user code to enable the timer  What might cause me to not see any PWM output?

HAL_TIM_Base_Start(&htim8);
HAL_TIM_PWM_Start(&htim8,TIM_CHANNEL_3);
HAL_TIM_PWM_Start(&htim8,TIM_CHANNEL_4);

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

TIM8 is an Advanced Timer and needs to have TIMx_BDTR.MOE set.

Read out and check/post content of TIM, DAC and relevant GPIO registers.

JW

View solution in original post

2 REPLIES 2

TIM8 is an Advanced Timer and needs to have TIMx_BDTR.MOE set.

Read out and check/post content of TIM, DAC and relevant GPIO registers.

JW

I read the MOE bit back via StLink and it shows it set.