3 years, 1 month ago.

Is it possible to change clock frequency in MBED compiler?

I'm wondering if it's possible to change clock frequency in MBED compiler, and how to do that? I've a Nucleo STM32F303K8T6 and I need to change clock frequency to 72MHz.

Thanks.

1 Answer

3 years, 1 month ago.

Yes that is possible. You can access the hardware registers of the clock and PLL setup directly from the C/C++ sourcecode level. An example is given for the STM32F103 by the call to confSysClock(), see here. Find the sourcecode for confSysClock() here.

It works similar for most ST devices, but you have to check the hardware usermanual for details.