No PWM output after switching to STM32G473
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-02 6:20 PM - edited ‎2024-04-03 5:33 PM
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);
Solved! Go to Solution.
- Labels:
-
STM32G4 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-03 12:11 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-03 12:11 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-03 1:22 PM
I read the MOE bit back via StLink and it shows it set.
