6 years, 2 months ago.

Which hardware timers are used for a ticker, timeout, and timer in mbed-os on STM32F411RE?

I am handling Nucelo-F411RE on mbed-os. SM32F411RE has several timer modules, that is, TIM1, TIM2 ~ TIM5, TIM9 ~ TIM11.

I want to know which timer module is used for a ticker, timeout, and timer in mbed-os, respectively. (Which source code is handling the TIM modules in mbed-os?)

Question relating to:

ST
A world leader in providing the semiconductor solutions that make a positive contribution to people’s lives, both today and in the future.

1 Answer

6 years, 2 months ago.

Hi

You have to check hal_tick.h file which is defined for each target:

https://github.com/ARMmbed/mbed-os/blob/ccff46d9a3c960dae72d08c399e214a3eaeb63c7/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F411xE/device/hal_tick.h#L46

In F411RE case, we are using TIM5

Regards,

Jerome