Skip to main content
STiwa.1
Associate
September 14, 2020
Question

Why on STM32CUBEF1 code version 1.8.1 bit FLASH_ACR_PRFTBE is not define? while on previous version on 3.5.0 it was defined.

  • September 14, 2020
  • 2 replies
  • 1124 views

STM32F1_3.5.0 has bit description of FLASH_ACR_PRFTBE0693W000003RYZQQA4.jpg

STM32CUBEF1_1.8.1 has no bit description of FLASH_ACR_PRFTBE0693W000003RYZGQA4.jpg

This topic has been closed for replies.

2 replies

TDK
September 14, 2020

It's still "used" in stm32f1xx_hal_flash.h, so probably a bug if not defined:

https://github.com/STMicroelectronics/STM32CubeF1/blob/441b2cbdc25aa50437a59c4bffe22b88e78942c9/Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_flash.h#L231

/**
 * @brief Enable the FLASH prefetch buffer.
 * @retval None
 */ 
#define __HAL_FLASH_PREFETCH_BUFFER_ENABLE() (FLASH->ACR |= FLASH_ACR_PRFTBE)
 
/**
 * @brief Disable the FLASH prefetch buffer.
 * @retval None
 */
#define __HAL_FLASH_PREFETCH_BUFFER_DISABLE() (FLASH->ACR &= (~FLASH_ACR_PRFTBE))

"If you feel a post has answered your question, please click ""Accept as Solution""."
STiwa.1
STiwa.1Author
Associate
September 15, 2020

Thanks.

I read manual and got to know only flash half cycle access can be control rest bits are reserved.0693W000003Re0bQAC.jpg