STM32 HSE unstable frequency
问题 I'm trying to run my Nucleo f401re on 80mhz from HSE int F4xxx::clockInit(int pllM, int pllN, int pllP, int pllQ) { enableHse(); //FLASH CLEAR_BIT(FLASH->ACR, FLASH_ACR_PRFTEN); FLASH->ACR&= ~FLASH_ACR_LATENCY; FLASH->ACR |= FLASH_ACR_LATENCY_5WS | FLASH_ACR_ICEN | FLASH_ACR_DCEN|FLASH_ACR_PRFTEN; //set HSE as PLL source RCC->PLLCFGR = RCC_PLLCFGR_PLLSRC_HSE; // RCC->CR &= ~(RCC_CR_PLLON); //disable PLL before changes // RCC->PLLCFGR = pllM|(pllN<<6)|(((pllP>>1)-1)<<16)|RCC_PLLCFGR_PLLSRC_HSE