Changing the System timer for Nucleo STM32H753

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderators: barthess, RoccoMarco

BusterB
Posts: 1
Joined: Wed Jan 15, 2025 9:43 pm

Changing the System timer for Nucleo STM32H753

Postby BusterB » Tue Jan 21, 2025 5:42 am

Hello,

I need access to a 32 bit timer on my Nucleo STM32H753 for a driver that utilizes PWM. This board only has two 32 bit timers, TIM2 and TIM5. However, TIM2 is the only one of the two that has physically accessible pins. Unfortunately, the system clock is set to TIM2 so I get a build error when activating it within the mcuconf.h file. Is there a way to change the system clock to use TIM5 instead?

Thanks,
BusterB

User avatar
Giovanni
Site Admin
Posts: 14563
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1111 times
Been thanked: 937 times
Contact:

Re: Changing the System timer for Nucleo STM32H753

Postby Giovanni » Tue Jan 21, 2025 6:51 am

Hi,

You need to change STM32_ST_USE_TIMER in mcuconf.h. I tried here on trunk and latest 21.x versions, no build errors. What version are you using?

Giovanni


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 14 guests