1.) The default demo should provide a system clock frequency of 72Mhz right?
2.) Changing STM32_PLLSRC to STM32_PLLSRC_HSI, the delay seems to be doubled
Code: Select all
while (TRUE) {
palSetPad(GPIOA, 10);
chThdSleepMilliseconds(250);
palClearPad(GPIOA, 10);
chThdSleepMilliseconds(250);
}On an oscilloscope, the waveform shows a 500ms on/off waveform. I thought that my external crystal is causing the problem but digging in to RM0008 shows that the HSE is divided to 2 before being fed to the PLL. Changing STM32_PLLXTPRE_DIV1 to STM32_PLLXTPRE_DIV2 for STM32_PLLSRC_HSE gave me a 250ms on/off waveform as I should have expected.
3.) Changing the STM32_PLLMUL_VALUE to a lower value seems to create a faster delay. (eg 250ms becomes 150ms) Shouldn't the delay always be the same independent of the clock frequency?
Looking forward to your replies.