Skip to main content
Associate III
August 28, 2024
Solved

STM32F103RB TIM6, TIM7 not defined in CMSIS

  • August 28, 2024
  • 1 reply
  • 2983 views

Hello,
STM32F103RB microcontrollers.
Why do TIM6 and TIM7 timers and its registers not define in CMSIS in stm32f103xb.h file (see Figure 1 below)?

Figure 1

Mykola_Levun_0-1724834558276.png

Therefore, it is impossible to use this TIM6->ARR = 0x0001; instruction and similar to this instruction with registers of TIM6 and TIM7 timers.

 



Best answer by Peter BENSCH

Well, TIM6 and TIM7 are not defined because they are simply not present in the STM32F103xB. Only the High Densitity (F103xC/D/E) and XL Density (F103xF/G) devices contain TIM6 and TIM7.

Does it answer your question?

Regards
/Peter

1 reply

Peter BENSCH
Peter BENSCHBest answer
ST Technical Moderator
August 28, 2024

Well, TIM6 and TIM7 are not defined because they are simply not present in the STM32F103xB. Only the High Densitity (F103xC/D/E) and XL Density (F103xF/G) devices contain TIM6 and TIM7.

Does it answer your question?

Regards
/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Associate III
August 28, 2024

Yes,
I see this in the datasheet of STM32F103x8, STM32F103xB microcontrollers in the Table 4 (see Figure 2 below).

Mykola_Levun_0-1724837947462.png

Table 4 also shows that STM32F103xx have TIM1, 2, 3 and 4. TIM3 and TIM4 not included in RM0008 Reference manual. Why?

STTwo-32
ST Technical Moderator
August 28, 2024

Hello @Mykola_Levun 

the RM0008 is the reference manual for STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and
STM32F107xx.  So, it describes all interfaces and APIs available on all those series. For the Specification of each model, you need to check the Datasheet. It gives info and details about a Few MCUs. So the details should be there.

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.