-
Notifications
You must be signed in to change notification settings - Fork 11
Overclocking
CPU Speed can be increased form 72 to 120 MHz and increase the update frequency to nearly 5 kHz. Modifying the below 2 files will allow you to select 120 MHz from the Arduino IDE Tools menu.
A module running 72 MHz will have a temperature of about 65C. At 120 MHz this increases to 70C.
I will continue to overclock a module and report back here with any failures.
-
Open STM32F1/boards.txt and scroll down to line 330, or search for "Generic STM32F103C".
-
https://github.com/rogerclarkmelbourne/Arduino_STM32/blob/master/STM32F1/boards.txt#L330
-
Insert the below lines.
genericSTM32F103C.menu.cpu_speed.speed_120mhz=Overclocked 120Mhz
genericSTM32F103C.menu.cpu_speed.speed_120mhz.build.f_cpu=120000000L
-
Open STM32F1/variants/generic_stm32f103c/wirish/boards_setup.cpp and scroll to line 50.
-
Insert the below lines.
#elif F_CPU==120000000
#define BOARD_RCC_PLLMUL RCC_PLLMUL_15