2024-02-27 03:33 AM
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?
Solved! Go to Solution.
2024-02-27 04:19 AM - edited 2024-02-27 04:24 AM
@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.
That's for TIM6 - your chip, STM32F103C8T6, does not have a TIM6 !
See datasheet: https://www.st.com/resource/en/datasheet/stm32f103c8.pdf
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:
This is an "Advanced Control" Timer - so has a lot more options than just a simple 'Activate':
Here is an overview of the various types of timers available across the various STM32 families:
Application note AN4013: STM32 cross-series timer overview
2024-02-27 04:19 AM - edited 2024-02-27 04:24 AM
@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.
That's for TIM6 - your chip, STM32F103C8T6, does not have a TIM6 !
See datasheet: https://www.st.com/resource/en/datasheet/stm32f103c8.pdf
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:
This is an "Advanced Control" Timer - so has a lot more options than just a simple 'Activate':
Here is an overview of the various types of timers available across the various STM32 families:
Application note AN4013: STM32 cross-series timer overview
2024-02-27 04:28 AM
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
2024-02-27 04:29 AM
According to the online table of contents, the book should cover Basic, General Purpose, and Advanced STM32 timers...