8 years, 3 months ago.

STM32F030R8 with external crystal

I'm using an STM32F030R8 on my own board. I have selected NUCLEO-F030R8 as target in mbed. This works fine, but I have one question:

If I want to use an external crystal, what do I need to change in my software? Can I specify in my program that I want to use the external crystal instead of internal oscillator? Do I need to use the mbed-src library and modify something and if so, what?

1 Answer

8 years, 3 months ago.

Fit the 8MHz crystal and loading capacitors as shown in the schematic. The standard Mbed library has auto detect code that will check if the crystal is there and running.

Accepted Answer

Thank you. That works. Didn't expect it to be that easy :)

posted by Emil Johnsen 01 Feb 2016