2020-09-14 04:09 AM
STM32F1_3.5.0 has bit description of FLASH_ACR_PRFTBE
STM32CUBEF1_1.8.1 has no bit description of FLASH_ACR_PRFTBE
2020-09-14 06:03 AM
It's still "used" in stm32f1xx_hal_flash.h, so probably a bug if not defined:
/**
* @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))
2020-09-14 10:16 PM
Thanks.
I read manual and got to know only flash half cycle access can be control rest bits are reserved.