rogerclarkmelbourne / Arduino_STM32

Arduino STM32. Hardware files to support STM32 boards, on Arduino IDE 1.8.x including LeafLabs Maple and other generic STM32F103 boards
Other
2.49k stars 1.25k forks source link

How to change default 42/72/128 MHz to 8/16Mhz #917

Closed gopalreddylakki closed 4 months ago

gopalreddylakki commented 4 months ago

I need the STM32F103 to run on 8 or 16 MHz how we can run it on this frequency.

my application have low power application

stevstrong commented 4 months ago

Sorry but 8MHz frequency is not supported by this core. More information about how this core sets the CPU frequency you can find here: https://github.com/rogerclarkmelbourne/Arduino_STM32/blob/338020bee1491a3876d4b0bdd26ea0a395c89c38/STM32F1/variants/generic_stm32f103c/wirish/boards_setup.cpp#L45-L96 and in the user's manual RM0008.

To setup 16 MHz you have to change the value of ...build.f_cpu of the corresponding board to 16000000.

gopalreddylakki commented 4 months ago

Ok thank you i need 8Mhz i will try