2016-02-22 03:27 AM
Hi,
I have bread boarded STM32F051 and it's working. The clock is configured for external 8Mhz Crystal. Its working checked with scope. When i remove the crystal it seems to still work from internal oscillator. I would like switchover to be disabled. how can i do it. using std peripheral lib. Thanks, Jai.2016-02-22 05:39 AM
The processor always starts off the internal clock, you get to enable the external one and the PLL within the code under SystemInit(), where you get to choose what happens.
2016-02-23 12:29 AM
2016-02-23 03:43 AM
dear kumar.jai.001,
First try to enable HSE if it fails then disable HSI by following piece of code-RCC_HSICmd(DISABLE);/*Please
mark helpfull
if this post helps you or solves your problem.*/
/* If you need any personal support for your work please contact at
embeddeddesign.help@gmail.com*/
2016-02-23 12:19 PM
From a software-point-of-view, I don't like editing those files: They are delivered to me, and whomever made them may have an update later on which I'll have to merge with my changes if I edit the file.
The system_stm32fxxx.c are supposed to be board/implementation specific, in your project directory, you are supposed to ''own'' them.2016-02-23 01:48 PM
2016-02-23 05:03 PM
Ok, but I don't think the code should be considered golden, it is a minimal template with the expectation that someone using it actually understands it and refines it.