You are reading a single comment by @Reinoud and its replies. Click here to read the full conversation.
  • This bit of code seems to do the trick:

    function getClockSource() {
      return ["NONE","LSE","LSI","HSE"][((peek32(0x40­021020)&768)>>8)];
    }
    getClockSource();
    

    It'll report what the clock source for the oscillator is currently set to.

    Is it one of the older boards you have then?

  • function getClockSource() {

    return ["NONE","LSE","LSI","HSE"][((peek32(0x40­021020)&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!

About

Avatar for Reinoud @Reinoud started