Skip to main content
Terje Bøhler
Associate III
January 14, 2019
Question

Do I need to configure my flash memory interface register (FLASH_ACR)?

  • January 14, 2019
  • 0 replies
  • 477 views

The Keil example 'EXTI project' is a simple program for the STM32F103RBT6 MCU. Here, the following statements are executed:

#define __EFI_ACR_Val 0x00000012
/*----------------------------------------------------------------------------
 STM32 embedded Flash interface setup.
 initializes the ACR register
 *----------------------------------------------------------------------------*/
__inline static void stm32_EfiSetup (void) {
 FLASH->ACR = __EFI_ACR_Val; // set access control register 
}

I use the STM32F107VCT6 MCU with SYSCLK at 72MHz and do NOT execute any such "FLASH->ACR" statement/assignment. But everything seems to perform well nevertheless...

Must (or should) I add such a configuration of the Flash access control register (FLASH_ACR)? Will it slow down the general performance?

I hope some clerification to this matter.

BR Terje Bøhler

This topic has been closed for replies.