You are reading a single comment by @Gordon and its replies.
Click here to read the full conversation.
-
function getClockSource() {
return ["NONE","LSE","LSI","HSE"][((peek32(0x40021020)&768)>>8)];
}
getClockSource();Yes, I have a version 1.3b. One of the first boards I guess?
Your code reports "LSI" so I guess that means the Low-speed internal (LSI) RC oscillator is active?
I will solder the crystal now and see what happens.
Thanks!
This bit of code seems to do the trick:
It'll report what the clock source for the oscillator is currently set to.
Is it one of the older boards you have then?