cancel
Showing results for 
Search instead for 
Did you mean: 

No activate option of timer in STM32CubeIDE CubeMX

wickeLine228
Associate II

Hello, I am working with "Mastering The STM32" book and faced with one problem: cannot find the option as in the book to activate any timer using CubeMX. I am using STM32 blue pill STM32F103C8T6. Why I can't find the activate option of timers?

1 ACCEPTED SOLUTION

Accepted Solutions
Andrew Neil
Evangelist III

@wickeLine228 wrote:

I am working with "Mastering The STM32" book So this: https://www.carminenoviello.com/mastering-stm32/

Note that the author has a support forum: https://www.carminenoviello.com/mastering-stm32/forums/f/support-forum/

What version of CubeMX are you using?

Are you using a standalone CubeMX, or integrated within the CubeIDE ?

 


@wickeLine228 wrote:

 cannot find the option as in the book to activate any timer using CubeMX.


AndrewNeil_0-1709035785663.png

That's for TIM6 - your chip, STM32F103C8T6, does not have a TIM6 !

See datasheet: https://www.st.com/resource/en/datasheet/stm32f103c8.pdf 

AndrewNeil_4-1709036619832.png

That image from the book shows the configuration for a Basic Timer: as the name suggests, these have very few configuration options.

But this is the configuration for TIM1:

AndrewNeil_2-1709036228834.png

This is an "Advanced Control" Timer - so has a lot more options than just a simple 'Activate':

AndrewNeil_3-1709036339086.png

 

Here is an overview of the various types of timers available across the various STM32 families:

Application note AN4013: STM32 cross-series timer overview

https://www.st.com/resource/en/application_note/an4013-stm32-crossseries-timer-overview-stmicroelectronics.pdf 

 

View solution in original post

3 REPLIES 3
Andrew Neil
Evangelist III

@wickeLine228 wrote:

I am working with "Mastering The STM32" book So this: https://www.carminenoviello.com/mastering-stm32/

Note that the author has a support forum: https://www.carminenoviello.com/mastering-stm32/forums/f/support-forum/

What version of CubeMX are you using?

Are you using a standalone CubeMX, or integrated within the CubeIDE ?

 


@wickeLine228 wrote:

 cannot find the option as in the book to activate any timer using CubeMX.


AndrewNeil_0-1709035785663.png

That's for TIM6 - your chip, STM32F103C8T6, does not have a TIM6 !

See datasheet: https://www.st.com/resource/en/datasheet/stm32f103c8.pdf 

AndrewNeil_4-1709036619832.png

That image from the book shows the configuration for a Basic Timer: as the name suggests, these have very few configuration options.

But this is the configuration for TIM1:

AndrewNeil_2-1709036228834.png

This is an "Advanced Control" Timer - so has a lot more options than just a simple 'Activate':

AndrewNeil_3-1709036339086.png

 

Here is an overview of the various types of timers available across the various STM32 families:

Application note AN4013: STM32 cross-series timer overview

https://www.st.com/resource/en/application_note/an4013-stm32-crossseries-timer-overview-stmicroelectronics.pdf 

 

Thanks! I will continue learning and will read the general purpose timers chapter. Seems like I asked that question too early since there is not any basic timer

According to the online table of contents, the book should cover Basic, General Purpose, and Advanced STM32 timers...