Skip to main content
Graduate
February 27, 2024
Solved

No activate option of timer in STM32CubeIDE CubeMX

  • February 27, 2024
  • 1 reply
  • 2487 views

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?

    This topic has been closed for replies.
    Best answer by Andrew Neil

    @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 

     

    1 reply

    Super User
    February 27, 2024

    @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 

     

    Graduate
    February 27, 2024

    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

    Super User
    February 27, 2024

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