Check Clock Speed for STM32f103c8t6

Post here all questions related to LibMaple core if you can't find a relevant section!
Post Reply
Blosso
Posts: 4
Joined: Mon Feb 15, 2021 4:11 pm

Check Clock Speed for STM32f103c8t6

Post by Blosso »

Hello,
I'm very new in using STM32 chip on arduino platform. I made a pcb board with STM32f103c8t6, 8MHz HSE and 32.768kHz LSE. Can I check the clock speed of the MCU on arduino platform to make sure it is running with 72MHz, or by default, it runs at 72MHz?

I checked with the variant.h from ..AppData\Local\Arduino15\packages\stm32duino\hardware\STM32F1\2020.12.26\variants\generic_stm32r103c
but I didn't find the place indicating the clock speed...
can anyone advise? Thanks in advance.
stevestrong
Posts: 427
Joined: Fri Dec 27, 2019 4:53 pm
Answers: 8
Location: Munich, Germany
Contact:

Re: Check Clock Speed for STM32f103c8t6

Post by stevestrong »

It runs by default with 72MHz, check the file \variants\generic_stm32f103c\wirish\boards_setup.cpp.
Blosso
Posts: 4
Joined: Mon Feb 15, 2021 4:11 pm

Re: Check Clock Speed for STM32f103c8t6

Post by Blosso »

Great! thanks for letting me know!
User avatar
fpiSTM
Posts: 912
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 36
Location: Le Mans
Contact:

Re: Check Clock Speed for STM32f103c8t6

Post by fpiSTM »

@Blosso
Please post in the right section of the forum. I moved your topics in the correct section. ;)
Post Reply

Return to “General discussion”