Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 11 months ago.
Using external oscilator
Hello all,
I'm trying to use an external 4MHz oscillator on my Nucleo F030R8 but how can i force him to start on external oscillator instead of 32 MHz internal oscillator. I saw some good function on system_stm32f0xx.h but how to use them ?
Thanks for your help.
1 Answer
10 years, 11 months ago.
Hello,
Warning because the clock configuration in the system_stm32f0xx.c file has been written for a 8MHz xtal. If you absolutely want to use a 4MHz xtal instead you will need to change this file yourself.
The other solution is either to use a 8MHz xtal or to use directly the 8MHz clock provided by the MCO of the ST-Link part of the Nucleo board. In these 2 cases you will not need to change anything in the system_stmxxx.c file.
Best regards.