1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-30 15:52:12 +01:00

OP-1307 Most(all?) F4Discovery has an "A" revision of STM32f4.

Disable prefetch to overcome the "Section 2.1.1: ART Accelerator prefetch queue instruction is not
supported" issue (DM00037591.pdf)
This commit is contained in:
Alessio Morale 2014-04-26 22:14:47 +02:00
parent e75ed6a015
commit c281420e25

View File

@ -398,7 +398,7 @@ static void SetSysClock(void)
}
/* Configure Flash prefetch, Instruction cache, Data cache and wait state */
FLASH->ACR = FLASH_ACR_PRFTEN | FLASH_ACR_ICEN | FLASH_ACR_DCEN | FLASH_ACR_LATENCY_5WS;
FLASH->ACR = FLASH_ACR_ICEN |FLASH_ACR_DCEN |FLASH_ACR_LATENCY_5WS;
/* Select the main PLL as system clock source */
RCC->CFGR &= (uint32_t)((uint32_t)~(RCC_CFGR_SW));