Page 1 of 1

Check Clock Speed for STM32f103c8t6

Posted: Mon Feb 15, 2021 4:40 pm
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.

Re: Check Clock Speed for STM32f103c8t6

Posted: Mon Feb 15, 2021 10:48 pm
by stevestrong
It runs by default with 72MHz, check the file \variants\generic_stm32f103c\wirish\boards_setup.cpp.

Re: Check Clock Speed for STM32f103c8t6

Posted: Thu Feb 25, 2021 12:02 pm
by Blosso
Great! thanks for letting me know!

Re: Check Clock Speed for STM32f103c8t6

Posted: Thu Feb 25, 2021 1:19 pm
by fpiSTM
@Blosso
Please post in the right section of the forum. I moved your topics in the correct section. ;)